Compiere 3.1

org.compiere.vos
Enum ComponentVO.ComponentType

java.lang.Object
  extended by java.lang.Enum<ComponentVO.ComponentType>
      extended by org.compiere.vos.ComponentVO.ComponentType
All Implemented Interfaces:
Serializable, Comparable<ComponentVO.ComponentType>
Enclosing class:
ComponentVO

public static enum ComponentVO.ComponentType
extends Enum<ComponentVO.ComponentType>

Indicates how a particular component should be rendered in the UI. Possible values are SEARCH, TABLE_SINGLE, TABLE_MULTI, and TABLE_NOSELECT.

Author:
gwu

Enum Constant Summary
SEARCH
          A component that renders its FieldVOs as a list of input fields that the users can use to enter search criteria.
TABLE_MULTI
          A component that renders search results in a tabular layout, and allows multiple rows to be selected at a time.
TABLE_NOSELECT
          A component that renders search results in a tabular layout, and does not allow any row to be selected.
TABLE_SINGLE
          A component that renders search results in a tabular layout, and allows only a single row to be selected at a time.
 
Method Summary
static ComponentVO.ComponentType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ComponentVO.ComponentType[] 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

SEARCH

public static final ComponentVO.ComponentType SEARCH
A component that renders its FieldVOs as a list of input fields that the users can use to enter search criteria.


TABLE_SINGLE

public static final ComponentVO.ComponentType TABLE_SINGLE
A component that renders search results in a tabular layout, and allows only a single row to be selected at a time. Uses the specified FieldVOs as the specification for the column layout and data type.


TABLE_MULTI

public static final ComponentVO.ComponentType TABLE_MULTI
A component that renders search results in a tabular layout, and allows multiple rows to be selected at a time. Uses the specified FieldVOs as the specification for the column layout and data type.


TABLE_NOSELECT

public static final ComponentVO.ComponentType TABLE_NOSELECT
A component that renders search results in a tabular layout, and does not allow any row to be selected. Uses the specified FieldVOs as the specification for the column layout and data type.

Method Detail

values

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

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

valueOf

public static ComponentVO.ComponentType 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

Compiere 3.1

Compiere® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.