Public Member Functions | |
ControllerObject (String name) | |
String | getIpAdress () |
String | getPort () |
String | getState () |
void | setState (String state) |
Definition at line 38 of file ControllerObject.java.
|
Creates a new
Definition at line 47 of file ControllerObject.java. 00048 { 00049 super(); 00050 setText(name); 00051 setName(name); 00052 setBackground(Color.white); 00053 }
|
|
Get ip address of this controller
Definition at line 60 of file ControllerObject.java. 00061 { 00062 return getName().substring(0, getName().indexOf(':')); 00063 }
|
|
Get port of this controller
Definition at line 70 of file ControllerObject.java. 00071 { 00072 return getName().substring(getName().indexOf(':') + 1); 00073 }
|
|
Get the state of the controller
Definition at line 80 of file ControllerObject.java. 00081 {
00082 return state;
00083 }
|
|
Set state of controller and change its icon
Definition at line 90 of file ControllerObject.java. 00091 { 00092 if (state.equals(GuiConstants.CONTROLLER_STATE_UP)) 00093 { 00094 setIcon(GuiIcons.CONTROLLER_READY); 00095 setEnabled(true); 00096 } 00097 else 00098 { 00099 setIcon(GuiIcons.CONTROLLER_DOWN); 00100 //setEnabled(false); 00101 } 00102 this.state = state; 00103 }
|