-
- All Implemented Interfaces:
public final class DataToggleButton extends ButtonBase
A Button that can be activated/deactivated by clicking on it Used in button groups, don't use directly unless you know what you are doing
-
-
Field Summary
Fields Modifier and Type Field Description private final Objectdataprivate BooleanisActiveprivate BooleanisDisabledprivate BooleanwasMouseReleasedprivate BooleanwasHoverprivate final ButtonInfoinfo
-
Constructor Summary
Constructors Constructor Description DataToggleButton(Object data, ButtonInfo info)
-
Method Summary
Modifier and Type Method Description final ObjectgetData()final BooleanisActive()final UnitsetActive(Boolean isActive)final BooleanisDisabled()final UnitsetDisabled(Boolean isDisabled)final BooleangetWasMouseReleased()final UnitsetWasMouseReleased(Boolean wasMouseReleased)final BooleangetWasHover()final UnitsetWasHover(Boolean wasHover)final ButtonInfogetInfo()Booleanadvance()final ObjectgetDataIfActive()returns data set in ctr if active, null otherwise -
-
Constructor Detail
-
DataToggleButton
DataToggleButton(Object data, ButtonInfo info)
-
-
Method Detail
-
isDisabled
final Boolean isDisabled()
-
setDisabled
final Unit setDisabled(Boolean isDisabled)
-
getWasMouseReleased
final Boolean getWasMouseReleased()
-
setWasMouseReleased
final Unit setWasMouseReleased(Boolean wasMouseReleased)
-
getWasHover
final Boolean getWasHover()
-
setWasHover
final Unit setWasHover(Boolean wasHover)
-
getInfo
final ButtonInfo getInfo()
-
getDataIfActive
final Object getDataIfActive()
returns data set in ctr if active, null otherwise
-
-
-
-