| net.mygwt.ui.client.widget.Component net.mygwt.ui.client.widget.Container net.mygwt.ui.client.widget.ExpandBar
ExpandBar | public class ExpandBar extends Container (Code) | | A vertical container of ExpandItems .
When using a style of MULTI the height of the expand bar should not be set
and the expand item containers should only use a FlowLayout. The expand item
container's size is not managed by the expand bar.
- Styles:
- SINGLE - Single item can be expanded (Accordian)
- MULTI - Multiple items can be expanded
- HEADER - Enables expand / collpase on expand item clicks
- Events:
- BeforeAdd : (widget, item, index)
Fires before an item is added or inserted. Listeners can set the
doit field to false to cancel the action.
- widget : this
- item : the item being added
- index : the index at which the item will be added
- BeforeRemove : (widget, item)
Fires before an item is removed. Listeners can set the doit
field to false to cancel the action.
- widget : this
- item : the item being removed
- BeforeExpand : (widget, item)
Fires before an item is expanded. Listeners can set the
doit field to false to cancel the expand.
- widget : this
- item : the item being expanded
- BeforeCollapse : (widget, item)
Fires before an item is collapsed. Listeners can set the
doit field to false to cancel the collapse.
- widget : this
- item : the item being expanded
- Add : (widget, item, index)
Fires after an item has been added or inserted.
- widget : this
- item : the item that was added
- index : the index at which the item will be added
- Remove : (widget, item)
Fires after an item has been removed.
- widget : this
- item : the item being removed
- Expand : (widget, item)
Fires after an item has been expanded.
- widget : this
- item : the item being expanded
- Collapse : (widget, item)
Fires ater an item is collapsed.
- widget : this
- item : the item being collapsed
- CSS:
- .my-expand-bar (the bar itself)
|
Constructor Summary | |
public | ExpandBar() Creates a new SINGLE expand bar. | public | ExpandBar(int style) Creates a new expand bar. |
headerCollapse | boolean headerCollapse(Code) | | |
ExpandBar | public ExpandBar()(Code) | | Creates a new SINGLE expand bar.
|
ExpandBar | public ExpandBar(int style)(Code) | | Creates a new expand bar.
Parameters: style - the style information |
add | public void add(ExpandItem item)(Code) | | Adds an expand item.
Parameters: item - the item to be added |
afterRender | protected void afterRender()(Code) | | |
getHeaderHeight | public int getHeaderHeight()(Code) | | Returns the header height.
the height |
getItem | public ExpandItem getItem(int index)(Code) | | Returns the item at the given index.
Parameters: index - the index of the item to return the item at the given index |
getItemCount | public int getItemCount()(Code) | | Returns the item count.
the count |
indexOf | public int indexOf(ExpandItem item)(Code) | | Returns the index of the given item.
Parameters: item - the item the items index |
insert | public void insert(ExpandItem item, int index)(Code) | | Inserts the item at the specified index.
Parameters: item - the item Parameters: index - the insert location |
onLoad | protected void onLoad()(Code) | | |
onRender | protected void onRender()(Code) | | |
recalculate | public void recalculate()(Code) | | |
remove | public void remove(ExpandItem item)(Code) | | Removes a item.
Parameters: item - the item |
removeAll | public void removeAll()(Code) | | Removes all expand items.
|
setExpanded | public void setExpanded(ExpandItem item, boolean expanded)(Code) | | Sets the expanded state of the item.
Parameters: item - the item Parameters: expanded - the new expanded state |
setHeaderHeight | public void setHeaderHeight(int headerHeight)(Code) | | Sets the header height. Default value is 22.
Parameters: headerHeight - the header height |
setStyle | public void setStyle(int style)(Code) | | Sets the expand bar's style. Has no effect if called after the expand bar
has been rendered.
Parameters: style - the style |
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)
|
|
|