org.exoplatform.services.wsrp2.utils
Class WindowStates

java.lang.Object
  extended by org.exoplatform.services.wsrp2.utils.WindowStates
All Implemented Interfaces:
Serializable

public class WindowStates
extends Object
implements Serializable

See Also:
Serialized Form

Field Summary
static String _maximized_wsrp
           
static String _minimized_wsrp
           
static String _normal_wsrp
           
static String _solo_wsrp
           
static WindowStates MAXIMIZED
           
static WindowStates MINIMIZED
           
static WindowStates NORMAL
           
static WindowStates SOLO
           
 
Constructor Summary
WindowStates(String value)
           
 
Method Summary
static String addPrefixWSRP(String forAddWSRP)
           
static String delAllPrefixesWSRP(String forDelWSRP)
           
 boolean equals(Object obj)
           
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
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
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).
 String getValue()
           
static String[] getWindowStatesAsStringArray()
           
static String getWSRPStateString(javax.portlet.WindowState jsrWindowState)
           
 int hashCode()
           
 Object readResolve()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

_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
Constructor Detail

WindowStates

public WindowStates(String value)
Method Detail

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.