Package com.github.dandelion.datatables.core.asset

Examples of com.github.dandelion.datatables.core.asset.Parameter


   *            Name of the parameter.
   * @param parameterValue
   *            Value of the parameter.
   */
  public void addParameter(String parameterName, Object parameterValue) {
    addParameter(new Parameter(parameterName, parameterValue));
  }
View Full Code Here


   *            Value of the parameter.
   * @param mode
   *            Method of updating used for this parameter.
   */
  public void addParameter(String parameterName, Object parameterValue, Parameter.Mode mode) {
    addParameter(new Parameter(parameterName, parameterValue, mode));
  }
View Full Code Here

   *            The type of the callback.
   * @param javascript
   *            The Javascript code to execute in the callback.
   */
  public void addCallback(CallbackType callbackType, String javascript) {
    addParameter(new Parameter(callbackType.getName(), new JavascriptFunction(javascript, callbackType.getArgs()),
        Mode.APPEND));
  }
View Full Code Here

   *            The Javascript code to execute in the callback.
   * @param mode
   *            Method of updating used for this parameter.
   */
  public void addCallback(CallbackType callbackType, String javascript, Mode mode) {
    addParameter(new Parameter(callbackType.getName(), new JavascriptFunction(javascript, callbackType.getArgs()),
        mode));
  }
View Full Code Here

  public String getName() {
    return "myCustomFeature";
  }

  public void setup(HtmlTable table) {
    addParameter(new Parameter("bStateSave", true));
  }
View Full Code Here

    return "myOtherCustomFeature";
  }

  @Override
  public void setup(HtmlTable table) {
    addParameter(new Parameter(DTConstants.DT_AUTO_WIDTH, true));
  }
View Full Code Here

  @SuppressWarnings("incomplete-switch")
  @Override
  public void setup(HtmlTable table) {

    addBundle(DatatableBundles.DDL_DT_THEME_JQUERYUI);
    addParameter(new Parameter(DTConstants.DT_JQUERYUI, true));

    ThemeOption themeOption = TableConfig.CSS_THEMEOPTION.valueFrom(table);
   
    if (themeOption != null) {
      switch(themeOption){
View Full Code Here

TOP

Related Classes of com.github.dandelion.datatables.core.asset.Parameter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.