This documentation is for an old version of fiftyfive-wicket (2.0.9).


fiftyfive.wicket.css
Enum IterationCssBehavior.CssClass

java.lang.Object
  extended by java.lang.Enum<IterationCssBehavior.CssClass>
      extended by fiftyfive.wicket.css.IterationCssBehavior.CssClass
All Implemented Interfaces:
Serializable, Comparable<IterationCssBehavior.CssClass>
Enclosing class:
IterationCssBehavior

public static enum IterationCssBehavior.CssClass
extends Enum<IterationCssBehavior.CssClass>

Valid CSS classes that this behavior can be configured to emit during the rendering of repeating components.


Enum Constant Summary
EVEN
          The "even" css class, emitted on even iterations.
FIRST
          The "first" css class, emitted on the first iteration only.
ITERATION
          The "iteration" css class.
LAST
          The "last" css class, emitted on the last iteration only.
ODD
          The "odd" css class, emitted on odd iterations.
 
Method Summary
static IterationCssBehavior.CssClass valueOf(String name)
          Returns the enum constant of this type with the specified name.
static IterationCssBehavior.CssClass[] 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

ODD

public static final IterationCssBehavior.CssClass ODD
The "odd" css class, emitted on odd iterations. The first item is considered odd.


EVEN

public static final IterationCssBehavior.CssClass EVEN
The "even" css class, emitted on even iterations. The first item is considered odd.


FIRST

public static final IterationCssBehavior.CssClass FIRST
The "first" css class, emitted on the first iteration only.


LAST

public static final IterationCssBehavior.CssClass LAST
The "last" css class, emitted on the last iteration only.


ITERATION

public static final IterationCssBehavior.CssClass ITERATION
The "iteration" css class. It is emitted on every iteration, with a suffix added representing the iteration number. The numbering starts at 1. In other words: iteration1, iteration2, iteration3, etc.

Method Detail

values

public static IterationCssBehavior.CssClass[] 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 (IterationCssBehavior.CssClass c : IterationCssBehavior.CssClass.values())
    System.out.println(c);

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

valueOf

public static IterationCssBehavior.CssClass 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


Copyright © 2011 55 Minutes. All Rights Reserved.