net.jhid.impl.generic
Class Button

java.lang.Object
  extended bynet.jhid.impl.generic.AbstractSlot
      extended bynet.jhid.impl.generic.Button
All Implemented Interfaces:
IButton

public class Button
extends AbstractSlot
implements IButton

IMplementation of IButton


Constructor Summary
Button(AbstractDevice aDevice, ButtonId aId)
           
 
Method Summary
 void addListener(IButtonListener aListener)
           
 ButtonId getId()
           
 boolean isPressed()
          Returns the state of this button.
 void removeListener(IButtonListener aListener)
           
 void setPressed(boolean aPressed)
           
 
Methods inherited from class net.jhid.impl.generic.AbstractSlot
addListener, getAbstractDevice, getDevice, getListenersIterator, removeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.jhid.core.devices.IButton
getDevice
 

Constructor Detail

Button

public Button(AbstractDevice aDevice,
              ButtonId aId)
Method Detail

isPressed

public boolean isPressed()
Description copied from interface: IButton
Returns the state of this button.

Specified by:
isPressed in interface IButton

setPressed

public void setPressed(boolean aPressed)

getId

public ButtonId getId()
Specified by:
getId in interface IButton
Returns:
The identifier of this button.

addListener

public void addListener(IButtonListener aListener)
Specified by:
addListener in interface IButton

removeListener

public void removeListener(IButtonListener aListener)
Specified by:
removeListener in interface IButton