|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<ShoppingCartController.DisplayMode>
org.torweg.pulse.component.shop.ShoppingCartController.DisplayMode
public static 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 |
|---|
public static final ShoppingCartController.DisplayMode DEFAULT
ShoppingCartResult will be added to the ResultSet.
public static final ShoppingCartController.DisplayMode AJAX_COMPACT
ShoppingCart will be returned by an
XSLTOutputEvent using the compact stylesheet.
public static final ShoppingCartController.DisplayMode AJAX_LONG
ShoppingCart will be returned by an
XSLTOutputEvent using the default stylesheet.
public static final ShoppingCartController.DisplayMode AJAX_JSON
ShoppingCart will be returned by a
JSONOutputEvent.
| Method Detail |
|---|
public static final ShoppingCartController.DisplayMode[] values()
for(ShoppingCartController.DisplayMode c : ShoppingCartController.DisplayMode.values())
System.out.println(c);
public static ShoppingCartController.DisplayMode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namepublic final boolean requestedBy(Command c)
Command has requested this
DisplayMode.
c - the command
true, if and only if the given Command has
requested this DisplayModepublic final boolean requestedBy(Parameter p)
Parameter has requested this
DisplayMode.
p - the parameter
true, if and only if the given Parameter has
requested this DisplayModepublic final java.lang.String getValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||