Package com.tick42.glue.desktop.windows
Class WindowButtons
java.lang.Object
com.tick42.glue.desktop.windows.WindowButtons
Standard Button Options
Options for which standard buttons are shown by a window frame
- Since:
- 1.4.17
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classWindowButtons.Builder<B extends WindowButtons.Builder<B>>A builder forWindowButtons. -
Method Summary
Modifier and TypeMethodDescriptionstatic WindowButtons.Builder<?>builder()Create a newinstance.static WindowButtonsDefault standard button optionsbooleanIftrue, the window frame will have "Close" button.booleanIftrue, the window frame will have "Collapse/Expand" button.booleanIftrue, the window frame will have "Lock/Unlock" button.booleanIftrue, the window frame will have "Maximize" button.booleanIftrue, the window frame will have "Minimize" button.
-
Method Details
-
builder
Create a newinstance.- Returns:
- a new
WindowButtons.Builderinstance, nevernull.
-
defaultButtonOptions
Default standard button options- Returns:
WindowButtons.Builderwith default window buttons behaviour already set, nevernull
-
showCloseButton
public boolean showCloseButton()Iftrue, the window frame will have "Close" button.- Returns:
- if "Close button is shown
-
showCollapseButton
public boolean showCollapseButton()Iftrue, the window frame will have "Collapse/Expand" button.- Returns:
- if "Collapse/Expand" button is shown
-
showLockUnlockButton
public boolean showLockUnlockButton()Iftrue, the window frame will have "Lock/Unlock" button.- Returns:
- if "Lock/Unlock" button is shown
-
showMaximizeButton
public boolean showMaximizeButton()Iftrue, the window frame will have "Maximize" button.- Returns:
- if "Maximize" button is shown
-
showMinimizeButton
public boolean showMinimizeButton()Iftrue, the window frame will have "Minimize" button.- Returns:
- if "Minimize" button is shown
-