public enum OpenRuntimeInterfaceBehavior extends Enum<OpenRuntimeInterfaceBehavior>
Enum Constant and Description |
---|
LIGHTBOX
Indicates that the runtime interface will be opened in a lightbox.
|
POPUP
Indicates that the runtime interface will be opened in a popup window.
|
REPLACE
Indicates that the runtime interface will replace the opener interface and
be shown in the same page.
|
Modifier and Type | Method and Description |
---|---|
static OpenRuntimeInterfaceBehavior |
from(PageWebResource pageWebResource,
boolean keepParentActive)
Returns the
OpenRuntimeInterfaceBehavior for the given page. |
static OpenRuntimeInterfaceBehavior |
from(String value,
boolean withParentActive)
Returns the
OpenRuntimeInterfaceBehavior accordingly to the given value. |
static OpenRuntimeInterfaceBehavior |
from(String value,
boolean useDefault,
boolean withParentActive)
Returns the
OpenRuntimeInterfaceBehavior accordingly to the given value. |
static OpenRuntimeInterfaceBehavior |
getDefaultBehavior(boolean keepParentActive)
Returns the default behavior.
|
static OpenRuntimeInterfaceBehavior |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OpenRuntimeInterfaceBehavior[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OpenRuntimeInterfaceBehavior REPLACE
public static final OpenRuntimeInterfaceBehavior POPUP
public static final OpenRuntimeInterfaceBehavior LIGHTBOX
public static OpenRuntimeInterfaceBehavior[] values()
for (OpenRuntimeInterfaceBehavior c : OpenRuntimeInterfaceBehavior.values()) System.out.println(c);
public static OpenRuntimeInterfaceBehavior valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static OpenRuntimeInterfaceBehavior from(String value, boolean withParentActive)
OpenRuntimeInterfaceBehavior
accordingly to the given value. When the value is null
or is an empty string, the returned value is
calculated in getDefaultBehavior(boolean)
.valueOf(String)
.value
- the value of the OpenRuntimeInterfaceBehavior
being requested.withParentActive
- indicates whether a parent window is required.OpenRuntimeInterfaceBehavior
accordingly to the given value.public static OpenRuntimeInterfaceBehavior from(String value, boolean useDefault, boolean withParentActive)
OpenRuntimeInterfaceBehavior
accordingly to the given value. When the value is null
or is an empty string and the parameter useDefault
is true
, the returned value is calculated in getDefaultBehavior(boolean)
.valueOf(String)
.value
- the value of the OpenRuntimeInterfaceBehavior
being requested.useDefault
- indicates whether the default value should be used if the given value is null
or empty.withParentActive
- indicates whether a parent window is required.OpenRuntimeInterfaceBehavior
accordingly to the given value.public static OpenRuntimeInterfaceBehavior from(PageWebResource pageWebResource, boolean keepParentActive) throws PortalException
OpenRuntimeInterfaceBehavior
for the given page.pageWebResource
- the page web resource.keepParentActive
- indicates whether the parent should be kept active.OpenRuntimeInterfaceBehavior
for the given page.PortalException
public static OpenRuntimeInterfaceBehavior getDefaultBehavior(boolean keepParentActive)
keepParentActive
is true
returns LIGHTBOX
. Returns REPLACE
otherwise.keepParentActive
- indicates whether the parent should be kept active.LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.