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, toggleCheckedaddOptionListener, removeOptionListenerpublic 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)
CheckBoxOptionexecute in class CheckBoxOptionchecked - whether the checkbox option is checkedpublic boolean isDefaultChecked()
CheckBoxOptionCheckBoxOption.isChecked().isDefaultChecked in class CheckBoxOptionpublic boolean inhibitSave()
OptioninhibitSave in class Optionpublic void setPickupMode(long pickupMode)
PickupOptionsetPickupMode in class PickupOptionpickupMode - the new pickup mode