public enum WindowParams extends java.lang.Enum<WindowParams>
WindowManager
.
Some of the parameters are intended for use by application code, others affect low-level window opening behaviour.Enum Constant and Description |
---|
CAPTION
Window caption that can be set by controller in its
init method. |
DESCRIPTION
Window description that can be set by controller in its
init method. |
DISABLE_APPLY_SETTINGS
Disables window settings applying after showing a window.
|
DISABLE_AUTO_REFRESH
Prevents datasources from automatic refresh caused by visual components.
|
DISABLE_RESUME_SUSPENDED
Disables suspendable datasources resuming after showing a window.
|
FOLDER_ID
Folder's UUID if the screen is opening from
FoldersPane . |
ITEM
Entity instance which is passed to an editor's controller
init method from WindowManager . |
MULTI_SELECT
If this parameter is set, a lookup screen can set up its lookup component (usually Table) for multi-selection.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
get(FrameContext context)
Get value from the WindowContext.
|
<T> T |
get(java.util.Map<java.lang.String,java.lang.Object> params)
Get value from the parameters map.
|
boolean |
getBool(FrameContext context)
Get boolean value from the WindowContext.
|
Entity |
getEntity(java.util.Map<java.lang.String,java.lang.Object> params)
Get Entity value from the parameters map.
|
java.lang.String |
getString(FrameContext context)
Get string value from the WindowContext.
|
java.lang.String |
getString(java.util.Map<java.lang.String,java.lang.Object> params)
Get string value from the parameters map.
|
java.util.UUID |
getUuid(java.util.Map<java.lang.String,java.lang.Object> params)
Get UUID value from the parameters map.
|
void |
set(java.util.Map<java.lang.String,java.lang.Object> params,
java.lang.Object value)
Set value in the parameters map.
|
static WindowParams |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WindowParams[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WindowParams ITEM
init
method from WindowManager
.public static final WindowParams FOLDER_ID
FoldersPane
.public static final WindowParams CAPTION
init
method.public static final WindowParams DESCRIPTION
init
method.
Description is shown as window tab tooltip.public static final WindowParams MULTI_SELECT
public static final WindowParams DISABLE_AUTO_REFRESH
public static final WindowParams DISABLE_APPLY_SETTINGS
public static final WindowParams DISABLE_RESUME_SUSPENDED
public static WindowParams[] values()
for (WindowParams c : WindowParams.values()) System.out.println(c);
public static WindowParams valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean getBool(@Nullable FrameContext context)
context
- window contextpublic java.lang.String getString(@Nullable FrameContext context)
context
- window contextpublic java.lang.String getString(java.util.Map<java.lang.String,java.lang.Object> params)
params
- parameters mappublic Entity getEntity(java.util.Map<java.lang.String,java.lang.Object> params)
params
- parameters mappublic java.util.UUID getUuid(java.util.Map<java.lang.String,java.lang.Object> params)
params
- parameters mappublic <T> T get(@Nullable FrameContext context)
context
- window contextpublic <T> T get(java.util.Map<java.lang.String,java.lang.Object> params)
params
- parameters mappublic void set(java.util.Map<java.lang.String,java.lang.Object> params, java.lang.Object value)
params
- window parameters mapvalue
- parameter value