Beispiel #1
0
  /**
   * <code>BlurListener</code> interface for listening for <code>BlurEvent</code> fired by a <code>
   * Field</code>.
   *
   * @see BlurEvent
   * @since 6.2
   */
  public interface BlurListener extends ComponentEventListener {

    public static final Method blurMethod =
        ReflectTools.findMethod(BlurListener.class, "blur", BlurEvent.class);

    /**
     * Component has been blurred
     *
     * @param event Component blur event.
     */
    public void blur(BlurEvent event);
  }
Beispiel #2
0
  /**
   * <code>FocusListener</code> interface for listening for <code>FocusEvent</code> fired by a
   * <code>Field</code>.
   *
   * @see FocusEvent
   * @since 6.2
   */
  public interface FocusListener extends ComponentEventListener {

    public static final Method focusMethod =
        ReflectTools.findMethod(FocusListener.class, "focus", FocusEvent.class);

    /**
     * Component has been focused
     *
     * @param event Component focus event.
     */
    public void focus(FocusEvent event);
  }
Beispiel #3
0
  /**
   * A listener for {@link TextChangeEvent}s.
   *
   * @since 6.5
   */
  public interface TextChangeListener extends ComponentEventListener {

    public static String EVENT_ID = "ie";
    public static Method EVENT_METHOD =
        ReflectTools.findMethod(TextChangeListener.class, "textChange", TextChangeEvent.class);

    /**
     * This method is called repeatedly while the text is edited by a user.
     *
     * @param event the event providing details of the text change
     */
    public void textChange(TextChangeEvent event);
  }