|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.zaval.lw.LwSwitchManager | +--org.zaval.lw.LwSwitchManImpl
This is simple implementation of the abstract switch manager class. The class can be used to store two state - "on" and "off" for a some switching component.
Constructor Summary | |
LwSwitchManImpl()
|
Method Summary | |
boolean |
getState(Switchable o)
Gets state for the specified switching component. |
void |
setState(Switchable o,
boolean b)
Sets the specified state for the switching component. |
Methods inherited from class org.zaval.lw.LwSwitchManager |
addActionListener, install, perform, removeActionListener, uninstall |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LwSwitchManImpl()
Method Detail |
public boolean getState(Switchable o)
LwSwitchManager
getState
in class LwSwitchManager
org.zaval.lw.LwSwitchManager
o
- the specified switching component.true
if the switching component has "on" state, false
if it has "off" state.public void setState(Switchable o, boolean b)
LwSwitchManager
setState
in class LwSwitchManager
org.zaval.lw.LwSwitchManager
o
- the specified switching component.b
- the specified state. The true
value corresponds to
"on" state and false
value corresponds to "off" state.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |