peripherals
Class PushButton
java.lang.Object
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
Constructor Summary |
PushButton(int buttonId)
Constructor with default values. |
PushButton(int buttonId,
boolean isEnabled)
Main constructor of the PushButton class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BUTTON_DOWN
public static boolean BUTTON_DOWN
BUTTON_UP
public static boolean BUTTON_UP
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 idisEnabled
- push status of button- Since:
- 20.01.2007
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