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, showing

    Properties 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_SHOWN

    Fields inherited from class javafx.scene.control.MenuItem

    MENU_VALIDATION_EVENT
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new account menu, adds all items and actions
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Adds all items to the menu.
    Also adds item to the perm's sub menu
    void
    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, showingProperty

    Methods 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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