Package org.apache.wicket.ajax.attributes

Examples of org.apache.wicket.ajax.attributes.ThrottlingSettings


      @Override
      protected void updateAjaxAttributes(AjaxRequestAttributes attributes)
      {
        super.updateAjaxAttributes(attributes);

        ThrottlingSettings throttleSettings = new ThrottlingSettings("rangeTextFieldDemoId", Duration.milliseconds(500));
        attributes.setThrottlingSettings(throttleSettings);
      }
    });
  }
View Full Code Here


      if (AjaxRequestAttributes.XML_DATA_TYPE.equals(dataType) == false)
      {
        attributesJson.put("dt", dataType);
      }

      ThrottlingSettings throttlingSettings = attributes.getThrottlingSettings();
      if (throttlingSettings != null)
      {
        JSONObject throttlingSettingsJson = new JSONObject();
        throttlingSettingsJson.put("id", throttlingSettings.getId());
        throttlingSettingsJson.put("d", throttlingSettings.getDelay().getMilliseconds());
        if (throttlingSettings.getPostponeTimerOnUpdate())
        {
          throttlingSettingsJson.put("p", true);
        }
        attributesJson.put("tr", throttlingSettingsJson);
      }
View Full Code Here

TOP

Related Classes of org.apache.wicket.ajax.attributes.ThrottlingSettings

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.