/** * Add a click handler. * <p> * Executed when the left mouse is clicked (pressed and then released) on this widget. No default implementation. * * @param handler the click handler * @return {@link HandlerRegistration} used to remove this handler */ public HandlerRegistration addClickHandler(com.smartgwt.client.widgets.events.ClickHandler handler) { if(getHandlerCount(com.smartgwt.client.widgets.events.ClickEvent.getType()) == 0) setupClickEvent(); return doAddHandler(handler, com.smartgwt.client.widgets.events.ClickEvent.getType()); }
/** * Add a rightMouseDown handler. * <p> * Executed when the right mouse down is pressed on this widget. No default implementation. * * @param handler the rightMouseDown handler * @return {@link HandlerRegistration} used to remove this handler */ public HandlerRegistration addRightMouseDownHandler(com.smartgwt.client.widgets.events.RightMouseDownHandler handler) { if(getHandlerCount(com.smartgwt.client.widgets.events.RightMouseDownEvent.getType()) == 0) setupRightMouseDownEvent(); return doAddHandler(handler, com.smartgwt.client.widgets.events.RightMouseDownEvent.getType()); }
/** * Add a mouseMove handler. * <p> * Executed when the mouse moves within this widget. No default implementation. * * @param handler the mouseMove handler * @return {@link HandlerRegistration} used to remove this handler */ public HandlerRegistration addMouseMoveHandler(com.smartgwt.client.widgets.events.MouseMoveHandler handler) { if(getHandlerCount(com.smartgwt.client.widgets.events.MouseMoveEvent.getType()) == 0) setupMouseMoveEvent(); return doAddHandler(handler, com.smartgwt.client.widgets.events.MouseMoveEvent.getType()); }
/** * Add a mouseWheel handler. * <p> * Executed when the mouse wheel is actuated. * * @param handler the mouseWheel handler * @return {@link HandlerRegistration} used to remove this handler */ public HandlerRegistration addMouseWheelHandler(com.smartgwt.client.widgets.events.MouseWheelHandler handler) { if(getHandlerCount(com.smartgwt.client.widgets.events.MouseWheelEvent.getType()) == 0) setupMouseWheelEvent(); return doAddHandler(handler, com.smartgwt.client.widgets.events.MouseWheelEvent.getType()); }
/** * Add a dragResizeStart handler. * <p> * Executed when resize dragging first starts. No default implementation. Create this handler to set things up for the * drag resize. * * @param handler the dragResizeStart handler * @return {@link HandlerRegistration} used to remove this handler */ public HandlerRegistration addDragResizeStartHandler(com.smartgwt.client.widgets.events.DragResizeStartHandler handler) { if(getHandlerCount(com.smartgwt.client.widgets.events.DragResizeStartEvent.getType()) == 0) setupDragResizeStartEvent(); return doAddHandler(handler, com.smartgwt.client.widgets.events.DragResizeStartEvent.getType()); }
/** * Add a mouseOver handler. * <p> * Executed when mouse enters this widget. No default implementation. * * @param handler the mouseOver handler * @return {@link HandlerRegistration} used to remove this handler */ public HandlerRegistration addMouseOverHandler(com.smartgwt.client.widgets.events.MouseOverHandler handler) { if(getHandlerCount(com.smartgwt.client.widgets.events.MouseOverEvent.getType()) == 0) setupMouseOverEvent(); return doAddHandler(handler, com.smartgwt.client.widgets.events.MouseOverEvent.getType()); }
/** * Add a mouseUp handler. * <p> * Executed when the left mouse is released on this widget. No default implementation. * * @param handler the mouseUp handler * @return {@link HandlerRegistration} used to remove this handler */ public HandlerRegistration addMouseUpHandler(com.smartgwt.client.widgets.events.MouseUpHandler handler) { if(getHandlerCount(com.smartgwt.client.widgets.events.MouseUpEvent.getType()) == 0) setupMouseUpEvent(); return doAddHandler(handler, com.smartgwt.client.widgets.events.MouseUpEvent.getType()); }
/** * Add a focusChanged handler. * <p> * Notification function fired when this widget receives or loses keyboard focus. * * @param handler the focusChanged handler * @return {@link HandlerRegistration} used to remove this handler */ public HandlerRegistration addFocusChangedHandler(com.smartgwt.client.widgets.events.FocusChangedHandler handler) { if(getHandlerCount(com.smartgwt.client.widgets.events.FocusChangedEvent.getType()) == 0) setupFocusChangedEvent(); return doAddHandler(handler, com.smartgwt.client.widgets.events.FocusChangedEvent.getType()); }
/** * Add a dragMove handler. * <p> * Executed every time the mouse moves while dragging this canvas. * * @param handler the dragMove handler * @return {@link HandlerRegistration} used to remove this handler */ public HandlerRegistration addDragMoveHandler(com.smartgwt.client.widgets.events.DragMoveHandler handler) { if(getHandlerCount(com.smartgwt.client.widgets.events.DragMoveEvent.getType()) == 0) setupDragMoveEvent(); return doAddHandler(handler, com.smartgwt.client.widgets.events.DragMoveEvent.getType()); }
/** * Add a mouseDown handler. * <p> * Executed when the left mouse down is pressed on this widget. No default implementation. * * @param handler the mouseDown handler * @return {@link HandlerRegistration} used to remove this handler */ public HandlerRegistration addMouseDownHandler(com.smartgwt.client.widgets.events.MouseDownHandler handler) { if(getHandlerCount(com.smartgwt.client.widgets.events.MouseDownEvent.getType()) == 0) setupMouseDownEvent(); return doAddHandler(handler, com.smartgwt.client.widgets.events.MouseDownEvent.getType()); }
/** * Add a mouseOut handler. * <p> * Executed when the mouse leaves this widget. No default implementation. * * @param handler the mouseOut handler * @return {@link HandlerRegistration} used to remove this handler */ public HandlerRegistration addMouseOutHandler(com.smartgwt.client.widgets.events.MouseOutHandler handler) { if(getHandlerCount(com.smartgwt.client.widgets.events.MouseOutEvent.getType()) == 0) setupMouseOutEvent(); return doAddHandler(handler, com.smartgwt.client.widgets.events.MouseOutEvent.getType()); }
/** * Add a dragRepositionStart handler. * <p> * Executed when dragging first starts. No default implementation. Create this handler to set things up for the drag * reposition. * * @param handler the dragRepositionStart handler * @return {@link HandlerRegistration} used to remove this handler */ public HandlerRegistration addDragRepositionStartHandler(com.smartgwt.client.widgets.events.DragRepositionStartHandler handler) { if(getHandlerCount(com.smartgwt.client.widgets.events.DragRepositionStartEvent.getType()) == 0) setupDragRepositionStartEvent(); return doAddHandler(handler, com.smartgwt.client.widgets.events.DragRepositionStartEvent.getType()); }
/** * Add a dropOut handler. * <p> * Executed when the dragged object is moved out of the rectangle of this drop target. If you have set a visual indication * in dropOver or dropMove, you should reset it to its normal state in dropOut. * * @param handler the dropOut handler * @return {@link HandlerRegistration} used to remove this handler */ public HandlerRegistration addDropOutHandler(com.smartgwt.client.widgets.events.DropOutHandler handler) { if(getHandlerCount(com.smartgwt.client.widgets.events.DropOutEvent.getType()) == 0) setupDropOutEvent(); return doAddHandler(handler, com.smartgwt.client.widgets.events.DropOutEvent.getType()); }
/** * Add a dropMove handler. * <p> * Executed whenever the compatible dragged object is moved over this drop target. You can use this to show a custom visual * indication of where the drop would occur within the widget. * * @param handler the dropMove handler * @return {@link HandlerRegistration} used to remove this handler */ public HandlerRegistration addDropMoveHandler(com.smartgwt.client.widgets.events.DropMoveHandler handler) { if(getHandlerCount(com.smartgwt.client.widgets.events.DropMoveEvent.getType()) == 0) setupDropMoveEvent(); return doAddHandler(handler, com.smartgwt.client.widgets.events.DropMoveEvent.getType()); }
/** * Add a dragStop handler. * <p> * Executed when the mouse button is released at the end of the drag. Your widget can use this opportunity to fire code * based on the last location of the drag or reset any visual state that was sent. * * @param handler the dragStop handler * @return {@link HandlerRegistration} used to remove this handler */ public HandlerRegistration addDragStopHandler(com.smartgwt.client.widgets.events.DragStopHandler handler) { if(getHandlerCount(com.smartgwt.client.widgets.events.DragStopEvent.getType()) == 0) setupDragStopEvent(); return doAddHandler(handler, com.smartgwt.client.widgets.events.DragStopEvent.getType()); }
/** * Add a dropOver handler. * <p> * Executed when the compatible dragged object is first moved over this drop target. Your implementation can use this to * show a custom visual indication that the object can be dropped here. * * @param handler the dropOver handler * @return {@link HandlerRegistration} used to remove this handler */ public HandlerRegistration addDropOverHandler(com.smartgwt.client.widgets.events.DropOverHandler handler) { if(getHandlerCount(com.smartgwt.client.widgets.events.DropOverEvent.getType()) == 0) setupDropOverEvent(); return doAddHandler(handler, com.smartgwt.client.widgets.events.DropOverEvent.getType()); }
/** * Add a scrolled handler. * <p> * Notification that this component has just scrolled. Use with observation. <P> Fires for both CSS and {@link * com.smartgwt.client.widgets.Scrollbar "synthetic" scrollbars}. * * @param handler the scrolled handler * @return {@link HandlerRegistration} used to remove this handler */ public HandlerRegistration addScrolledHandler(com.smartgwt.client.widgets.events.ScrolledHandler handler) { if(getHandlerCount(com.smartgwt.client.widgets.events.ScrolledEvent.getType()) == 0) setupScrolledEvent(); return doAddHandler(handler, com.smartgwt.client.widgets.events.ScrolledEvent.getType()); }
/** * Add a onDrop handler. * <p> * Notification method fired when the user drops another canvas onto this one. * * @param handler the onDrop handler * @return {@link com.google.gwt.event.shared.HandlerRegistration} used to remove this handler */ public HandlerRegistration addDropHandler(com.smartgwt.client.widgets.events.DropHandler handler) { if(getHandlerCount(com.smartgwt.client.widgets.events.DropEvent.getType()) == 0) setupDropEvent(); return doAddHandler(handler, com.smartgwt.client.widgets.events.DropEvent.getType()); } private native void setupDropEvent() /*-{
/** * Add a doubleClick handler. * <p> * Executed when the left mouse button is clicked twice in rapid succession (within {@link * com.smartgwt.client.widgets.Canvas#getDoubleClickDelay doubleClickDelay} by default) in this object. * * @param handler the doubleClick handler * @return {@link HandlerRegistration} used to remove this handler */ public HandlerRegistration addDoubleClickHandler(com.smartgwt.client.widgets.events.DoubleClickHandler handler) { if(getHandlerCount(com.smartgwt.client.widgets.events.DoubleClickEvent.getType()) == 0) setupDoubleClickEvent(); return doAddHandler(handler, com.smartgwt.client.widgets.events.DoubleClickEvent.getType()); }
/** * Add a keyPress handler. * <p> * Executed when a key is pressed and released on a focusable widget ({@link com.smartgwt.client.widgets.Canvas#getCanFocus * canFocus}: true). <P> Use {@link com.smartgwt.client.util.EventHandler#getKey EventHandler.getKey} to find out the * String of the key that was pressed, and use {@link com.smartgwt.client.util.EventHandler#shiftKeyDown * EventHandler.shiftKeyDown} and related functions to determine whether modifier keys were down. * * @param handler the keyPress handler * @return {@link HandlerRegistration} used to remove this handler */ public HandlerRegistration addKeyPressHandler(com.smartgwt.client.widgets.events.KeyPressHandler handler) { if(getHandlerCount(com.smartgwt.client.widgets.events.KeyPressEvent.getType()) == 0) setupKeyPressEvent(); return doAddHandler(handler, com.smartgwt.client.widgets.events.KeyPressEvent.getType()); }