| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.portlet.PortletMode
public class PortletMode
The PortletMode class represents the possible modes that a portlet can assume.
 
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 | EDITWithin the EDITportlet mode, a portlet should provide content and logic that lets a user customize
 the behavior of the portlet. | 
| static PortletMode | HELPWhen in HELPportlet mode, a portlet should provide help information about the portlet. | 
| static PortletMode | VIEWThe expected functionality for a portlet in VIEWportlet 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 o)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 EDIT
EDIT portlet mode, a portlet should provide content and logic that lets a user customize
 the behavior of the portlet. The EDIT portlet mode may include one or more screens among which users can navigate
 to enter their customization data.
 
 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
HELP portlet mode, a portlet should provide help information about the portlet. This help
 information could be a simple help screen explaining the entire portlet in coherent text or it could be
 context-sensitive help.
 
 This mode is optional.
 
 The string value for this mode is "help".
public static final PortletMode VIEW
VIEW portlet mode is to generate markup reflecting the
 current state of the portlet. For example, the VIEW portlet mode of a portlet may include one or more
 screens that the user can navigate and interact with, or it may consist of static content that does not require
 any user interaction.
 
 This mode must be supported by the portlet.
 
 The string value for this mode is "view".
| Constructor Detail | 
|---|
public PortletMode(java.lang.String name)
name - The name of the portlet mode| Method Detail | 
|---|
public boolean equals(java.lang.Object o)
true if the Strings
 equals method for the String representing the two portlet modes returns true.
equals in class java.lang.Objecto - portlet mode to compare this portlet mode with
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||