org.pm4j.core.pm.pageable
Enum PmPagerImpl.PagerVisibility

java.lang.Object
  extended by java.lang.Enum<PmPagerImpl.PagerVisibility>
      extended by org.pm4j.core.pm.pageable.PmPagerImpl.PagerVisibility
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PmPagerImpl.PagerVisibility>
Enclosing class:
PmPagerImpl<T_ITEM>

public static enum PmPagerImpl.PagerVisibility
extends java.lang.Enum<PmPagerImpl.PagerVisibility>

The set of standard pager visibility conditions.


Enum Constant Summary
ALWAYS
          The pager will always be displayed.
WHEN_SECOND_PAGE_EXISTS
          The pager will be displayed only if there is at least a second page to navigate to.
WHEN_TABLE_IS_NOT_EMPTY
          The pager will be displayed only if the table has at least a single row.
 
Method Summary
static PmPagerImpl.PagerVisibility valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PmPagerImpl.PagerVisibility[] 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

ALWAYS

public static final PmPagerImpl.PagerVisibility ALWAYS
The pager will always be displayed.


WHEN_SECOND_PAGE_EXISTS

public static final PmPagerImpl.PagerVisibility WHEN_SECOND_PAGE_EXISTS
The pager will be displayed only if there is at least a second page to navigate to.


WHEN_TABLE_IS_NOT_EMPTY

public static final PmPagerImpl.PagerVisibility WHEN_TABLE_IS_NOT_EMPTY
The pager will be displayed only if the table has at least a single row.

Method Detail

values

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

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

valueOf

public static PmPagerImpl.PagerVisibility 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
java.lang.NullPointerException - if the argument is null