WindowState class represents the possible window states
that a portlet window can assume.
This class defines a standard set of the most basic portlet window states. Additional window states may be defined by calling the constructor of this class. If a portal/portlet-container does not support a custom window state defined in the portlet application deployment descriptor, the custom window state will be ignored by the portal/portlet container.
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| public static final WindowState | MAXIMIZED
The |
| public static final WindowState | MINIMIZED
When a portlet is in |
| public static final WindowState | NORMAL
The |
| public static final WindowState | UNDEFINED
The window state
UNDEFINED is returned by the
getWindowState method when the window state is not available. |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true, if the specified object is equal with this window state.the window state to compare this window state with. object)Overrides java. |
| public int | Returns: hash code value for this window stateOverrides java. |
| public String | Returns: String representation of this window state.Overrides java. |
| _name | back to summary |
|---|---|
| private String _name | |
| MAXIMIZED | back to summary |
|---|---|
| public static final WindowState MAXIMIZED The
The string value for this state is | |
| MINIMIZED | back to summary |
|---|---|
| public static final WindowState MINIMIZED When a portlet is in
The string value for this state is | |
| NORMAL | back to summary |
|---|---|
| public static final WindowState NORMAL The
The string value for this state is | |
| UNDEFINED | back to summary |
|---|---|
| public static final WindowState UNDEFINED The window state
UNDEFINED is returned by the
getWindowState method when the window state is not available.
This mode may not be used to set the window state in the
The string value for this mode is
| |
| WindowState | back to summary |
|---|---|
| public WindowState()
No-arg constructor to make object proxyable
| |
| WindowState | back to summary |
|---|---|
| public WindowState(String name) Creates a new window state with the given name. Upper case letters in the name are converted to lower case letters.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object object) Overrides java. Compares the specified object with this window state for equality. Returns
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns the hash code value for this window state. The hash code is constructed by producing the hash value of the String value of this window state.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a String representation of this window state. Window state names are always lower case names.
| |