Class ActionParameterImpl
java.lang.Object
com.biglybt.pifimpl.local.ui.config.ParameterImpl
com.biglybt.pifimpl.local.ui.config.ActionParameterImpl
- All Implemented Interfaces:
ParameterListener
,ConfigParameter
,ActionParameter
,EnablerParameter
,Parameter
-
Field Summary
FieldsFields inherited from class com.biglybt.pifimpl.local.ui.config.ParameterImpl
configKey
Fields inherited from interface com.biglybt.pif.ui.config.ActionParameter
STYLE_BUTTON, STYLE_LINK
Fields inherited from interface com.biglybt.pif.ui.config.Parameter
MODE_ADVANCED, MODE_BEGINNER, MODE_INTERMEDIATE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionunique id for the action.Returns the messagebundle key for the action's textint
getStyle()
Retrieve the parameter's value as an Object.void
setActionID
(String actionID) Set unique id for the action.void
setActionResource
(String action_resource) Set the action's textvoid
setImageID
(String id) void
setStyle
(int _style) Methods inherited from class com.biglybt.pifimpl.local.ui.config.ParameterImpl
addAndFireListener, addConfigParameterListener, addDisabledOnSelection, addDisabledOnSelection, addEnabledOnSelection, addEnabledOnSelection, addImplListener, addListener, addValidator, destroy, fireParameterChanged, getConfigKeyName, getDisabledOnSelectionParameters, getEnabledOnSelectionParameters, getGenerateIntermediateEvents, getGroup, getIndent, getKey, getLabelKey, getLabelText, getMinimumRequiredUserMode, getReferenceID, hasBeenSet, isEnabled, isForUIType, isIndentFancy, isVisible, parameterChanged, refreshControl, removeConfigParameterListener, removeImplListener, removeListener, resetToDefault, search, setAllowedUiTypes, setEnabled, setGenerateIntermediateEvents, setGroup, setIndent, setLabelKey, setLabelText, setMinimumRequiredUserMode, setReferenceID, setVisible, validate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.biglybt.pif.config.ConfigParameter
addConfigParameterListener, removeConfigParameterListener
Methods inherited from interface com.biglybt.pif.ui.config.Parameter
addAndFireListener, addListener, addValidator, getConfigKeyName, getGenerateIntermediateEvents, getLabelKey, getLabelText, getMinimumRequiredUserMode, hasBeenSet, isEnabled, isForUIType, isVisible, removeListener, resetToDefault, setAllowedUiTypes, setEnabled, setGenerateIntermediateEvents, setIndent, setLabelKey, setLabelText, setMinimumRequiredUserMode, setVisible
-
Field Details
-
action_resource
-
actionID
-
style
private int style -
image_id
-
-
Constructor Details
-
ActionParameterImpl
-
-
Method Details
-
getActionResource
Description copied from interface:ActionParameter
Returns the messagebundle key for the action's text- Specified by:
getActionResource
in interfaceActionParameter
-
setActionResource
Description copied from interface:ActionParameter
Set the action's text- Specified by:
setActionResource
in interfaceActionParameter
- Parameters:
action_resource
- messagebundle key
-
setStyle
public void setStyle(int _style) - Specified by:
setStyle
in interfaceActionParameter
-
getValueObject
Description copied from interface:Parameter
Retrieve the parameter's value as an Object. Subclasses will usually have a getValue() that will return a specific type.- Specified by:
getValueObject
in interfaceParameter
- Overrides:
getValueObject
in classParameterImpl
-
getStyle
public int getStyle()- Specified by:
getStyle
in interfaceActionParameter
-
getActionID
Description copied from interface:ActionParameter
unique id for the action. Used for UIs without widgets, like console ui By default, the actionid is the same asActionParameter.getActionResource()
- Specified by:
getActionID
in interfaceActionParameter
-
setActionID
Description copied from interface:ActionParameter
Set unique id for the action. Used for UIs without widgets, like console ui- Specified by:
setActionID
in interfaceActionParameter
-
setImageID
- Specified by:
setImageID
in interfaceActionParameter
-
getImageID
- Specified by:
getImageID
in interfaceActionParameter
-