Package com.tick42.glue.desktop.windows
Class WindowButtons.Builder<B extends WindowButtons.Builder<B>>
java.lang.Object
com.tick42.glue.desktop.windows.WindowButtons.Builder<B>
- Type Parameters:
B- concrete builder type.
- Enclosing class:
- WindowButtons
A builder for
WindowButtons.-
Method Summary
Modifier and TypeMethodDescriptionallowClose(boolean allowClose) Specify whether close button should be shown.allowCollapse(boolean allowCollapse) Specify whether collapse button should be shown.allowLockUnlock(boolean allowLockUnlock) Specify whether Lock/Unlock button should be shown.allowMaximize(boolean allowMaximize) Specify whether maximize button should be shown.allowMinimize(boolean allowMinimize) Specify whether minimize button should be shown.build()Build theWindowButtonsinstance.
-
Method Details
-
allowClose
Specify whether close button should be shown.- Parameters:
allowClose- boolean- Returns:
- this builder, never
null
-
allowCollapse
Specify whether collapse button should be shown.- Parameters:
allowCollapse- boolean- Returns:
- this builder, never
null
-
allowLockUnlock
Specify whether Lock/Unlock button should be shown.- Parameters:
allowLockUnlock- boolean- Returns:
- this builder, never
null
-
allowMaximize
Specify whether maximize button should be shown.- Parameters:
allowMaximize- boolean- Returns:
- this builder, never
null
-
allowMinimize
Specify whether minimize button should be shown.- Parameters:
allowMinimize- boolean- Returns:
- this builder, never
null
-
build
Build theWindowButtonsinstance.- Returns:
- A built
WindowButtonsinstance, nevernull.
-