net.jhid.core.devices
Interface IButton

All Known Implementing Classes:
Button

public interface IButton

Represents a button of a IDevice. A button can only be in two states: pressed of released.


Method Summary
 void addListener(IButtonListener aListener)
           
 IDevice getDevice()
          Returns the device this button belongs to.
 ButtonId getId()
           
 boolean isPressed()
          Returns the state of this button.
 void removeListener(IButtonListener aListener)
           
 

Method Detail

getDevice

public IDevice getDevice()
Returns the device this button belongs to.


getId

public ButtonId getId()
Returns:
The identifier of this button.

isPressed

public boolean isPressed()
Returns the state of this button.


addListener

public void addListener(IButtonListener aListener)

removeListener

public void removeListener(IButtonListener aListener)