|
|||||||||
| 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.
Note: All children added to the container must be
ContentPanel instances.
| 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. |
void |
setActiveItem(Component item)
Sets the active item. |
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). |
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 |
|---|
getExtraStyle, getResizeDelay, isRenderHidden, layout, setContainer, setExtraStyle, setRenderHidden, setResizeDelay |
| Methods inherited from class com.extjs.gxt.ui.client.event.BaseObservable |
|---|
addListener, fireEvent, fireEvent, getFiresEvents, hasListeners, hasListeners, removeAllListeners, removeListener, setFiresEvents |
| Methods inherited from class java.lang.Object |
|---|
equals, 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 void setActiveItem(Component item)
item - the active itempublic 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 setTitleCollapse(boolean titleCollapse)
hideCollapseTool should be false also.
titleCollapse - true for title collapse
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||