|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<OpenRuntimeInterfaceBehavior>
lumis.portal.serviceinterface.OpenRuntimeInterfaceBehavior
public enum OpenRuntimeInterfaceBehavior
Indicates the behavior to be applied when a runtime interface is to be opened.
Enum Constant Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final OpenRuntimeInterfaceBehavior REPLACE
public static final OpenRuntimeInterfaceBehavior POPUP
public static final OpenRuntimeInterfaceBehavior LIGHTBOX
Method Detail |
---|
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 name
NullPointerException
- 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |