/** * Add a keyDown handler. * <p> * StringMethod fired in response to a keydown while focused in this form item. * * @param handler the keyDown handler * @return {@link HandlerRegistration} used to remove this handler */ public HandlerRegistration addKeyDownHandler(com.smartgwt.client.widgets.form.fields.events.KeyDownHandler handler) { if(getHandlerCount(com.smartgwt.client.widgets.form.fields.events.KeyDownEvent.getType()) == 0) setupKeyDownEvent(); return doAddHandler(handler, com.smartgwt.client.widgets.form.fields.events.KeyDownEvent.getType()); }
/** * Add a keyUp handler. * <p> * StringMethod fired in response to a keyup while focused in this form item. * * @param handler the keyUp handler * @return {@link HandlerRegistration} used to remove this handler */ public HandlerRegistration addKeyUpHandler(com.smartgwt.client.widgets.form.fields.events.KeyUpHandler handler) { if(getHandlerCount(com.smartgwt.client.widgets.form.fields.events.KeyUpEvent.getType()) == 0) setupKeyUpEvent(); return doAddHandler(handler, com.smartgwt.client.widgets.form.fields.events.KeyUpEvent.getType()); }
/** * Add a doubleClick handler. * <p> * Called when this FormItem is double-clicked. * * @param handler the doubleClick handler * @return {@link HandlerRegistration} used to remove this handler */ public HandlerRegistration addDoubleClickHandler(com.smartgwt.client.widgets.form.fields.events.DoubleClickHandler handler) { if(getHandlerCount(com.smartgwt.client.widgets.form.fields.events.DoubleClickEvent.getType()) == 0) setupDoubleClickEvent(); return doAddHandler(handler, com.smartgwt.client.widgets.form.fields.events.DoubleClickEvent.getType()); }
/** * Add a focus handler. * <p> * Called when this FormItem receives focus. * * @param handler the focus handler * @return {@link HandlerRegistration} used to remove this handler */ public HandlerRegistration addFocusHandler(com.smartgwt.client.widgets.form.fields.events.FocusHandler handler) { if(getHandlerCount(com.smartgwt.client.widgets.form.fields.events.FocusEvent.getType()) == 0) setupFocusEvent(); return doAddHandler(handler, com.smartgwt.client.widgets.form.fields.events.FocusEvent.getType()); }
/** * Add a titleDoubleClick handler. * <p> * Notification method fired when the user double-clicks the title for this item * * @param handler the titleDoubleClick handler * @return {@link HandlerRegistration} used to remove this handler */ public HandlerRegistration addTitleDoubleClickHandler(com.smartgwt.client.widgets.form.fields.events.TitleDoubleClickHandler handler) { if(getHandlerCount(com.smartgwt.client.widgets.form.fields.events.TitleDoubleClickEvent.getType()) == 0) setupTitleDoubleClickEvent(); return doAddHandler(handler, com.smartgwt.client.widgets.form.fields.events.TitleDoubleClickEvent.getType()); }
/** * Add a iconKeyPress handler. * <p> * StringMethod. Default action to fire when an icon has keyboard focus and the user types a key. May be * overridden by setting <code>keyPress</code> on the form item icon directly. * * @param handler the iconKeyPress handler * @return {@link HandlerRegistration} used to remove this handler */ public HandlerRegistration addIconKeyPressHandler(com.smartgwt.client.widgets.form.fields.events.IconKeyPressHandler handler) { if(getHandlerCount(com.smartgwt.client.widgets.form.fields.events.IconKeyPressEvent.getType()) == 0) setupIconKeyPressEvent(); return doAddHandler(handler, com.smartgwt.client.widgets.form.fields.events.IconKeyPressEvent.getType()); }
/** * Add a changed handler. * <p> * Called when a FormItem's value has been changed as the result of user interaction. This method fires after the newly * specified value has been stored. * * @param handler the changed handler * @return {@link HandlerRegistration} used to remove this handler */ public HandlerRegistration addChangedHandler(com.smartgwt.client.widgets.form.fields.events.ChangedHandler handler) { if(getHandlerCount(com.smartgwt.client.widgets.form.fields.events.ChangedEvent.getType()) == 0) setupChangedEvent(); return doAddHandler(handler, com.smartgwt.client.widgets.form.fields.events.ChangedEvent.getType()); }
/** * Add a click handler. * <p> * Called when this FormItem is clicked on. <P> Note: <code>click()</code> is available on StaticTextItem, BlurbItems, * ButtonItem, and derivatives. Other form items (such as HiddenItem) do not support <code>click()</code>. * * @param handler the click handler * @return {@link HandlerRegistration} used to remove this handler */ public HandlerRegistration addClickHandler(com.smartgwt.client.widgets.form.fields.events.ClickHandler handler) { if(getHandlerCount(com.smartgwt.client.widgets.form.fields.events.ClickEvent.getType()) == 0) setupClickEvent(); return doAddHandler(handler, com.smartgwt.client.widgets.form.fields.events.ClickEvent.getType()); }
/** * Add a blur handler. * <p> * Called when this FormItem loses focus. * * @param handler the blur handler * @return {@link HandlerRegistration} used to remove this handler */ public HandlerRegistration addBlurHandler(com.smartgwt.client.widgets.form.fields.events.BlurHandler handler) { if(getHandlerCount(com.smartgwt.client.widgets.form.fields.events.BlurEvent.getType()) == 0) setupBlurEvent(); return doAddHandler(handler, com.smartgwt.client.widgets.form.fields.events.BlurEvent.getType()); }
/** * Add a keyPress handler. * <p> * StringMethod fired when the user presses a key while focused in this form item. * * @param handler the keyPress handler * @return {@link HandlerRegistration} used to remove this handler */ public HandlerRegistration addKeyPressHandler(com.smartgwt.client.widgets.form.fields.events.KeyPressHandler handler) { if(getHandlerCount(com.smartgwt.client.widgets.form.fields.events.KeyPressEvent.getType()) == 0) setupKeyPressEvent(); return doAddHandler(handler, com.smartgwt.client.widgets.form.fields.events.KeyPressEvent.getType()); }
/** * Add a titleClick handler. * <p> * Notification method fired when the user clicks the title for this item * * @param handler the titleClick handler * @return {@link HandlerRegistration} used to remove this handler */ public HandlerRegistration addTitleClickHandler(com.smartgwt.client.widgets.form.fields.events.TitleClickHandler handler) { if(getHandlerCount(com.smartgwt.client.widgets.form.fields.events.TitleClickEvent.getType()) == 0) setupTitleClickEvent(); return doAddHandler(handler, com.smartgwt.client.widgets.form.fields.events.TitleClickEvent.getType()); }
/** * Add a itemHover handler. * <p> * Optional stringMethod to fire when the user hovers over this item. Return false to suppress default behavior of showing * a hover canvas containing the HTML returned by <code>formItem.itemHoverHTML()</code> / * <code>form.itemHoverHTML()</code>. * * @param handler the itemHover handler * @return {@link HandlerRegistration} used to remove this handler */ public HandlerRegistration addItemHoverHandler(com.smartgwt.client.widgets.form.fields.events.ItemHoverHandler handler) { if(getHandlerCount(com.smartgwt.client.widgets.form.fields.events.ItemHoverEvent.getType()) == 0) setupItemHoverEvent(); return doAddHandler(handler, com.smartgwt.client.widgets.form.fields.events.ItemHoverEvent.getType()); }
/** * Add a titleHover handler. * <p> * Optional stringMethod to fire when the user hovers over this item's title. Return false to suppress default behavior of * showing a hover canvas containing the HTML returned by <code>formItem.titleHoverHTML()</code> / * <code>form.titleHoverHTML()</code>. * * @param handler the titleHover handler * @return {@link HandlerRegistration} used to remove this handler */ public HandlerRegistration addTitleHoverHandler(com.smartgwt.client.widgets.form.fields.events.TitleHoverHandler handler) { if(getHandlerCount(com.smartgwt.client.widgets.form.fields.events.TitleHoverEvent.getType()) == 0) setupTitleHoverEvent(); return doAddHandler(handler, com.smartgwt.client.widgets.form.fields.events.TitleHoverEvent.getType()); }
/** * Add a iconClick handler. * <p> * StringMethod. Default action to fire when the user clicks on a form item icon. May be overridden by setting * <code>click</code> on the form item icon directly. * * @param handler the iconClick handler * @return {@link HandlerRegistration} used to remove this handler */ public HandlerRegistration addIconClickHandler(com.smartgwt.client.widgets.form.fields.events.IconClickHandler handler) { if(getHandlerCount(com.smartgwt.client.widgets.form.fields.events.IconClickEvent.getType()) == 0) setupIconClickEvent(); return doAddHandler(handler, com.smartgwt.client.widgets.form.fields.events.IconClickEvent.getType()); }
/** * Add a change handler. * <p> * Called when a FormItem's value is about to change as the result of user interaction. This method fires after the user * performed an action that would change the value of this field, but before the element itself is changed. <P> Returning * false cancels the change. Note that if what you want to do is <b>transform</b> the user's input, for example, * automatically change separator characters to a standard separator character, you should implement {@link * com.smartgwt.client.widgets.form.fields.FormItem#setInputTransformer transformInput} rather than using a combination of * change() and setValue() to accomplish the same thing. Returning false from <code>change</code> is intended for * rejecting input entirely, such as typing invalid characters. <p> Note that if you ask the form for the current value in * this handler, you will get the old value because the change has not yet been committed. The new value is available as a * parameter to this method. * * @param handler the change handler * @return {@link HandlerRegistration} used to remove this handler */ public HandlerRegistration addChangeHandler(com.smartgwt.client.widgets.form.fields.events.ChangeHandler handler) { if(getHandlerCount(com.smartgwt.client.widgets.form.fields.events.ChangeEvent.getType()) == 0) setupChangeEvent(); return doAddHandler(handler, com.smartgwt.client.widgets.form.fields.events.ChangeEvent.getType()); }