Class AccountMenu
java.lang.Object
javafx.scene.control.MenuItem
javafx.scene.control.Menu
net.minheur.potoflux.screen.menu.definers.AccountMenu
- All Implemented Interfaces:
javafx.css.Styleable,javafx.event.EventTarget
public class AccountMenu
extends javafx.scene.control.Menu
The menu for the account shortcuts
-
Property Summary
Properties inherited from class javafx.scene.control.Menu
onHidden, onHiding, onShowing, onShown, showingProperties inherited from class javafx.scene.control.MenuItem
accelerator, disable, graphic, id, mnemonicParsing, onAction, onMenuValidation, parentMenu, parentPopup, style, text, visible -
Field Summary
Fields inherited from class javafx.scene.control.Menu
ON_HIDDEN, ON_HIDING, ON_SHOWING, ON_SHOWNFields inherited from class javafx.scene.control.MenuItem
MENU_VALIDATION_EVENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAll()Adds all items to the menu.
Also adds item to the perm's sub menuvoidreload()Reloads the menu, adding or removing perm and updating the allow account creation checkbox
Ran on init (AccountMenu()) and on UI reload (ConnectionHandler.reloadAuthUi())Methods inherited from class javafx.scene.control.Menu
addEventHandler, buildEventDispatchChain, getItems, getOnHidden, getOnHiding, getOnShowing, getOnShown, hide, isShowing, onHiddenProperty, onHidingProperty, onShowingProperty, onShownProperty, removeEventHandler, setOnHidden, setOnHiding, setOnShowing, setOnShown, show, showingPropertyMethods inherited from class javafx.scene.control.MenuItem
acceleratorProperty, 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, setAccelerator, setDisable, setGraphic, setId, setMnemonicParsing, setOnAction, setOnMenuValidation, setParentMenu, setParentPopup, setStyle, setText, setUserData, setVisible, styleProperty, textProperty, toString, visibleProperty
-
Constructor Details
-
AccountMenu
public AccountMenu()Creates a new account menu, adds all items and actions
-
-
Method Details
-
reload
public void reload()Reloads the menu, adding or removing perm and updating the allow account creation checkbox
Ran on init (AccountMenu()) and on UI reload (ConnectionHandler.reloadAuthUi()) -
addAll
public void addAll()Adds all items to the menu.
Also adds item to the perm's sub menu
-