peripherals
Class PushButton

java.lang.Object
  extended by peripherals.PushButton

public class PushButton
extends java.lang.Object

This class represents a single push button display of the CENG336 Board.

Since:
20.01.2007
Author:
maho

Field Summary
static boolean BUTTON_DOWN
           
static boolean BUTTON_UP
           
 
Constructor Summary
PushButton(int buttonId)
          Constructor with default values.
PushButton(int buttonId, boolean isEnabled)
          Main constructor of the PushButton class.
 
Method Summary
 int getButtonId()
           
 boolean isButtonState()
           
 boolean isEnabled()
           
 void setButtonId(int buttonId)
           
 void setButtonState(boolean buttonState)
           
 void setEnabled(boolean isEnabled)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUTTON_DOWN

public static boolean BUTTON_DOWN

BUTTON_UP

public static boolean BUTTON_UP
Constructor Detail

PushButton

public PushButton(int buttonId)
Constructor with default values. Id should be specified.

Parameters:
buttonId - instance-unique id
Since:
20.01.2007

PushButton

public PushButton(int buttonId,
                  boolean isEnabled)
Main constructor of the PushButton class.

Parameters:
ssId - instance-unique id
isEnabled - push status of button
Since:
20.01.2007
Method Detail

getButtonId

public int getButtonId()
Returns:
the buttonId

setButtonId

public void setButtonId(int buttonId)
Parameters:
buttonId - the buttonId to set

isButtonState

public boolean isButtonState()
Returns:
the buttonState

setButtonState

public void setButtonState(boolean buttonState)
Parameters:
buttonState - the buttonState to set

isEnabled

public boolean isEnabled()
Returns:
the isEnabled

setEnabled

public void setEnabled(boolean isEnabled)
Parameters:
isEnabled - the isEnabled to set