com.github.dandelion.datatables.core.callback
Class Callback

java.lang.Object
  extended by com.github.dandelion.datatables.core.callback.Callback

public class Callback
extends Object

Callback called by DataTables.

A callback is composed of:

Since:
0.8.9
Author:
Thibault Duchateau
See Also:
CallbackType

Constructor Summary
Callback(CallbackType type, JavascriptFunction function)
           
Callback(CallbackType type, String functionContent)
           
 
Method Summary
 void appendCode(String code)
           
static Callback findByType(CallbackType type, List<Callback> callbacks)
           
 JavascriptFunction getFunction()
           
 CallbackType getType()
           
static boolean hasCallback(CallbackType callbackType, List<Callback> callbacks)
           
 void setFunction(JavascriptFunction function)
           
 void setType(CallbackType type)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Callback

public Callback(CallbackType type,
                String functionContent)

Callback

public Callback(CallbackType type,
                JavascriptFunction function)
Method Detail

getType

public CallbackType getType()

setType

public void setType(CallbackType type)

getFunction

public JavascriptFunction getFunction()

setFunction

public void setFunction(JavascriptFunction function)

appendCode

public void appendCode(String code)

hasCallback

public static boolean hasCallback(CallbackType callbackType,
                                  List<Callback> callbacks)

findByType

public static Callback findByType(CallbackType type,
                                  List<Callback> callbacks)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013–2014 Dandelion Project. All rights reserved.