[cooja] interfaces/IPAddress: Added @Override annotations
This commit is contained in:
parent
d5c5198171
commit
c0f629dfbb
@ -202,6 +202,7 @@ public class IPAddress extends MoteInterface {
|
|||||||
&& moteMem.variableExists("uip_ds6_if");
|
&& moteMem.variableExists("uip_ds6_if");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void removed() {
|
public void removed() {
|
||||||
super.removed();
|
super.removed();
|
||||||
if (memMonitor != null) {
|
if (memMonitor != null) {
|
||||||
@ -215,12 +216,14 @@ public class IPAddress extends MoteInterface {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public JPanel getInterfaceVisualizer() {
|
public JPanel getInterfaceVisualizer() {
|
||||||
JPanel panel = new JPanel();
|
JPanel panel = new JPanel();
|
||||||
final JLabel ipLabel = new JLabel();
|
final JLabel ipLabel = new JLabel();
|
||||||
|
|
||||||
Observer observer;
|
Observer observer;
|
||||||
this.addObserver(observer = new Observer() {
|
this.addObserver(observer = new Observer() {
|
||||||
|
@Override
|
||||||
public void update(Observable obs, Object obj) {
|
public void update(Observable obs, Object obj) {
|
||||||
if (isVersion4()) {
|
if (isVersion4()) {
|
||||||
ipLabel.setText("IPv4 address: " + getIPString());
|
ipLabel.setText("IPv4 address: " + getIPString());
|
||||||
@ -240,6 +243,7 @@ public class IPAddress extends MoteInterface {
|
|||||||
return panel;
|
return panel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void releaseInterfaceVisualizer(JPanel panel) {
|
public void releaseInterfaceVisualizer(JPanel panel) {
|
||||||
Observer observer = (Observer) panel.getClientProperty("intf_obs");
|
Observer observer = (Observer) panel.getClientProperty("intf_obs");
|
||||||
if (observer == null) {
|
if (observer == null) {
|
||||||
@ -249,10 +253,12 @@ public class IPAddress extends MoteInterface {
|
|||||||
this.deleteObserver(observer);
|
this.deleteObserver(observer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public Collection<Element> getConfigXML() {
|
public Collection<Element> getConfigXML() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void setConfigXML(Collection<Element> configXML, boolean visAvailable) {
|
public void setConfigXML(Collection<Element> configXML, boolean visAvailable) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user