public final class FxAction extends Object
| Type | Property and Description |
|---|---|
javafx.beans.property.ObjectProperty<javafx.scene.input.KeyCombination> |
accelerator |
javafx.beans.property.StringProperty |
description |
javafx.beans.property.BooleanProperty |
disabled |
javafx.beans.property.StringProperty |
hint |
javafx.beans.property.StringProperty |
icon |
javafx.beans.property.BooleanProperty |
selected |
javafx.beans.property.StringProperty |
text |
| Constructor and Description |
|---|
FxAction(String toolbarGroup) |
FxAction(String group,
String menu) |
FxAction(String toolbarGroup,
String group,
String menu) |
| Modifier and Type | Method and Description |
|---|---|
javafx.beans.property.ObjectProperty<javafx.scene.input.KeyCombination> |
acceleratorProperty() |
FxAction |
addChild(String name,
FxAction action) |
FxAction |
addChildren(Map<String,FxAction> actions) |
FxAction |
bindAccelerator(javafx.beans.value.ObservableValue<javafx.scene.input.KeyCombination> value) |
FxAction |
bindDescription(javafx.beans.value.ObservableStringValue value) |
FxAction |
bindDisabled(javafx.beans.value.ObservableBooleanValue value) |
FxAction |
bindHint(javafx.beans.value.ObservableStringValue value) |
FxAction |
bindIcon(javafx.beans.value.ObservableStringValue value) |
FxAction |
bindSelected(javafx.beans.value.ObservableBooleanValue value) |
FxAction |
bindText(javafx.beans.value.ObservableValue<String> value) |
FxAction |
bindText(String format,
Object... args) |
javafx.beans.property.StringProperty |
descriptionProperty() |
javafx.beans.property.BooleanProperty |
disabledProperty() |
javafx.scene.input.KeyCombination |
getAccelerator()
Gets the value of the property accelerator.
|
Map<String,FxAction> |
getChildren() |
String |
getDescription()
Gets the value of the property description.
|
boolean |
getDisabled()
Gets the value of the property disabled.
|
javafx.event.EventHandler<javafx.event.ActionEvent> |
getEventHandler() |
String |
getGroup() |
String |
getHint()
Gets the value of the property hint.
|
String |
getIcon()
Gets the value of the property icon.
|
String |
getMenu() |
boolean |
getSelected()
Gets the value of the property selected.
|
String |
getText()
Gets the value of the property text.
|
String |
getToolbarGroup() |
javafx.beans.property.StringProperty |
hintProperty() |
javafx.beans.property.StringProperty |
iconProperty() |
FxAction |
on(javafx.scene.Node node,
Consumer<FxAction> on) |
javafx.beans.property.BooleanProperty |
selectedProperty() |
FxAction |
setAccelerator(javafx.scene.input.KeyCombination accelerator) |
FxAction |
setChildren(Map<String,FxAction> actions) |
FxAction |
setDescription(String description) |
FxAction |
setDisabled(boolean disabled) |
FxAction |
setEventHandler(javafx.event.EventHandler<javafx.event.ActionEvent> eventHandler) |
FxAction |
setIcon(String icon) |
FxAction |
setSelected(boolean selected) |
javafx.beans.property.StringProperty |
textProperty() |
public javafx.beans.property.StringProperty textProperty
getText()public javafx.beans.property.ObjectProperty<javafx.scene.input.KeyCombination> acceleratorProperty
getAccelerator()public javafx.beans.property.StringProperty iconProperty
getIcon()public javafx.beans.property.BooleanProperty disabledProperty
getDisabled()public javafx.beans.property.StringProperty descriptionProperty
getDescription()public javafx.beans.property.StringProperty hintProperty
getHint()public javafx.beans.property.BooleanProperty selectedProperty
getSelected()public String getToolbarGroup()
public String getGroup()
public String getMenu()
public String getText()
public javafx.beans.property.StringProperty textProperty()
getText()public javafx.scene.input.KeyCombination getAccelerator()
public FxAction setAccelerator(javafx.scene.input.KeyCombination accelerator)
public javafx.beans.property.ObjectProperty<javafx.scene.input.KeyCombination> acceleratorProperty()
getAccelerator()public FxAction bindAccelerator(javafx.beans.value.ObservableValue<javafx.scene.input.KeyCombination> value)
public String getIcon()
public javafx.beans.property.StringProperty iconProperty()
getIcon()public FxAction bindIcon(javafx.beans.value.ObservableStringValue value)
public boolean getDisabled()
public FxAction setDisabled(boolean disabled)
public javafx.beans.property.BooleanProperty disabledProperty()
getDisabled()public FxAction bindDisabled(javafx.beans.value.ObservableBooleanValue value)
public String getDescription()
public javafx.beans.property.StringProperty descriptionProperty()
getDescription()public FxAction bindDescription(javafx.beans.value.ObservableStringValue value)
public String getHint()
public javafx.beans.property.StringProperty hintProperty()
getHint()public FxAction bindHint(javafx.beans.value.ObservableStringValue value)
public javafx.event.EventHandler<javafx.event.ActionEvent> getEventHandler()
public FxAction setEventHandler(javafx.event.EventHandler<javafx.event.ActionEvent> eventHandler)
public FxAction setSelected(boolean selected)
public boolean getSelected()
public javafx.beans.property.BooleanProperty selectedProperty()
getSelected()public FxAction bindSelected(javafx.beans.value.ObservableBooleanValue value)
Copyright © 2012–2017 MARID software development group. All rights reserved.