public class PickupOptionOldMode extends PickupOption
CheckBoxOption
that sets a mode without
Pickup.PU_NEW_MODE
.Constructor and Description |
---|
PickupOptionOldMode(@NotNull Pickup pickup,
long mode,
@NotNull java.lang.String tooltipText)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
execute(boolean checked)
Executes the action associated with this check box option.
|
boolean |
inhibitSave()
Returns whether the option should not be saved.
|
boolean |
isDefaultChecked()
Returns the default value of
CheckBoxOption.isChecked() . |
void |
setPickupMode(long pickupMode)
Notifies this instance that the pickup mode has changed.
|
fireStateChangedEvent, getTooltipText, isChecked, setChecked, toggleChecked
addOptionListener, removeOptionListener
public PickupOptionOldMode(@NotNull @NotNull Pickup pickup, long mode, @NotNull @NotNull java.lang.String tooltipText)
pickup
- the pickup instance for modifying the pickup modemode
- the pickup modetooltipText
- the tooltip text to explain this optionprotected void execute(boolean checked)
CheckBoxOption
execute
in class CheckBoxOption
checked
- whether the checkbox option is checkedpublic boolean isDefaultChecked()
CheckBoxOption
CheckBoxOption.isChecked()
.isDefaultChecked
in class CheckBoxOption
public boolean inhibitSave()
Option
inhibitSave
in class Option
public void setPickupMode(long pickupMode)
PickupOption
setPickupMode
in class PickupOption
pickupMode
- the new pickup mode