|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.github.dandelion.datatables.core.extension.AbstractExtension
public abstract class AbstractExtension
Abstract superclass for all extensions.
Lots of utilities are available in this class, allowing you to:
JsResourceParameter to the generated DataTables configurationCallback to the generated DataTables configuration
| Constructor Summary | |
|---|---|
AbstractExtension()
|
|
| Method Summary | |
|---|---|
void |
addBundle(DatatableBundles bundle)
Updates the current HttpServletRequest with the passed
DatatableBundles. |
void |
addBundleParameter(String assetName,
String paramName,
Object paramValue)
|
void |
addCallback(CallbackType callbackType,
String javascript)
Adds a Callback to the DataTables generated configuration. |
void |
addCallback(CallbackType callbackType,
String javascript,
Parameter.Mode mode)
Adds a Callback to the DataTables generated configuration,
specifying a method of updating if the CallbackType already
exists in the configuration. |
void |
addParameter(Parameter parameter)
Adds the passed Parameter to a temporary list. |
void |
addParameter(String parameterName,
Object parameterValue)
Adds a new DataTables parameter to the generated configuration. |
void |
addParameter(String parameterName,
Object parameterValue,
Parameter.Mode mode)
Adds a new DataTables parameter to the generated configuration, using a custom method of updating. |
void |
appendToAfterAll(String afterAll)
|
void |
appendToAfterStartDocumentReady(String afterStartDocumentReady)
|
void |
appendToBeforeAll(String beforeAll)
|
void |
appendToBeforeEndDocumentReady(String beforeEndDocumentReady)
|
void |
appendToBeforeStartDocumentReady(String beforeStartDocumentReady)
|
boolean |
equals(Object obj)
|
StringBuilder |
getAfterAll()
|
StringBuilder |
getAfterStartDocumentReady()
|
StringBuilder |
getBeforeAll()
|
StringBuilder |
getBeforeEndDocumentReady()
|
StringBuilder |
getBeforeStartDocumentReady()
|
AbstractConfigurationGenerator |
getConfigGenerator()
|
com.github.dandelion.core.Context |
getContext()
|
Map<String,String> |
getDynamicAttributes()
|
String |
getFunction()
|
List<Parameter> |
getParameters()
|
int |
hashCode()
|
boolean |
isEnabled(ConfigToken<Boolean> configToken)
|
boolean |
isNotNull(ConfigToken<?> configToken)
|
void |
setConfigGenerator(AbstractConfigurationGenerator configGenerator)
|
void |
setConfs(List<Parameter> confs)
|
void |
setFunction(String function)
|
abstract void |
setup(HtmlTable table)
|
void |
setupWrapper(HtmlTable table)
Set the extension up. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.github.dandelion.datatables.core.extension.Extension |
|---|
getName |
| Constructor Detail |
|---|
public AbstractExtension()
| Method Detail |
|---|
public void setupWrapper(HtmlTable table)
ExtensionSet the extension up.
The HtmlTable object is available if a particular configuration is needed.
setupWrapper in interface Extensiontable - The HTML table.public abstract void setup(HtmlTable table)
public StringBuilder getBeforeAll()
getBeforeAll in interface ExtensionInsertMode.BEFOREALL placeholder.public StringBuilder getAfterAll()
getAfterAll in interface ExtensionInsertMode.AFTERALL placeholder.public StringBuilder getBeforeStartDocumentReady()
getBeforeStartDocumentReady in interface ExtensionInsertMode.BEFORESTARTDOCUMENTREADY placeholder.public StringBuilder getAfterStartDocumentReady()
getAfterStartDocumentReady in interface ExtensionInsertMode.AFTERSTARTDOCUMENTREADY placeholder.public StringBuilder getBeforeEndDocumentReady()
getBeforeEndDocumentReady in interface ExtensionInsertMode.BEFOREENDDOCUMENTREADY placeholder.public List<Parameter> getParameters()
getParameters in interface Extensionpublic void setConfs(List<Parameter> confs)
setConfs in interface Extensionpublic void addParameter(Parameter parameter)
Adds the passed Parameter to a temporary list.
Later this list is processed and all Parameters are added to the
DataTables generated configuration.
addParameter in interface Extensionparameter - The param to add.
public void addParameter(String parameterName,
Object parameterValue)
Adds a new DataTables parameter to the generated configuration.
If the parameter already exists, it will be overriden.
parameterName - Name of the parameter.parameterValue - Value of the parameter.
public void addParameter(String parameterName,
Object parameterValue,
Parameter.Mode mode)
Adds a new DataTables parameter to the generated configuration, using a custom method of updating.
parameterName - Name of the parameter.parameterValue - Value of the parameter.mode - Method of updating used for this parameter.public void addBundle(DatatableBundles bundle)
HttpServletRequest with the passed
DatatableBundles.
bundle - The DatatableBundles to add.
public void addBundleParameter(String assetName,
String paramName,
Object paramValue)
public void addCallback(CallbackType callbackType,
String javascript)
Adds a Callback to the DataTables generated configuration.
By default, if the CallbackType already exists in the
configuration, the code will be appended to the existing code.
callbackType - The type of the callback.javascript - The Javascript code to execute in the callback.
public void addCallback(CallbackType callbackType,
String javascript,
Parameter.Mode mode)
Adds a Callback to the DataTables generated configuration,
specifying a method of updating if the CallbackType already
exists in the configuration.
callbackType - The type of the callback.javascript - The Javascript code to execute in the callback.mode - Method of updating used for this parameter.public AbstractConfigurationGenerator getConfigGenerator()
getConfigGenerator in interface Extensionpublic void setConfigGenerator(AbstractConfigurationGenerator configGenerator)
setConfigGenerator in interface Extensionpublic void appendToBeforeAll(String beforeAll)
appendToBeforeAll in interface Extensionpublic void appendToBeforeStartDocumentReady(String beforeStartDocumentReady)
appendToBeforeStartDocumentReady in interface Extensionpublic void appendToAfterStartDocumentReady(String afterStartDocumentReady)
appendToAfterStartDocumentReady in interface Extensionpublic void appendToBeforeEndDocumentReady(String beforeEndDocumentReady)
appendToBeforeEndDocumentReady in interface Extensionpublic void appendToAfterAll(String afterAll)
appendToAfterAll in interface Extensionpublic String getFunction()
getFunction in interface Extensionpublic void setFunction(String function)
setFunction in interface Extensionpublic Map<String,String> getDynamicAttributes()
public boolean isEnabled(ConfigToken<Boolean> configToken)
public boolean isNotNull(ConfigToken<?> configToken)
public com.github.dandelion.core.Context getContext()
Context.public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||