public class ButtonStateChangeEvent extends ButtonEvent
| Modifier and Type | Field and Description |
|---|---|
protected ButtonState |
newState |
protected ButtonState |
oldState |
source| Constructor and Description |
|---|
ButtonStateChangeEvent(Button buttonComponent,
ButtonState oldState,
ButtonState newState) |
| Modifier and Type | Method and Description |
|---|---|
ButtonState |
getNewState() |
ButtonState |
getOldState() |
boolean |
isPressed() |
boolean |
isReleased() |
boolean |
isState(ButtonState state) |
getButtongetSource, toStringprotected final ButtonState oldState
protected final ButtonState newState
public ButtonStateChangeEvent(Button buttonComponent, ButtonState oldState, ButtonState newState)
public ButtonState getOldState()
public ButtonState getNewState()
public boolean isPressed()
isPressed in class ButtonEventpublic boolean isReleased()
isReleased in class ButtonEventpublic boolean isState(ButtonState state)
isState in class ButtonEventCopyright © 2012–2019 Pi4J. All rights reserved.