Package com.biglybt.pif.ui.config
Interface ActionParameter
-
- All Superinterfaces:
ConfigParameter
,Parameter
- All Known Implementing Classes:
ActionParameterImpl
public interface ActionParameter extends Parameter
Parameter representing an action. Not backed by a config key. Usually a displayed as button or a link.
-
-
Field Summary
Fields Modifier and Type Field Description static int
STYLE_BUTTON
Action Parameter will be styled as a buttonstatic int
STYLE_LINK
Action Parameter will be styled as a hyperlink-
Fields inherited from interface com.biglybt.pif.ui.config.Parameter
MODE_ADVANCED, MODE_BEGINNER, MODE_INTERMEDIATE
-
-
Method Summary
All Methods Instance Methods Abstract 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()
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 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, getValueObject, hasBeenSet, isEnabled, isForUIType, isVisible, removeListener, resetToDefault, setAllowedUiTypes, setEnabled, setGenerateIntermediateEvents, setIndent, setLabelKey, setLabelText, setMinimumRequiredUserMode, setVisible
-
-
-
-
Field Detail
-
STYLE_BUTTON
static final int STYLE_BUTTON
Action Parameter will be styled as a button- Since:
- BiglyBT 1.0.0.0
- See Also:
- Constant Field Values
-
STYLE_LINK
static final int STYLE_LINK
Action Parameter will be styled as a hyperlink- Since:
- BiglyBT 1.0.0.0
- See Also:
- Constant Field Values
-
-
Method Detail
-
getActionResource
java.lang.String getActionResource()
Returns the messagebundle key for the action's text- Since:
- BiglyBT 1.0.0.0
-
setActionResource
void setActionResource(java.lang.String action_resource)
Set the action's text- Parameters:
action_resource
- messagebundle key- Since:
- BiglyBT 1.0.0.0
-
getActionID
java.lang.String getActionID()
unique id for the action. Used for UIs without widgets, like console ui By default, the actionid is the same asgetActionResource()
- Since:
- BiglyBT 1.9.0.1
-
setActionID
void setActionID(java.lang.String actionID)
Set unique id for the action. Used for UIs without widgets, like console ui- Since:
- BiglyBT 1.9.0.1
-
setStyle
void setStyle(int style)
-
getStyle
int getStyle()
-
-