Package com.biglybt.pif.ui.config
Interface ActionParameter
- All Superinterfaces:
ConfigParameter
,Parameter
- All Known Implementing Classes:
ActionParameterImpl
Parameter representing an action.
Not backed by a config key.
Usually a displayed as button or a link.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Action Parameter will be styled as a buttonstatic final int
Action Parameter will be styled as a hyperlinkFields inherited from interface com.biglybt.pif.ui.config.Parameter
MODE_ADVANCED, MODE_BEGINNER, MODE_INTERMEDIATE
-
Method Summary
Modifier and TypeMethodDescriptionunique id for the action.Returns the messagebundle key for the action's textint
getStyle()
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 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, getValueObject, hasBeenSet, isEnabled, isForUIType, isVisible, removeListener, resetToDefault, setAllowedUiTypes, setEnabled, setGenerateIntermediateEvents, setIndent, setLabelKey, setLabelText, setMinimumRequiredUserMode, setVisible
-
Field Details
-
STYLE_BUTTON
static final int STYLE_BUTTONAction Parameter will be styled as a button- Since:
- BiglyBT 1.0.0.0
- See Also:
-
STYLE_LINK
static final int STYLE_LINKAction Parameter will be styled as a hyperlink- Since:
- BiglyBT 1.0.0.0
- See Also:
-
-
Method Details
-
getActionResource
String getActionResource()Returns the messagebundle key for the action's text- Since:
- BiglyBT 1.0.0.0
-
setActionResource
Set the action's text- Parameters:
action_resource
- messagebundle key- Since:
- BiglyBT 1.0.0.0
-
getActionID
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
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() -
setImageID
-
getImageID
String getImageID()
-