クラス SolidMenuItem.Condition

java.lang.Object
org.riversun.solidui.jmenuitem.SolidMenuItem.Condition
含まれているクラス:
SolidMenuItem

public static class SolidMenuItem.Condition extends Object
Represents the configuration options for creating a SolitMenuItem Created by https://riversun.github.io/java-builder/ class Condition String text String shortcutText KeyStroke accelerator int marginVertical int marginLeft int menuWidth int width
作成者:
riversun.org@gmail.com
  • メソッドの詳細

    • getText

      public String getText()
      Returns the display text of the menu item.
      戻り値:
      the text of the menu item
    • getShortcutText

      public String getShortcutText()
      Returns the shortcut text of the menu item.
      戻り値:
      the shortcut text of the menu item
    • getAccelerator

      public KeyStroke getAccelerator()
      Returns the KeyStroke representing the keyboard accelerator for the menu item.
      戻り値:
      the KeyStroke for the menu item's accelerator
    • getMarginVertical

      public int getMarginVertical()
      Returns the vertical margin for the menu item.
      戻り値:
      the vertical margin of the menu item
    • getMarginLeft

      public int getMarginLeft()
      Returns the left margin for the menu item.
      戻り値:
      the left margin of the menu item
    • getWidth

      public int getWidth()
      Returns the width of the menu item.
      戻り値:
      the width of the menu item
    • getColor

      public Color getColor()
      Returns the color of the menu item.
      戻り値:
      the color of the menu item
    • toString

      public String toString()
      Returns a string representation of the Condition instance.
      オーバーライド:
      toString クラス内 Object
      戻り値:
      a string representation of the Condition