Package org.wicketstuff.gchart
Enum ColumnType
- java.lang.Object
-
- java.lang.Enum<ColumnType>
-
- org.wicketstuff.gchart.ColumnType
-
- All Implemented Interfaces:
Serializable,Comparable<ColumnType>,JavaScriptable
public enum ColumnType extends Enum<ColumnType> implements JavaScriptable
Google Column Types, see DataTable.- Author:
- Dieter Tremel
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringtoJavaScript()Return the JavaScript part.static ColumnTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ColumnType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STRING
public static final ColumnType STRING
-
NUMBER
public static final ColumnType NUMBER
-
BOOLEAN
public static final ColumnType BOOLEAN
-
DATE
public static final ColumnType DATE
-
DATETIME
public static final ColumnType DATETIME
-
TIMEOFDAY
public static final ColumnType TIMEOFDAY
-
-
Method Detail
-
values
public static ColumnType[] 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 (ColumnType c : ColumnType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ColumnType 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 nameNullPointerException- if the argument is null
-
toJavaScript
public String toJavaScript()
Description copied from interface:JavaScriptableReturn the JavaScript part.- Specified by:
toJavaScriptin interfaceJavaScriptable- Returns:
- JavaScript String for use as part of chart declaration.
-
-