public class PickupOptionNewMode extends PickupOption
CheckBoxOption
that toggles a pickup setting in
Pickup.PU_NEW_MODE
.Constructor and Description |
---|
PickupOptionNewMode(@NotNull Pickup pickup,
long option,
@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 PickupOptionNewMode(@NotNull @NotNull Pickup pickup, long option, @NotNull @NotNull java.lang.String tooltipText)
pickup
- the pickup instance for modifying the pickup modeoption
- the affected 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