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) |
getButton
getSource, toString
protected 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 ButtonEvent
public boolean isReleased()
isReleased
in class ButtonEvent
public boolean isState(ButtonState state)
isState
in class ButtonEvent
Copyright © 2012–2016 Pi4J. All rights reserved.