org.exoplatform.services.wsrp2.utils
Class WindowStates
java.lang.Object
org.exoplatform.services.wsrp2.utils.WindowStates
- All Implemented Interfaces:
- Serializable
public class WindowStates
- extends Object
- implements Serializable
- See Also:
- Serialized Form
_normal_wsrp
public static final String _normal_wsrp
_minimized_wsrp
public static final String _minimized_wsrp
_maximized_wsrp
public static final String _maximized_wsrp
_solo_wsrp
public static final 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(String value)
getValue
public String getValue()
fromValue
public static WindowStates fromValue(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(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(Object obj)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
toString
public String toString()
- Overrides:
toString in class Object
readResolve
public Object readResolve()
throws ObjectStreamException
- Throws:
ObjectStreamException
getWindowStatesAsStringArray
public static String[] getWindowStatesAsStringArray()
getJsrWindowState
public static javax.portlet.WindowState getJsrWindowState(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 String getWSRPStateString(javax.portlet.WindowState jsrWindowState)
addPrefixWSRP
public static String addPrefixWSRP(String forAddWSRP)
delAllPrefixesWSRP
public static String delAllPrefixesWSRP(String forDelWSRP)
Copyright © 2009 eXo Platform SAS. All Rights Reserved.