public class StopButton extends Object
ControlLab.getStopButton()
.Modifier and Type | Method and Description |
---|---|
void |
addListener(StopButtonListener listener)
Attach a listener for
StopButtonEvent s. |
boolean |
isStopDepressed()
Returns current status of stop button.
|
void |
removeListener(StopButtonListener listener)
Remove a listener for
StopButtonEvent s. |
public void addListener(StopButtonListener listener)
StopButtonEvent
s.
Multiple listeners are allowed. A listener instance will only be registered once even if it is added multiple times.
listener
- listener to addpublic void removeListener(StopButtonListener listener)
StopButtonEvent
s.listener
- listener to removepublic boolean isStopDepressed()
Copyright © 2016–2023. All rights reserved.