public class SwitchStateChangeEvent extends EventObject
| Modifier and Type | Field and Description |
|---|---|
protected SwitchState |
newState |
protected SwitchState |
oldState |
source| Constructor and Description |
|---|
SwitchStateChangeEvent(Switch switchComponent,
SwitchState oldState,
SwitchState newState) |
| Modifier and Type | Method and Description |
|---|---|
SwitchState |
getNewState() |
SwitchState |
getOldState() |
Switch |
getSwitch() |
getSource, toStringprotected final SwitchState oldState
protected final SwitchState newState
public SwitchStateChangeEvent(Switch switchComponent, SwitchState oldState, SwitchState newState)
public Switch getSwitch()
public SwitchState getOldState()
public SwitchState getNewState()
Copyright © 2012-2013 Pi4J. All Rights Reserved.