クラス SolidMenuItem.Condition.Builder
java.lang.Object
org.riversun.solidui.jmenuitem.SolidMenuItem.Condition.Builder
- 含まれているクラス:
- SolidMenuItem.Condition
Builder class for constructing a Condition instance.
-
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明accelerator(KeyStroke accelerator) Sets the keyboard accelerator for the menu item.build()Constructs a new Condition instance using the values provided to the Builder.colorOnFocus(Color color) Sets the color for the menu item.marginLeft(int marginLeft) Sets the left margin for the menu item.marginVertical(int marginVertical) Sets the vertical margin for the menu item.shortcutText(String shortcutText) Sets the shortcut text for the menu item.Sets the display text for the menu item.width(int width) Sets the width of the menu item.
-
コンストラクタの詳細
-
Builder
public Builder()Constructs a new Builder instance.
-
-
メソッドの詳細
-
colorOnFocus
Sets the color for the menu item.- パラメータ:
color- the color for the menu item- 戻り値:
- this Builder instance for method chaining
-
text
Sets the display text for the menu item.- パラメータ:
text- the display text for the menu item- 戻り値:
- this Builder instance for method chaining
-
shortcutText
Sets the shortcut text for the menu item.- パラメータ:
shortcutText- the shortcut text for the menu item- 戻り値:
- this Builder instance for method chaining
-
accelerator
Sets the keyboard accelerator for the menu item.- パラメータ:
accelerator- the KeyStroke for the menu item's accelerator- 戻り値:
- this Builder instance for method chaining
-
marginVertical
Sets the vertical margin for the menu item.- パラメータ:
marginVertical- the vertical margin for the menu item- 戻り値:
- this Builder instance for method chaining
-
marginLeft
Sets the left margin for the menu item.- パラメータ:
marginLeft- the left margin for the menu item- 戻り値:
- this Builder instance for method chaining
-
width
Sets the width of the menu item.- パラメータ:
width- the width of the menu item- 戻り値:
- this Builder instance for method chaining
-
build
Constructs a new Condition instance using the values provided to the Builder.- 戻り値:
- a new Condition instance
-