|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.portlet.PortletMode
public class PortletMode
The PortletMode class represents the possible modes that a portlet can assume.
A portlet mode indicates the function a portlet is performing. Normally, portlets perform different tasks and create different content depending on the function they are currently performing. When invoking a portlet, the portlet container provides the current portlet mode to the portlet.
Portlets can programmatically change their portlet mode when processing an action request.
This class defines the default portlet modes EDIT, HELP, VIEW. Additional portlet modes may be defined by calling the constructor of this class. If a portal/portlet-container does not support a custom portlet mode defined in the portlet application deployment descriptor, the custom portlet mode will be ignored by the portal/portlet container.
Field Summary | |
---|---|
static PortletMode | EDIT
Within the EDIT portlet mode, a portlet should provide content and logic that lets a user customize the behavior of the portlet. |
static PortletMode | HELP
When in HELP portlet mode, a portlet should provide help information about the portlet. |
static PortletMode | VIEW
The expected functionality for a portlet in VIEW portlet mode is to generate markup reflecting the current state of the portlet. |
Constructor Summary | |
---|---|
PortletMode(java.lang.String name)
Creates a new portlet mode with the given name. |
Method Summary | |
---|---|
boolean | equals(java.lang.Object object)
Compares the specified object with this portlet mode for equality. |
int | hashCode()
Returns the hash code value for this portlet mode. |
java.lang.String | toString()
Returns a String representation of this portlet mode. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final PortletMode VIEW
This mode must be supported by the portlet.
The string value for this mode is "view".
public static final PortletMode EDIT
Typically, portlets in EDIT portlet mode will set or update portlet preferences.
This mode is optional.
The string value for this mode is "edit".
public static final PortletMode HELP
This mode is optional.
The string value for this mode is "help".
Constructor Detail |
---|
public PortletMode(java.lang.String name)
Upper case letters in the name are converted to lower case letters.
Method Detail |
---|
public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |