java.lang.Object
javafx.stage.Window
javafx.stage.PopupWindow
javafx.scene.control.PopupControl
javafx.scene.control.ContextMenu
com.acgist.snail.gui.javafx.menu.Menu
com.acgist.snail.gui.javafx.menu.TrayMenu
所有已实现的接口:
javafx.css.Styleable, javafx.event.EventTarget, javafx.scene.control.Skinnable

public final class TrayMenu extends Menu

托盘菜单

作者:
acgist
  • 属性概要

    从类继承的属性 javafx.scene.control.ContextMenu

    onAction

    从类继承的属性 javafx.scene.control.PopupControl

    id, maxHeight, maxWidth, minHeight, minWidth, prefHeight, prefWidth, skin, style

    从类继承的属性 javafx.stage.PopupWindow

    anchorLocation, anchorX, anchorY, autoFix, autoHide, consumeAutoHidingEvents, hideOnEscape, onAutoHide, ownerNode, ownerWindow

    从类继承的属性 javafx.stage.Window

    eventDispatcher, focused, forceIntegerRenderScale, height, onCloseRequest, onHidden, onHiding, onShowing, onShown, opacity, outputScaleX, outputScaleY, renderScaleX, renderScaleY, scene, showing, width, x, y
  • 嵌套类概要

    从类继承的嵌套类/接口 javafx.scene.control.PopupControl

    javafx.scene.control.PopupControl.CSSBridge

    从类继承的嵌套类/接口 javafx.stage.PopupWindow

    javafx.stage.PopupWindow.AnchorLocation
  • 字段概要

    从类继承的字段 javafx.scene.control.PopupControl

    bridge, USE_COMPUTED_SIZE, USE_PREF_SIZE
  • 方法概要

    修饰符和类型
    方法
    说明
    protected void
    新建所有菜单
    static final void
    关闭托盘
    static final TrayMenu
     
    void
    info(String title, String content)
    提示信息(提示)
    void
    notice(String title, String content, GuiContext.MessageType type)
    提示信息
    void
    warn(String title, String content)
    提示信息(警告)

    从类继承的方法 com.acgist.snail.gui.javafx.menu.Menu

    buildMenuItem, buildMenuItem, buildSeparator

    从类继承的方法 javafx.scene.control.ContextMenu

    createDefaultSkin, getItems, getOnAction, hide, onActionProperty, setOnAction, show, show

    从类继承的方法 javafx.scene.control.PopupControl

    getClassCssMetaData, getCssMetaData, getId, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getPrefHeight, getPrefWidth, getPseudoClassStates, getSkin, getStyle, getStyleableNode, getStyleableParent, getStyleClass, getTypeSelector, idProperty, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, pseudoClassStateChanged, setId, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setPrefHeight, setPrefSize, setPrefWidth, setSkin, setStyle, skinProperty, styleProperty

    从类继承的方法 javafx.stage.PopupWindow

    anchorLocationProperty, anchorXProperty, anchorYProperty, autoFixProperty, autoHideProperty, consumeAutoHidingEventsProperty, getAnchorLocation, getAnchorX, getAnchorY, getConsumeAutoHidingEvents, getOnAutoHide, getOwnerNode, getOwnerWindow, hideOnEscapeProperty, isAutoFix, isAutoHide, isHideOnEscape, onAutoHideProperty, ownerNodeProperty, ownerWindowProperty, setAnchorLocation, setAnchorX, setAnchorY, setAutoFix, setAutoHide, setConsumeAutoHidingEvents, setHideOnEscape, setOnAutoHide, setScene, show, show

    从类继承的方法 javafx.stage.Window

    addEventFilter, addEventHandler, buildEventDispatchChain, centerOnScreen, eventDispatcherProperty, fireEvent, focusedProperty, forceIntegerRenderScaleProperty, getEventDispatcher, getHeight, getOnCloseRequest, getOnHidden, getOnHiding, getOnShowing, getOnShown, getOpacity, getOutputScaleX, getOutputScaleY, getProperties, getRenderScaleX, getRenderScaleY, getScene, getUserData, getWidth, getWindows, getX, getY, hasProperties, heightProperty, isFocused, isForceIntegerRenderScale, isShowing, onCloseRequestProperty, onHiddenProperty, onHidingProperty, onShowingProperty, onShownProperty, opacityProperty, outputScaleXProperty, outputScaleYProperty, removeEventFilter, removeEventHandler, renderScaleXProperty, renderScaleYProperty, requestFocus, sceneProperty, setEventDispatcher, setEventHandler, setForceIntegerRenderScale, setHeight, setOnCloseRequest, setOnHidden, setOnHiding, setOnShowing, setOnShown, setOpacity, setRenderScaleX, setRenderScaleY, setUserData, setWidth, setX, setY, show, showingProperty, sizeToScene, widthProperty, xProperty, yProperty

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 方法详细资料

    • getInstance

      public static final TrayMenu getInstance()
    • buildMenus

      protected void buildMenus()
      从类复制的说明: Menu

      新建所有菜单

      指定者:
      buildMenus 在类中 Menu
    • info

      public void info(String title, String content)

      提示信息(提示)

      参数:
      title - 标题
      content - 内容
    • warn

      public void warn(String title, String content)

      提示信息(警告)

      参数:
      title - 标题
      content - 内容
    • notice

      public void notice(String title, String content, GuiContext.MessageType type)

      提示信息

      参数:
      title - 标题
      content - 内容
      type - 类型
    • exit

      public static final void exit()

      关闭托盘