com.github.dandelion.datatables.core.callback
Enum CallbackType
java.lang.Object
java.lang.Enum<CallbackType>
com.github.dandelion.datatables.core.callback.CallbackType
- All Implemented Interfaces:
- Serializable, Comparable<CallbackType>
public enum CallbackType
- extends Enum<CallbackType>
Enum containing the different type of callback and their respective input
parameter(s).
- Since:
- 0.8.9
- Author:
- Thibault Duchateau
COOKIE
public static final CallbackType COOKIE
CREATEDROW
public static final CallbackType CREATEDROW
DRAW
public static final CallbackType DRAW
FOOTER
public static final CallbackType FOOTER
FORMAT
public static final CallbackType FORMAT
HEADER
public static final CallbackType HEADER
INFO
public static final CallbackType INFO
INIT
public static final CallbackType INIT
PREDRAW
public static final CallbackType PREDRAW
ROW
public static final CallbackType ROW
values
public static CallbackType[] 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 (CallbackType c : CallbackType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static CallbackType 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
getName
public String getName()
setFunction
public void setFunction(String function)
getArgs
public String[] getArgs()
setArgs
public void setArgs(String[] args)
hasReturn
public boolean hasReturn()
setHasReturn
public void setHasReturn(boolean hasReturn)
Copyright © 2013–2014 Dandelion Project. All rights reserved.