Package com.extjs.gxt.ui.client.event

Examples of com.extjs.gxt.ui.client.event.FieldEvent


    });
  }

  @Override
  protected ComponentEvent createComponentEvent(Event event) {
    return new FieldEvent(this);
  }
View Full Code Here


    }
  }

  protected void fireChangeEvent(Object oldValue, Object value) {
    if (oldValue != value) {
      FieldEvent e = new FieldEvent(this);
      e.oldValue = oldValue;
      e.value = value;
      fireEvent(Events.Change, e);
    }
  }
View Full Code Here

    }

    if ((focusValue == null && getValue() != null) || (focusValue != null && !focusValue.equals(getValue()))) {
      fireChangeEvent(focusValue, getValue());
    }
    fireEvent(Events.Blur, new FieldEvent(this));
  }
View Full Code Here

      getInputEl().addStyleName(focusStyle);
    }
    if (!hasFocus) {
      hasFocus = true;
      focusValue = getValue();
      fireEvent(Events.Focus, new FieldEvent(this));
    }
  }
View Full Code Here

  protected void onKeyDown(FieldEvent fe) {

  }

  protected void onKeyPress(FieldEvent fe) {
    fireEvent(Events.KeyPress, new FieldEvent(this, fe.event));
  }
View Full Code Here

  protected void onKeyPress(FieldEvent fe) {
    fireEvent(Events.KeyPress, new FieldEvent(this, fe.event));
  }

  protected void onKeyUp(FieldEvent fe) {
    fireEvent(Events.KeyUp, new FieldEvent(this, fe.event));
  }
View Full Code Here

      }
    }
    if (GXT.isAriaEnabled()) {
      getAriaSupport().setState("aria-invalid", "false");
    }
    fireEvent(Events.Valid, new FieldEvent(this));
  }
View Full Code Here

  @Override
  public void focus() {
    super.focus();
    if (rendered) {
      onFocus(new FieldEvent(this));
    }
  }
View Full Code Here

    if (GXT.isAriaEnabled()) {
      setAriaState("aria-invalid", "true");
    }

    FieldEvent fe = new FieldEvent(this);
    fe.setMessage(msg);
    fireEvent(Events.Invalid, fe);
  }
View Full Code Here

    fireEvent(Events.Invalid, fe);
  }

  public void onComponentEvent(ComponentEvent ce) {
    super.onComponentEvent(ce);
    FieldEvent fe = new FieldEvent(this);
    fe.setEvent(ce.getEvent());
    switch (ce.getEventTypeInt()) {
      case Event.ONFOCUS:
        onFocus(ce);
        break;
      case Event.ONBLUR:
View Full Code Here

TOP

Related Classes of com.extjs.gxt.ui.client.event.FieldEvent

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.