Class TreeMenuItem
- java.lang.Object
-
- javafx.scene.control.MenuItem
-
- org.teichert.databaseexplorer.beans.TreeMenuItem
-
- All Implemented Interfaces:
javafx.css.Styleable
,javafx.event.EventTarget
public class TreeMenuItem extends javafx.scene.control.MenuItem
Represents the MenuItem for the main-treeview of the GUI.
It has an type-indicator to determine if this has to be shown or hided by right-clicking on a treeitem depending on the treeitem's type.
-
-
Field Summary
Fields Modifier and Type Field Description static int
ALLOW_COLUMN
static int
ALLOW_DATABASE
static int
ALLOW_FOREIGN_KEY
static int
ALLOW_INDEX
static int
ALLOW_SERVER
static int
ALLOW_TABLE
static int
ALLOW_TRIGGER
-
Constructor Summary
Constructors Constructor Description TreeMenuItem(String text, javafx.scene.Node graphic, int type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getType()
void
setType(int type)
-
Methods inherited from class javafx.scene.control.MenuItem
acceleratorProperty, addEventHandler, buildEventDispatchChain, disableProperty, fire, getAccelerator, getCssMetaData, getGraphic, getId, getOnAction, getOnMenuValidation, getParentMenu, getParentPopup, getProperties, getPseudoClassStates, getStyle, getStyleableNode, getStyleableParent, getStyleClass, getText, getTypeSelector, getUserData, graphicProperty, idProperty, isDisable, isMnemonicParsing, isVisible, mnemonicParsingProperty, onActionProperty, onMenuValidationProperty, parentMenuProperty, parentPopupProperty, removeEventHandler, setAccelerator, setDisable, setGraphic, setId, setMnemonicParsing, setOnAction, setOnMenuValidation, setParentMenu, setParentPopup, setStyle, setText, setUserData, setVisible, styleProperty, textProperty, toString, visibleProperty
-
-
-
-
Field Detail
-
ALLOW_SERVER
public static final int ALLOW_SERVER
- See Also:
- Constant Field Values
-
ALLOW_DATABASE
public static final int ALLOW_DATABASE
- See Also:
- Constant Field Values
-
ALLOW_TABLE
public static final int ALLOW_TABLE
- See Also:
- Constant Field Values
-
ALLOW_COLUMN
public static final int ALLOW_COLUMN
- See Also:
- Constant Field Values
-
ALLOW_INDEX
public static final int ALLOW_INDEX
- See Also:
- Constant Field Values
-
ALLOW_FOREIGN_KEY
public static final int ALLOW_FOREIGN_KEY
- See Also:
- Constant Field Values
-
ALLOW_TRIGGER
public static final int ALLOW_TRIGGER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TreeMenuItem
public TreeMenuItem(String text, javafx.scene.Node graphic, int type)
-
-