Package | Description |
---|---|
com.pi4j.component.button | |
com.pi4j.component.button.impl |
Modifier and Type | Field and Description |
---|---|
protected ButtonState |
ButtonStateChangeEvent.newState |
protected ButtonState |
ButtonStateChangeEvent.oldState |
Modifier and Type | Method and Description |
---|---|
ButtonState |
ButtonStateChangeEvent.getNewState() |
ButtonState |
ButtonStateChangeEvent.getOldState() |
abstract ButtonState |
ButtonBase.getState() |
ButtonState |
Button.getState() |
static ButtonState |
ButtonState.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ButtonState[] |
ButtonState.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
boolean |
ButtonStateChangeEvent.isState(ButtonState state) |
boolean |
ButtonEvent.isState(ButtonState state) |
boolean |
ButtonBase.isState(ButtonState state) |
boolean |
Button.isState(ButtonState state) |
Constructor and Description |
---|
ButtonStateChangeEvent(Button buttonComponent,
ButtonState oldState,
ButtonState newState) |
Modifier and Type | Method and Description |
---|---|
ButtonState |
GpioButtonComponent.getState()
Return the current switch state based on the
GPIO digital output pin state.
|
Copyright © 2012–2016 Pi4J. All rights reserved.