public class ButtonPadEvent
extends java.awt.AWTEvent
| Modifier and Type | Class and Description |
|---|---|
static class |
ButtonPadEvent.ButtonState |
ACTION_EVENT_MASK, ADJUSTMENT_EVENT_MASK, COMPONENT_EVENT_MASK, consumed, CONTAINER_EVENT_MASK, FOCUS_EVENT_MASK, HIERARCHY_BOUNDS_EVENT_MASK, HIERARCHY_EVENT_MASK, id, INPUT_METHOD_EVENT_MASK, INVOCATION_EVENT_MASK, ITEM_EVENT_MASK, KEY_EVENT_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK, MOUSE_WHEEL_EVENT_MASK, PAINT_EVENT_MASK, RESERVED_ID_MAX, TEXT_EVENT_MASK, WINDOW_EVENT_MASK, WINDOW_FOCUS_EVENT_MASK, WINDOW_STATE_EVENT_MASK| Constructor and Description |
|---|
ButtonPadEvent(java.lang.Object src,
javax.swing.JButton button,
ButtonPadEvent.ButtonState buttonState) |
| Modifier and Type | Method and Description |
|---|---|
javax.swing.JButton |
getButton()
Get the button that triggered the event
|
java.lang.String |
getButtonName()
Get the name, or the action command, for the button.
|
ButtonPadEvent.ButtonState |
getState()
Get the button state - either PRESSED, CLICKED, or RELEASED.
|
public ButtonPadEvent(java.lang.Object src,
javax.swing.JButton button,
ButtonPadEvent.ButtonState buttonState)
src - the source of the ButtonPadEvent. This should be the button
pad itselfbutton - the actual button triggering the eventbuttonState - the state of the button - whether the button was
pressed, released, or clickedpublic javax.swing.JButton getButton()
public java.lang.String getButtonName()
public ButtonPadEvent.ButtonState getState()