com.github.dandelion.datatables.core.callback
Enum CallbackType

java.lang.Object
  extended by java.lang.Enum<CallbackType>
      extended by 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

Enum Constant Summary
COOKIE
           
CREATEDROW
           
DRAW
           
FOOTER
           
FORMAT
           
HEADER
           
INFO
           
INIT
           
PREDRAW
           
ROW
           
 
Method Summary
 String[] getArgs()
           
 String getName()
           
 boolean hasReturn()
           
 void setArgs(String[] args)
           
 void setFunction(String function)
           
 void setHasReturn(boolean hasReturn)
           
static CallbackType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CallbackType[] 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

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
Method Detail

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.