org.apache.jetspeed.portlet
Class Portlet.ModeModifier

java.lang.Object
  extended by org.apache.jetspeed.portlet.Portlet.ModeModifier
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
Portlet

public static class Portlet.ModeModifier
extends java.lang.Object
implements java.io.Serializable

The ModeModifier class is a finite enumeration of the possible modifications a portlet can apply on modes.

See Also:
Serialized Form

Field Summary
static Portlet.ModeModifier CURRENT
          The mode is not changed and stays in the current one.
static Portlet.ModeModifier PREVIOUS
          The mode is changed to the previous one.
static Portlet.ModeModifier REQUESTED
          The mode is changed as requested.
 
Method Summary
 int getId()
          Returns the id representing the mode modifier
 java.lang.Object readResolve()
          Returns a mode modifier object representing the mode modifier of this object
 java.lang.String toString()
          Returns the identifier representing the mode modifier
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REQUESTED

public static final Portlet.ModeModifier REQUESTED
The mode is changed as requested.


CURRENT

public static final Portlet.ModeModifier CURRENT
The mode is not changed and stays in the current one.


PREVIOUS

public static final Portlet.ModeModifier PREVIOUS
The mode is changed to the previous one.

Method Detail

getId

public int getId()
Returns the id representing the mode modifier

Returns:
the mode modifier id

toString

public java.lang.String toString()
Returns the identifier representing the mode modifier

Overrides:
toString in class java.lang.Object
Returns:
the mode modifier identifier

readResolve

public java.lang.Object readResolve()
                             throws java.io.ObjectStreamException
Returns a mode modifier object representing the mode modifier of this object

Returns:
the mode modifier object
Throws:
java.io.ObjectStreamException