java.lang.Objectcom.realtime.crossfire.jxclient.settings.options.Option
com.realtime.crossfire.jxclient.settings.options.CheckBoxOption
com.realtime.crossfire.jxclient.settings.options.PickupOption
public class PickupOption
A CheckBoxOption that toggles a pickup setting.
| Field Summary | |
|---|---|
private long |
option
The affected pickup mode. |
private Pickup |
pickup
The pickup instance for modifying the pickup mode. |
| Constructor Summary | |
|---|---|
PickupOption(Pickup pickup,
long option,
java.lang.String tooltipText)
Creates a new instance. |
|
| Method Summary | |
|---|---|
protected void |
execute(boolean checked)
Execute the action associated with this check box option. |
boolean |
inhibitSave()
Returns whether the option should not be saved. |
boolean |
isDefaultChecked()
Return the default value of CheckBoxOption.isChecked(). |
void |
setPickupMode(long pickupMode)
Notifies this instance that the pickup mode has changed. |
| Methods inherited from class com.realtime.crossfire.jxclient.settings.options.CheckBoxOption |
|---|
fireStateChangedEvent, getTooltipText, isChecked, setChecked, toggleChecked |
| Methods inherited from class com.realtime.crossfire.jxclient.settings.options.Option |
|---|
addOptionListener, removeOptionListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final long option
@NotNull private final Pickup pickup
| Constructor Detail |
|---|
public PickupOption(@NotNull
Pickup pickup,
long option,
@NotNull
java.lang.String tooltipText)
pickup - the pickup instance for modifying the pickup modeoption - the affected pickup modetooltipText - the tooltip text to explain this option| Method Detail |
|---|
protected void execute(boolean checked)
execute in class CheckBoxOptionchecked - whether the check box option is checkedpublic boolean inhibitSave()
inhibitSave in class Optionpublic boolean isDefaultChecked()
CheckBoxOption.isChecked().
isDefaultChecked in class CheckBoxOptionpublic void setPickupMode(long pickupMode)
pickupMode - the new pickup mode