| 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() |
ButtonState |
Button.getState() |
abstract ButtonState |
ButtonBase.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 |
Button.isState(ButtonState state) |
boolean |
ButtonBase.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–2019 Pi4J. All rights reserved.