public class FxAction extends Object
| Modifier and Type | Field and Description |
|---|---|
protected javafx.beans.property.ObjectProperty<javafx.scene.input.KeyCombination> |
accelerator |
List<Object> |
anchors |
protected javafx.collections.ObservableList<FxAction> |
children |
protected javafx.beans.property.StringProperty |
description |
protected javafx.beans.property.BooleanProperty |
disabled |
protected javafx.beans.property.ObjectProperty<javafx.event.EventHandler<javafx.event.ActionEvent>> |
eventHandler |
String |
group |
protected javafx.beans.property.ObjectProperty<javafx.scene.control.Tooltip> |
hint |
protected javafx.beans.property.StringProperty |
icon |
String |
menu |
protected javafx.beans.property.ObjectProperty<Boolean> |
selected |
SpecialAction |
specialAction |
protected javafx.beans.property.StringProperty |
text |
String |
toolbarGroup |
| Constructor and Description |
|---|
FxAction(String toolbarGroup) |
FxAction(String group,
String menu) |
FxAction(String toolbarGroup,
String group,
String menu) |
| Modifier and Type | Method and Description |
|---|---|
FxAction |
bindAccelerator(javafx.beans.value.ObservableValue<javafx.scene.input.KeyCombination> value) |
FxAction |
bindDescription(javafx.beans.value.ObservableValue<String> value) |
FxAction |
bindDisabled(javafx.beans.value.ObservableValue<Boolean> value) |
FxAction |
bindEventHandler(javafx.beans.value.ObservableValue<javafx.event.EventHandler<javafx.event.ActionEvent>> value) |
FxAction |
bindHint(javafx.beans.value.ObservableValue<javafx.scene.control.Tooltip> value) |
FxAction |
bindIcon(javafx.beans.value.ObservableValue<String> value) |
FxAction |
bindSelected(javafx.beans.value.ObservableValue<Boolean> value) |
FxAction |
bindText(javafx.beans.value.ObservableValue<String> value) |
FxAction |
bindText(String format,
Object... args) |
javafx.scene.control.Button |
button() |
javafx.collections.ObservableList<FxAction> |
getChildren() |
String |
getIcon() |
String |
getText() |
static javafx.scene.control.ContextMenu |
grouped(Collection<FxAction> actions) |
javafx.scene.control.MenuItem[] |
grouped(List<javafx.scene.control.MenuItem> list) |
static javafx.scene.control.MenuItem[] |
grouped(List<javafx.scene.control.MenuItem> list,
Collection<FxAction> actions) |
javafx.beans.binding.Binding<javafx.scene.text.Text> |
icon(int size) |
javafx.scene.control.MenuItem |
menuItem(List<javafx.scene.control.MenuItem> list) |
FxAction |
setAccelerator(javafx.scene.input.KeyCombination value) |
FxAction |
setChildren(Collection<? extends FxAction> actions) |
FxAction |
setChildren(FxAction... actions) |
FxAction |
setDisabled(boolean value) |
FxAction |
setEventHandler(javafx.event.EventHandler<javafx.event.ActionEvent> eventHandler) |
FxAction |
setIcon(String value) |
FxAction |
setSpecialAction(SpecialAction value) |
String |
toString() |
public final String toolbarGroup
public final String group
public final String menu
protected final javafx.collections.ObservableList<FxAction> children
protected final javafx.beans.property.StringProperty text
protected final javafx.beans.property.ObjectProperty<javafx.scene.input.KeyCombination> accelerator
protected final javafx.beans.property.StringProperty icon
protected final javafx.beans.property.StringProperty description
protected final javafx.beans.property.ObjectProperty<javafx.scene.control.Tooltip> hint
protected final javafx.beans.property.BooleanProperty disabled
protected final javafx.beans.property.ObjectProperty<Boolean> selected
protected final javafx.beans.property.ObjectProperty<javafx.event.EventHandler<javafx.event.ActionEvent>> eventHandler
public SpecialAction specialAction
public FxAction(String toolbarGroup)
public String getText()
public FxAction setAccelerator(javafx.scene.input.KeyCombination value)
public FxAction bindAccelerator(javafx.beans.value.ObservableValue<javafx.scene.input.KeyCombination> value)
public String getIcon()
public FxAction setDisabled(boolean value)
public FxAction bindHint(javafx.beans.value.ObservableValue<javafx.scene.control.Tooltip> value)
public FxAction bindEventHandler(javafx.beans.value.ObservableValue<javafx.event.EventHandler<javafx.event.ActionEvent>> value)
public FxAction setEventHandler(javafx.event.EventHandler<javafx.event.ActionEvent> eventHandler)
public FxAction setSpecialAction(SpecialAction value)
public javafx.beans.binding.Binding<javafx.scene.text.Text> icon(int size)
public static javafx.scene.control.MenuItem[] grouped(List<javafx.scene.control.MenuItem> list, Collection<FxAction> actions)
public static javafx.scene.control.ContextMenu grouped(Collection<FxAction> actions)
public javafx.scene.control.MenuItem[] grouped(List<javafx.scene.control.MenuItem> list)
public javafx.scene.control.MenuItem menuItem(List<javafx.scene.control.MenuItem> list)
public javafx.scene.control.Button button()
public javafx.collections.ObservableList<FxAction> getChildren()
public FxAction setChildren(Collection<? extends FxAction> actions)
Copyright © 2012–2017 MARID software development group. All rights reserved.