org.zaval.lw
Class LwSwitchManImpl

java.lang.Object
  |
  +--org.zaval.lw.LwSwitchManager
        |
        +--org.zaval.lw.LwSwitchManImpl

public class LwSwitchManImpl
extends LwSwitchManager

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

LwSwitchManImpl

public LwSwitchManImpl()
Method Detail

getState

public boolean getState(Switchable o)
Description copied from class: LwSwitchManager
Gets state for the specified switching component.
Overrides:
getState in class LwSwitchManager
Following copied from class: org.zaval.lw.LwSwitchManager
Parameters:
o - the specified switching component.
Returns:
true if the switching component has "on" state, false if it has "off" state.

setState

public void setState(Switchable o,
                     boolean b)
Description copied from class: LwSwitchManager
Sets the specified state for the switching component.
Overrides:
setState in class LwSwitchManager
Following copied from class: org.zaval.lw.LwSwitchManager
Parameters:
o - the specified switching component.
b - the specified state. The true value corresponds to "on" state and false value corresponds to "off" state.


Copyright © Zaval Creative Engineering Group, 2000-2005.
http://www.zaval.org