クラス SolidMenuItem.Condition
java.lang.Object
org.riversun.solidui.jmenuitem.SolidMenuItem.Condition
- 含まれているクラス:
- SolidMenuItem
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
-
ネストされたクラスの概要
ネストされたクラス修飾子とタイプクラス説明static classBuilder class for constructing a Condition instance. -
メソッドの概要
修飾子とタイプメソッド説明Returns the KeyStroke representing the keyboard accelerator for the menu item.getColor()Returns the color of the menu item.intReturns the left margin for the menu item.intReturns the vertical margin for the menu item.Returns the shortcut text of the menu item.getText()Returns the display text of the menu item.intgetWidth()Returns the width of the menu item.toString()Returns a string representation of the Condition instance.
-
メソッドの詳細
-
getText
Returns the display text of the menu item.- 戻り値:
- the text of the menu item
-
getShortcutText
Returns the shortcut text of the menu item.- 戻り値:
- the shortcut text of the menu item
-
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
Returns the color of the menu item.- 戻り値:
- the color of the menu item
-
toString
Returns a string representation of the Condition instance.
-