Method Summary |
|
public void | addListener(int eventType, Listener listener) Adds a listener bound by the given event type. |
public void | addStyleName(String style) Adds a CSS style name to the component's underlying element. |
public void | addWidgetListener(WidgetListener listener) Adds a listener to receive widget events. |
protected void | afterRender() Called after the component has been rendered. |
protected Component | blur() |
public void | disable() Disable this component. |
protected void | disableContextMenu(boolean disable) Enables and disables the component's context menu. |
public void | disableTextSelection(boolean disable) Enables and disables text selection for the component. |
public void | dispose() Disposes this component by purging any event listeners, removing the
component's element from the DOM, removing the component from its parent
(if applicable). |
public void | enable() Enable this component. |
public void | enableEvents(boolean enable) Enables or disables event processing. |
public boolean | fireEvent(int type) Fires an event. |
public boolean | fireEvent(int type, BaseEvent be) Fires an event. |
public boolean | fireEvent(int eventType, Widget widget, Widget item) Fires an event. |
public boolean | fireEvent(int eventType, Widget widget, Widget item, int index) Fires an event. |
public Component | focus() Try to focus this component. |
public Rectangle | getBounds() Returns the component's bounds. |
public Rectangle | getBounds(boolean content) Returns the component's bounds. |
protected Menu | getContextMenu() Returns the component's context menu. |
public Object | getData() Returns the application defined data associated with the component, or
null if it has not been set. |
public Object | getData(String key) Returns the application defined property for the given name, or
null if it has not been set. |
public String | getDisabledStyle() Returns the disabled style. |
public Element | getElement() |
protected Element | getFocusElement() |
public int | getHeight() Returns the component's height. |
public int | getHeight(boolean content) Returns the component's height. |
public String | getId() Returns the component's id. |
public int | getStyle() Returns the component's style information. |
public ToolTip | getToolTip() Returns the component's tool tip. |
public int | getWidth() Returns the component's width. |
public int | getWidth(boolean content) Returns the component's width. |
public void | hide() Hide this component. |
public boolean | isDisposed() Returns true if the component is disposed. |
public boolean | isEnabled() Returns true if the component is enabled. |
public boolean | isRendered() Returns true if the component is rendered. |
public boolean | isVisible() Returns true if the component is visible. |
protected void | onAttach() |
public void | onBaseEvent(BaseEvent be) Any events a component receives will be forwarded to this method.
Subclasses should override as needed. |
public void | onBrowserEvent(Event event) Components delegate event handling to
Component.onBaseEvent . |
protected void | onDestroy() |
protected void | onDetach() |
protected void | onDisable() |
protected void | onEnable() |
protected void | onHide() |
protected void | onHideContextMenu() |
protected void | onLoad() |
protected void | onRender() Subclasses should override and ensure setElement is called. |
protected void | onResize(int width, int height) Called whenever the component is resized. |
protected void | onRightClick(BaseEvent be) |
protected void | onShow() |
protected void | onShowContextMenu(int x, int y) |
public void | recalculate() Notifies the component that it should recalculate its layout based on its
current size if neccessary. |
public void | removeAllListeners() Removes all listeners. |
public void | removeFromParent() |
public void | removeListener(int eventType, Listener listener) Removes a listener. |
public void | removeStyleName(String style) Removes a CSS style name from the component's underlying element. |
public void | removeWidgetListener(WidgetListener listener) Removes a previously added listener. |
protected void | render() Renders the element. |
public void | setBorders(boolean show) Adds or removes a border. |
public void | setBounds(int x, int y, int width, int height) Sets the component's bounds. |
public void | setBounds(Rectangle rect) Sets the component's bounds. |
protected void | setContextMenu(Menu menu) Sets the component's context menu. |
public void | setData(Object data) Sets the application defined component data. |
public void | setData(String key, Object data) Sets the application defined property with the given name. |
public void | setDisabledStyle(String style) Sets the disabled style. |
public void | setElement(Element elem) |
public void | setEnabled(boolean enabled) Convenience function for setting disabled/enabled by boolean. |
public void | setHeight(int height) Sets the component's height. |
public void | setHeight(String height) Sets the object's height. |
public void | setId(String id) Sets the component's id. |
public void | setIntStyleAttribute(String attr, int value) Sets a style attribute. |
public void | setPagePosition(int x, int y) Sets the page XY position of the component. |
public void | setPixelSize(int width, int height) |
public void | setSize(int width, int height) Sets the width and height of the component. |
public void | setSize(String width, String height) Sets the component's size. |
public void | setStyleAttribute(String attr, String value) Sets a style attribute. |
public void | setStyleName(String style) |
public void | setTitle(String title) |
public void | setToolTip(String text) Sets the component's tool tip. |
public void | setToolTip(String title, String text) Sets the component's tool tip. |
public void | setVisible(boolean visible) Convenience function to hide or show this component by boolean. |
public void | setWidth(int width) Sets the component's width. |
public void | setWidth(String width) Sets the component's width. |
public void | show() Show this component. |
public void | unhook(int type, EventListener listener) |