Package com.tick42.glue.desktop.windows
Class WindowOptions.Builder<B extends WindowOptions.Builder<B>>
- java.lang.Object
-
- com.tick42.glue.desktop.windows.WindowOptions.Builder<B>
-
- Enclosing class:
- WindowOptions
public abstract static class WindowOptions.Builder<B extends WindowOptions.Builder<B>> extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WindowOptionsbuild()Bchannel()Makes the window channel enabledBchannel(String channel)Makes the window channel enabled and sets its channelBdisableChannel()Disables channelsBmode(WindowMode mode)Determines window modeBonTopState(WindowOnTopState onTopState)Specify whether window would be on top of z-order even when other windows are focused.Btimeout(Duration timeout)Specify registration timeout.Btitle(String title)Specify window title
-
-
-
Method Detail
-
title
public B title(String title)
Specify window title- Parameters:
title- window title- Returns:
- this builder, never
null
-
timeout
public B timeout(Duration timeout)
Specify registration timeout.- Parameters:
timeout- registration timeout- Returns:
- this builder, never
null
-
channel
public B channel()
Makes the window channel enabled- Returns:
- this builder, never
null
-
channel
public B channel(String channel)
Makes the window channel enabled and sets its channel- Parameters:
channel- name of the desired channel- Returns:
- this builder, never
null
-
disableChannel
public B disableChannel()
Disables channels- Returns:
- this builder, never
null
-
mode
public B mode(WindowMode mode)
Determines window mode- Parameters:
mode- can beWindowMode.TABorWindowMode.FLAT, defaultWindowMode.TAB- Returns:
- this builder, never
null
-
onTopState
public B onTopState(WindowOnTopState onTopState)
Specify whether window would be on top of z-order even when other windows are focused. Always means the window will keep this on top setting even after being put into another window's tab; If yes is chosen, the window will remain on top until it is put into another window's tab.- Parameters:
onTopState- can beWindowOnTopState.ALWAYS,WindowOnTopState.YES, orWindowOnTopState.NO, defaultWindowOnTopState.NO- Returns:
- this builder, never
null - Since:
- 1.4.15
-
build
public WindowOptions build()
-
-