Package com.gwtext.client.core

Examples of com.gwtext.client.core.Function


     * @param date the date
     */
    public void setValue(final Date date) {
        if(!isRendered()) {
            initDate = date;
            addListener("render", new Function() {
                public void execute() {
                    setValue(date);
                }
            });
        }
View Full Code Here


        if (component.isRendered()) {
            jsObj = create(component.getId(), sGroup, config == null ? null : config.getJsObj());
            setLocalRef(jsObj, this);
            onAvailable();
        } else {
            component.addListener("render", new Function() {
                public void execute() {
                    jsObj = create(component.getId(), sGroup, config == null ? null : config.getJsObj());
                    setLocalRef(jsObj, DragDrop.this);
                    onAvailable();
                }
View Full Code Here

     * @param code is the code to display in the panel
     */
    public void setHtml(String code){
      this.html = code;
     
    addListener("render", new Function(){
      public void execute() {
        setSuperHtml(setSyntaxHighlight());
        DeferredCommand.addCommand(new Command(){
          public void execute() {
            executeSh(name, showGutter, showControls, collapseAll, firstLine, showColumns);
View Full Code Here

     * @param date the date
     */
    public void setValue(final Date date) {
        if(!isRendered()) {
            initDate = date;
            addListener("render", new Function() {
                public void execute() {
                    setValue(date);
                }
            });
        } else {
View Full Code Here

  /**
   * Create a new MapPanel.
   */
  public MapPanel() {
    addListener("render", new Function() {
      public void execute() {

      }
    });

View Full Code Here

    resizeTo(body.getWidth(), body.getHeight());
  }

  public void addEventListener(final String event, final Function listener) {
    if (!mapRendered) {
      addListener(MAP_RENDERED_EVENT, new Function() {
        public void execute() {
          doAddEventListener(event, listener);
        }
      });
    } else {
View Full Code Here

   * @param operator the filter operator
   * @param value the value to compare against
   */
  public void addFilter(final String field, final FilterOperator operator, final String value) {
    if (!mapRendered) {
      addListener(MAP_RENDERED_EVENT, new Function() {
        public void execute() {
          doAddFilter(field, operator.getOperator(), value);
        }
      });
    } else {
View Full Code Here

   * @param operator the filter operator
   * @param value the value to compare against
   */
  public void addFilter(final String field, final FilterOperator operator, final int value) {
    if (!mapRendered) {
      addListener(MAP_RENDERED_EVENT, new Function() {
        public void execute() {
          doAddFilter(field, operator.getOperator(), value);
        }
      });
    } else {
View Full Code Here

   * @param operator the filter operator
   * @param value the value to compare against
   */
  public void addFilter(final String field, final FilterOperator operator, final double value) {
    if (!mapRendered) {
      addListener(MAP_RENDERED_EVENT, new Function() {
        public void execute() {
          doAddFilter(field, operator.getOperator(), value);
        }
      });
    } else {
View Full Code Here

   *
   * @param overlayURL adds a GeoRSS or KML overlay to the map
   */
  public void addOverlay(final String overlayURL) {
    if (!mapRendered) {
      addListener(MAP_RENDERED_EVENT, new Function() {
        public void execute() {
          doAddOverlay(overlayURL);
        }
      });
    } else {
View Full Code Here

TOP

Related Classes of com.gwtext.client.core.Function

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.