| net.mygwt.ui.client.widget.Component net.mygwt.ui.client.widget.Item
All known Subclasses: net.mygwt.ui.client.widget.ListItem, net.mygwt.ui.client.widget.ToolItem, net.mygwt.ui.client.widget.menu.MenuItem, net.mygwt.ui.client.widget.TabItem, net.mygwt.ui.client.widget.Button,
Item | public class Item extends Component implements HasText(Code) | | A horizontal component with 5 regions - left, mid left, center, mid right,
and right. Provides support for a icon in the 2nd region, text in the 3rd,
and widgets in the 4th. The first and last regions are used for styling such
as the rounded corners of a tab item.
|
Constructor Summary | |
public | Item() Creates a new item. | public | Item(int style, String baseStyle) Creates a new item. | public | Item(String baseStyle) Creates a new item. |
centerElemtextElem | protected Element centerElemtextElem(Code) | | |
midleftElemmidRightElem | protected Element midleftElemmidRightElem(Code) | | |
overStyleEnabled | protected boolean overStyleEnabled(Code) | | |
sinkEvents | protected boolean sinkEvents(Code) | | |
widgetPanel | protected HorizontalPanel widgetPanel(Code) | | |
Item | public Item()(Code) | | Creates a new item.
|
Item | public Item(int style, String baseStyle)(Code) | | Creates a new item.
Parameters: style - the style information Parameters: baseStyle - the base style |
Item | public Item(String baseStyle)(Code) | | Creates a new item.
Parameters: baseStyle - the base style |
addWidget | public void addWidget(Widget widget)(Code) | | Adds a widget to region 4.
Parameters: widget - the widget to add |
doAttachChildren | protected void doAttachChildren()(Code) | | |
doDetachChildren | protected void doDetachChildren()(Code) | | |
getIconStyle | public String getIconStyle()(Code) | | Returns the item's icon style.
the icon style |
getText | public String getText()(Code) | | Returns the item's text.
the text |
getWidget | public Widget getWidget(int index)(Code) | | Returns a widget from region 4.
Parameters: index - the index the widget |
insertWidget | public void insertWidget(Widget widget, int index)(Code) | | Inserts a widget into region 4.
Parameters: widget - the widget to insert Parameters: index - the insert index |
isSelected | protected boolean isSelected()(Code) | | |
onDisable | protected void onDisable()(Code) | | |
onEnable | protected void onEnable()(Code) | | |
onRender | protected void onRender()(Code) | | |
removeWidget | public void removeWidget(Widget widget)(Code) | | Removes a widget from region 4.
Parameters: widget - the widget to remove |
setIconStyle | public void setIconStyle(String iconStyle)(Code) | | A CSS style which sets a background image to be used as the icon.
Parameters: iconStyle - the CSS class name |
setSelected | protected void setSelected(boolean select)(Code) | | |
setText | public void setText(String text)(Code) | | Sets the item's text.
Parameters: text - the new text |
setWidgetSpacing | public void setWidgetSpacing(int spacing)(Code) | | Sets the amount of spacing around the widgets in the "tool" area.
Parameters: spacing - the spacing in pixels |
Methods inherited from net.mygwt.ui.client.widget.Component | public void addListener(int eventType, Listener listener)(Code)(Java Doc) public void addStyleName(String style)(Code)(Java Doc) public void addWidgetListener(WidgetListener listener)(Code)(Java Doc) protected void afterRender()(Code)(Java Doc) protected Component blur()(Code)(Java Doc) public void disable()(Code)(Java Doc) protected void disableContextMenu(boolean disable)(Code)(Java Doc) public void disableTextSelection(boolean disable)(Code)(Java Doc) public void dispose()(Code)(Java Doc) public void enable()(Code)(Java Doc) public void enableEvents(boolean enable)(Code)(Java Doc) public boolean fireEvent(int type)(Code)(Java Doc) public boolean fireEvent(int type, BaseEvent be)(Code)(Java Doc) public boolean fireEvent(int eventType, Widget widget, Widget item)(Code)(Java Doc) public boolean fireEvent(int eventType, Widget widget, Widget item, int index)(Code)(Java Doc) public Component focus()(Code)(Java Doc) public Rectangle getBounds()(Code)(Java Doc) public Rectangle getBounds(boolean content)(Code)(Java Doc) protected Menu getContextMenu()(Code)(Java Doc) public Object getData()(Code)(Java Doc) public Object getData(String key)(Code)(Java Doc) public String getDisabledStyle()(Code)(Java Doc) public Element getElement()(Code)(Java Doc) protected Element getFocusElement()(Code)(Java Doc) public int getHeight()(Code)(Java Doc) public int getHeight(boolean content)(Code)(Java Doc) public String getId()(Code)(Java Doc) public int getStyle()(Code)(Java Doc) public ToolTip getToolTip()(Code)(Java Doc) public int getWidth()(Code)(Java Doc) public int getWidth(boolean content)(Code)(Java Doc) public void hide()(Code)(Java Doc) public boolean isDisposed()(Code)(Java Doc) public boolean isEnabled()(Code)(Java Doc) public boolean isRendered()(Code)(Java Doc) public boolean isVisible()(Code)(Java Doc) protected void onAttach()(Code)(Java Doc) public void onBaseEvent(BaseEvent be)(Code)(Java Doc) public void onBrowserEvent(Event event)(Code)(Java Doc) protected void onDestroy()(Code)(Java Doc) protected void onDetach()(Code)(Java Doc) protected void onDisable()(Code)(Java Doc) protected void onEnable()(Code)(Java Doc) protected void onHide()(Code)(Java Doc) protected void onHideContextMenu()(Code)(Java Doc) protected void onLoad()(Code)(Java Doc) protected void onRender()(Code)(Java Doc) protected void onResize(int width, int height)(Code)(Java Doc) protected void onRightClick(BaseEvent be)(Code)(Java Doc) protected void onShow()(Code)(Java Doc) protected void onShowContextMenu(int x, int y)(Code)(Java Doc) public void recalculate()(Code)(Java Doc) public void removeAllListeners()(Code)(Java Doc) public void removeFromParent()(Code)(Java Doc) public void removeListener(int eventType, Listener listener)(Code)(Java Doc) public void removeStyleName(String style)(Code)(Java Doc) public void removeWidgetListener(WidgetListener listener)(Code)(Java Doc) protected void render()(Code)(Java Doc) public void setBorders(boolean show)(Code)(Java Doc) public void setBounds(int x, int y, int width, int height)(Code)(Java Doc) public void setBounds(Rectangle rect)(Code)(Java Doc) protected void setContextMenu(Menu menu)(Code)(Java Doc) public void setData(Object data)(Code)(Java Doc) public void setData(String key, Object data)(Code)(Java Doc) public void setDisabledStyle(String style)(Code)(Java Doc) public void setElement(Element elem)(Code)(Java Doc) public void setEnabled(boolean enabled)(Code)(Java Doc) public void setHeight(int height)(Code)(Java Doc) public void setHeight(String height)(Code)(Java Doc) public void setId(String id)(Code)(Java Doc) public void setIntStyleAttribute(String attr, int value)(Code)(Java Doc) public void setPagePosition(int x, int y)(Code)(Java Doc) public void setPixelSize(int width, int height)(Code)(Java Doc) public void setSize(int width, int height)(Code)(Java Doc) public void setSize(String width, String height)(Code)(Java Doc) public void setStyleAttribute(String attr, String value)(Code)(Java Doc) public void setStyleName(String style)(Code)(Java Doc) public void setTitle(String title)(Code)(Java Doc) public void setToolTip(String text)(Code)(Java Doc) public void setToolTip(String title, String text)(Code)(Java Doc) public void setVisible(boolean visible)(Code)(Java Doc) public void setWidth(int width)(Code)(Java Doc) public void setWidth(String width)(Code)(Java Doc) public void show()(Code)(Java Doc) public void unhook(int type, EventListener listener)(Code)(Java Doc)
|
|
|