public class Callback extends Object
Callback called by DataTables.
A callback is composed of:
CallbackType
available among all callbacks proposed by
DataTablesJsFunction
that is executed in the callbackCallbackType
Constructor and Description |
---|
Callback(CallbackType type,
com.github.dandelion.core.asset.generator.js.JsFunction function) |
Callback(CallbackType type,
String functionContent) |
Modifier and Type | Method and Description |
---|---|
void |
appendCode(String code) |
static Callback |
findByType(CallbackType type,
List<Callback> callbacks) |
com.github.dandelion.core.asset.generator.js.JsFunction |
getFunction() |
CallbackType |
getType() |
static boolean |
hasCallback(CallbackType callbackType,
List<Callback> callbacks) |
void |
setFunction(com.github.dandelion.core.asset.generator.js.JsFunction function) |
void |
setType(CallbackType type) |
String |
toString() |
public Callback(CallbackType type, String functionContent)
public Callback(CallbackType type, com.github.dandelion.core.asset.generator.js.JsFunction function)
public CallbackType getType()
public void setType(CallbackType type)
public com.github.dandelion.core.asset.generator.js.JsFunction getFunction()
public void setFunction(com.github.dandelion.core.asset.generator.js.JsFunction function)
public void appendCode(String code)
public static boolean hasCallback(CallbackType callbackType, List<Callback> callbacks)
public static Callback findByType(CallbackType type, List<Callback> callbacks)
Copyright © 2013–2015 Dandelion Project. All rights reserved.