|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.extjs.gxt.ui.client.event.BaseObservable
com.extjs.gxt.ui.client.widget.Layout
com.extjs.gxt.ui.client.widget.layout.FitLayout
com.extjs.gxt.ui.client.widget.layout.AccordionLayout
public class AccordionLayout
This is a layout that contains multiple content panels in an expandable accordion style such that only one panel can be open at any given time.
Child Widgets are:
Note: All children added to the container must be
ContentPanel
instances.
Field Summary |
---|
Fields inherited from class com.extjs.gxt.ui.client.widget.Layout |
---|
activeItem, componentStyleName, container, monitorResize, renderHidden, target, targetStyleName |
Constructor Summary | |
---|---|
AccordionLayout()
|
Method Summary | |
---|---|
boolean |
getActiveOnTop()
Returns true if the active item if first. |
boolean |
getAutoWidth()
Returns true if auto width is enabled. |
boolean |
getFill()
Returns true if fill is enabled. |
boolean |
getHideCollapseTool()
Returns true if the collapse tool is hidden. |
boolean |
getTitleCollapse()
Returns true if title collapse is enabled. |
boolean |
isSequence()
|
protected void |
onAdd(Component component)
|
protected void |
onBeforeExpand(ComponentEvent ce)
|
protected void |
onExpand(ComponentEvent ce)
|
protected void |
onRemove(Component component)
|
protected void |
renderComponent(Component component,
int index,
El target)
|
void |
setActiveItem(Component component)
Sets the active component. |
void |
setActiveOnTop(boolean activeOnTop)
True to swap the position of each panel as it is expanded so that it becomes the first item in the container, false to keep the panels in the rendered order. |
void |
setAutoWidth(boolean autoWidth)
True to set each contained item's width to 'auto', false to use the item's current width (defaults to false). |
void |
setFill(boolean fill)
True to adjust the active item's height to fill the available space in the container, false to use the item's current height (defaults to true). |
void |
setHideCollapseTool(boolean hideCollapseTool)
True to hide the contained panels' collapse/expand toggle buttons, false to display them (defaults to false). |
protected void |
setItemSize(Component item,
Size size)
|
void |
setSequence(boolean sequence)
|
void |
setTitleCollapse(boolean titleCollapse)
True to allow expand/collapse of each contained panel by clicking anywhere on the title bar, false to allow expand/collapse only when the toggle tool button is clicked (defaults to true). |
Methods inherited from class com.extjs.gxt.ui.client.widget.layout.FitLayout |
---|
onLayout |
Methods inherited from class com.extjs.gxt.ui.client.widget.Layout |
---|
applyMargins, applyPadding, callLayout, fly, fly, getExtraStyle, getLayoutData, getResizeDelay, getSideMargins, initTarget, isLayoutExecuted, isLayoutNeeded, isRenderHidden, isRunning, isValidParent, layout, layoutContainer, onComponentHide, onComponentShow, onResize, renderAll, setBounds, setContainer, setExtraStyle, setLayoutData, setLayoutNeeded, setLayoutOnChange, setPosition, setRenderHidden, setResizeDelay, setSize |
Methods inherited from class com.extjs.gxt.ui.client.event.BaseObservable |
---|
addListener, callListener, fireEvent, fireEvent, getFiresEvents, getListeners, hasActiveEvent, hasListeners, hasListeners, removeAllListeners, removeListener, setFiresEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AccordionLayout()
Method Detail |
---|
public boolean getActiveOnTop()
public boolean getAutoWidth()
public boolean getFill()
public boolean getHideCollapseTool()
public boolean getTitleCollapse()
public boolean isSequence()
public void setActiveItem(Component component)
component
- the active componentpublic void setActiveOnTop(boolean activeOnTop)
activeOnTop
- true to keep the active item on toppublic void setAutoWidth(boolean autoWidth)
autoWidth
- true for auto widthpublic void setFill(boolean fill)
fill
- true to fillpublic void setHideCollapseTool(boolean hideCollapseTool)
titleCollapse
should be true also.
hideCollapseTool
- true to hidepublic void setSequence(boolean sequence)
public void setTitleCollapse(boolean titleCollapse)
hideCollapseTool
should be false also.
titleCollapse
- true for title collapseprotected void onBeforeExpand(ComponentEvent ce)
protected void onExpand(ComponentEvent ce)
protected void renderComponent(Component component, int index, El target)
renderComponent
in class Layout
protected void onAdd(Component component)
onAdd
in class Layout
protected void onRemove(Component component)
onRemove
in class Layout
protected void setItemSize(Component item, Size size)
setItemSize
in class FitLayout
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |