org.mmbase.framework
Enum WindowState

java.lang.Object
  extended by java.lang.Enum<WindowState>
      extended by org.mmbase.framework.WindowState
All Implemented Interfaces:
Serializable, Comparable<WindowState>

public enum WindowState
extends Enum<WindowState>

Every block can be in a certain window state, which could be considered during rendering.

Since:
MMBase-1.9
Version:
$Id: WindowState.java 34936 2009-05-04 14:41:51Z michiel $
Author:
Michiel Meeuwissen

Enum Constant Summary
MAXIMIZED
          Rendering may suppose a full browser window
MINIMIZED
          Rendering should suppose only a 'link' version from the component.
NORMAL
          Rendering may suppose quite a large area, but should be aware that other blocks are in a similar state.
 
Method Summary
static WindowState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static WindowState[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

MAXIMIZED

public static final WindowState MAXIMIZED
Rendering may suppose a full browser window


MINIMIZED

public static final WindowState MINIMIZED
Rendering should suppose only a 'link' version from the component.


NORMAL

public static final WindowState NORMAL
Rendering may suppose quite a large area, but should be aware that other blocks are in a similar state.

Method Detail

values

public static WindowState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (WindowState c : WindowState.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static WindowState valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


MMBase 2.0-SNAPSHOT - null