コード例 #1
0
ファイル: FieldEvents.java プロジェクト: nelsonsilva/vaadin
  /**
   * <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);
  }
コード例 #2
0
ファイル: FieldEvents.java プロジェクト: nelsonsilva/vaadin
  /**
   * <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);
  }
コード例 #3
0
ファイル: FieldEvents.java プロジェクト: nelsonsilva/vaadin
  /**
   * 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);
  }