Class UiAction.Description
java.lang.Object
com.google.gerrit.extensions.webui.UiAction.Description
- Enclosing interface:
- UiAction<R extends RestResource>
Describes an action invokable through the web interface.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.collect.ImmutableList<String>
getId()
getLabel()
getTitle()
boolean
boolean
setEnabled
(boolean enabled) Set if the button should be invokable (true), or greyed out (false).setEnabled
(BooleanCondition enabled) Set if the button should be invokable (true), or greyed out (false).Set the label to appear on the button to activate this action.Set the tool-tip text to appear when the mouse hovers on the button.setVisible
(boolean visible) Set if the action's button is visible on screen for the current client.setVisible
(BooleanCondition visible) Set if the action's button is visible on screen for the current client.
-
Constructor Details
-
Description
public Description()
-
-
Method Details
-
getMethod
-
getId
-
getLabel
-
setLabel
Set the label to appear on the button to activate this action. -
getTitle
-
setTitle
Set the tool-tip text to appear when the mouse hovers on the button. -
isVisible
public boolean isVisible() -
getVisibleCondition
-
setVisible
Set if the action's button is visible on screen for the current client. If not visible the action description may not be sent to the client. -
setVisible
Set if the action's button is visible on screen for the current client. If not visible the action description may not be sent to the client. -
isEnabled
public boolean isEnabled() -
getEnabledCondition
-
setEnabled
Set if the button should be invokable (true), or greyed out (false). -
setEnabled
Set if the button should be invokable (true), or greyed out (false). -
getEnabledOptions
-
setOption
-