Package qupath.lib.gui.actions
Class ActionTools.ActionBuilder
java.lang.Object
qupath.lib.gui.actions.ActionTools.ActionBuilder
- Enclosing class:
ActionTools
Builder class for custom
Action objects.
These can be used to create GUI components (e.g. buttons, menu items).-
Method Summary
Modifier and TypeMethodDescriptionaccelerator(ObservableValue<KeyCombination> value) Bind the accelerator property of the action to anObservableValue, bidirectionally if possible.accelerator(KeyCombination value) Set the accelerator property of the action.org.controlsfx.control.action.Actionbuild()Create anActionwith this builder.disabled(boolean value) Set the disabled property of the action.disabled(ObservableValue<Boolean> value) Bind the disabled property of the action to anObservableValue, bidirectionally if possible.graphic(ObservableValue<Node> value) Bind the graphic property of the action to anObservableValue, bidirectionally if possible.Set the graphic property of the action.Set the long text property of the action.longText(ObservableValue<String> value) Bind the long text property of the action to anObservableValue, bidirectionally if possible.selectable(boolean isSelectable) Sets the selectable property of the action.selected(boolean value) Set the selected property of the action.selected(ObservableValue<Boolean> value) Bind the selected property of the action to anObservableValue, bidirectionally if possible.Set the text property of the action.text(ObservableValue<String> value) Bind the text property of the action to anObservableValue, bidirectionally if possible.
-
Method Details
-
text
Set the text property of the action.- Parameters:
value-- Returns:
- this builder
-
selectable
Sets the selectable property of the action.- Parameters:
isSelectable-- Returns:
- this builder
-
longText
Set the long text property of the action.- Parameters:
value-- Returns:
- this builder
-
graphic
Set the graphic property of the action.- Parameters:
value-- Returns:
- this builder
-
accelerator
Set the accelerator property of the action.- Parameters:
value-- Returns:
- this builder
-
selected
Set the selected property of the action.- Parameters:
value-- Returns:
- this builder
-
disabled
Set the disabled property of the action.- Parameters:
value-- Returns:
- this builder
-
text
Bind the text property of the action to anObservableValue, bidirectionally if possible.- Parameters:
value-- Returns:
- this builder
-
longText
Bind the long text property of the action to anObservableValue, bidirectionally if possible.- Parameters:
value-- Returns:
- this builder
-
graphic
Bind the graphic property of the action to anObservableValue, bidirectionally if possible.- Parameters:
value-- Returns:
- this builder
-
accelerator
Bind the accelerator property of the action to anObservableValue, bidirectionally if possible.- Parameters:
value-- Returns:
- this builder
-
selected
Bind the selected property of the action to anObservableValue, bidirectionally if possible.- Parameters:
value-- Returns:
- this builder
-
disabled
Bind the disabled property of the action to anObservableValue, bidirectionally if possible.- Parameters:
value-- Returns:
- this builder
-
build
public org.controlsfx.control.action.Action build()Create anActionwith this builder.- Returns:
-