pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.component.shop
Enum ShoppingCartController.DisplayMode

java.lang.Object
  extended by java.lang.Enum<ShoppingCartController.DisplayMode>
      extended by org.torweg.pulse.component.shop.ShoppingCartController.DisplayMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ShoppingCartController.DisplayMode>
Enclosing class:
ShoppingCartController

public static enum ShoppingCartController.DisplayMode
extends java.lang.Enum<ShoppingCartController.DisplayMode>

the display modes for the ShoppingCart.


Enum Constant Summary
AJAX_COMPACT
          the ShoppingCart will be returned by an XSLTOutputEvent using the compact stylesheet.
AJAX_JSON
          the ShoppingCart will be returned by a JSONOutputEvent.
AJAX_LONG
          the ShoppingCart will be returned by an XSLTOutputEvent using the default stylesheet.
DEFAULT
          a ShoppingCartResult will be added to the ResultSet.
 
Method Summary
 java.lang.String getValue()
          returns the value.
 boolean requestedBy(Command c)
          checks if the given Command has requested this DisplayMode.
 boolean requestedBy(Parameter p)
          checks if the given Parameter has requested this DisplayMode.
static ShoppingCartController.DisplayMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ShoppingCartController.DisplayMode[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DEFAULT

public static final ShoppingCartController.DisplayMode DEFAULT
a ShoppingCartResult will be added to the ResultSet.


AJAX_COMPACT

public static final ShoppingCartController.DisplayMode AJAX_COMPACT
the ShoppingCart will be returned by an XSLTOutputEvent using the compact stylesheet.


AJAX_LONG

public static final ShoppingCartController.DisplayMode AJAX_LONG
the ShoppingCart will be returned by an XSLTOutputEvent using the default stylesheet.


AJAX_JSON

public static final ShoppingCartController.DisplayMode AJAX_JSON
the ShoppingCart will be returned by a JSONOutputEvent.

Method Detail

values

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

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

valueOf

public static ShoppingCartController.DisplayMode valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

requestedBy

public final boolean requestedBy(Command c)
checks if the given Command has requested this DisplayMode.

Parameters:
c - the command
Returns:
true, if and only if the given Command has requested this DisplayMode

requestedBy

public final boolean requestedBy(Parameter p)
checks if the given Parameter has requested this DisplayMode.

Parameters:
p - the parameter
Returns:
true, if and only if the given Parameter has requested this DisplayMode

getValue

public final java.lang.String getValue()
returns the value.

Returns:
the value