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
public class ActionParameterImpl extends ParameterImpl implements ActionParameter
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
action_resource
private java.lang.String
actionID
private int
style
-
Fields 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 Constructor Description ActionParameterImpl(java.lang.String labelKey, java.lang.String actionTextKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getActionID()
unique id for the action.java.lang.String
getActionResource()
Returns the messagebundle key for the action's textint
getStyle()
java.lang.Object
getValueObject()
Retrieve the parameter's value as an Object.void
setActionID(java.lang.String actionID)
Set unique id for the action.void
setActionResource(java.lang.String action_resource)
Set the action's textvoid
setStyle(int _style)
-
Methods inherited from class com.biglybt.pifimpl.local.ui.config.ParameterImpl
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
addListener, addValidator, getConfigKeyName, getGenerateIntermediateEvents, getLabelKey, getLabelText, getMinimumRequiredUserMode, hasBeenSet, isEnabled, isForUIType, isVisible, removeListener, resetToDefault, setAllowedUiTypes, setEnabled, setGenerateIntermediateEvents, setIndent, setLabelKey, setLabelText, setMinimumRequiredUserMode, setVisible
-
-
-
-
Method Detail
-
getActionResource
public java.lang.String getActionResource()
Description copied from interface:ActionParameter
Returns the messagebundle key for the action's text- Specified by:
getActionResource
in interfaceActionParameter
-
setActionResource
public void setActionResource(java.lang.String action_resource)
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
public java.lang.Object 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
public java.lang.String 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
public void setActionID(java.lang.String actionID)
Description copied from interface:ActionParameter
Set unique id for the action. Used for UIs without widgets, like console ui- Specified by:
setActionID
in interfaceActionParameter
-
-