org.exoplatform.services.wsrp.utils
Class WindowStates
java.lang.Object
org.exoplatform.services.wsrp.utils.WindowStates
- All Implemented Interfaces:
- java.io.Serializable
public class WindowStates
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
|
Method Summary |
static java.lang.String |
addPrefixWSRP(java.lang.String forAddWSRP)
|
static java.lang.String |
delAllPrefixesWSRP(java.lang.String forDelWSRP)
|
boolean |
equals(java.lang.Object obj)
|
static WindowStates |
fromString(java.lang.String value)
Returns the WSRP window state build from a string representation If a not
supported window state is requested, null is returned |
static WindowStates |
fromValue(java.lang.String value)
Returns the WSRP window state build from a string representation If a not
supported window state is requested, null is returned |
static javax.portlet.WindowState |
getJsrWindowState(java.lang.String state)
This helper method maps portlet window states defined in wsrp to portlet
window states defined in the java portlet standard (JSR-168). |
java.lang.String |
getValue()
|
static java.lang.String[] |
getWindowStatesAsStringArray()
|
static java.lang.String |
getWSRPStateString(javax.portlet.WindowState jsrWindowState)
|
int |
hashCode()
|
java.lang.Object |
readResolve()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
_normal_wsrp
public static final java.lang.String _normal_wsrp
_minimized_wsrp
public static final java.lang.String _minimized_wsrp
_maximized_wsrp
public static final java.lang.String _maximized_wsrp
_solo_wsrp
public static final java.lang.String _solo_wsrp
- See Also:
- Constant Field Values
NORMAL
public static final WindowStates NORMAL
MINIMIZED
public static final WindowStates MINIMIZED
MAXIMIZED
public static final WindowStates MAXIMIZED
SOLO
public static final WindowStates SOLO
WindowStates
public WindowStates(java.lang.String value)
getValue
public java.lang.String getValue()
fromValue
public static WindowStates fromValue(java.lang.String value)
- Returns the WSRP window state build from a string representation If a not
supported window state is requested, null is returned
- Parameters:
String - representation of the WSRP window state
- Returns:
- The WSRP
WindowStates represented by the passed string
fromString
public static WindowStates fromString(java.lang.String value)
- Returns the WSRP window state build from a string representation If a not
supported window state is requested, null is returned
- Parameters:
String - representation of the WSRP window state
- Returns:
- The WSRP
WindowStates represented by the passed string
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
readResolve
public java.lang.Object readResolve()
throws java.io.ObjectStreamException
- Throws:
java.io.ObjectStreamException
getWindowStatesAsStringArray
public static java.lang.String[] getWindowStatesAsStringArray()
getJsrWindowState
public static javax.portlet.WindowState getJsrWindowState(java.lang.String state)
- This helper method maps portlet window states defined in wsrp to portlet
window states defined in the java portlet standard (JSR-168). If the passed
wsrp window state is null or can not be mapped directly the NORMAL state is
returned.
- Returns:
- The
javax.portlet.WindowState which corresponds to
the given wsrp state.
getWSRPStateString
public static java.lang.String getWSRPStateString(javax.portlet.WindowState jsrWindowState)
addPrefixWSRP
public static java.lang.String addPrefixWSRP(java.lang.String forAddWSRP)
delAllPrefixesWSRP
public static java.lang.String delAllPrefixesWSRP(java.lang.String forDelWSRP)
Copyright © 2010 eXo Platform SAS. All Rights Reserved.