| java.lang.Object com.gwtext.client.widgets.layout.ContainerLayout com.gwtext.client.widgets.layout.FitLayout com.gwtext.client.widgets.layout.AccordionLayout
AccordionLayout | public class AccordionLayout extends FitLayout (Code) | | This is a layout that contains multiple panels in an expandable accordion style such that only one panel can be open
at any given time. Each panel has built-in support for expanding and collapsing.
Note that child Panels added to a Panel with an AccordionLayout must have a title.
|
Method Summary | |
native protected JavaScriptObject | create(JavaScriptObject config) | public 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. | public void | setAnimate(boolean animate) True to slide the contained panels open and closed during expand/collapse using animation, false to open and close
directly with no animation (defaults to false). | public void | setAutoWidth(boolean autoWidth) True to set each contained item's width to 'auto', false to use the item's current width (defaults to true). | public void | setCollapseFirst(boolean collapseFirst) True to make sure the collapse/expand toggle button always renders first (to the left of) any other tools in the
contained panels' title bars, false to render it last (defaults to false). | public 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, or auto height if not explicitly set (defaults to true). | public void | setHideCollapseTool(boolean hideCollapseTool) True to hide the contained panels' collapse/expand toggle buttons, false to display them (defaults to false). | public void | setSequence(boolean sequence) If animate is set to true, this will result in each animation running in sequence. | public 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). |
AccordionLayout | public AccordionLayout()(Code) | | Create a new Accordion.
|
AccordionLayout | public AccordionLayout(boolean animate)(Code) | | Create a new Accordion.
Parameters: animate - true to animate |
create | native protected JavaScriptObject create(JavaScriptObject config)(Code) | | |
setActiveOnTop | public void setActiveOnTop(boolean activeOnTop)(Code) | | 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. This is NOT compatible with "animate:true" (defaults to false).
Parameters: activeOnTop - true to swap the position of each panel as it is expanded |
setAnimate | public void setAnimate(boolean animate)(Code) | | True to slide the contained panels open and closed during expand/collapse using animation, false to open and close
directly with no animation (defaults to false). Note: to defer to the specific config setting of each contained panel
for this property, set this to undefined at the layout level.
Parameters: animate - true to animate |
setAutoWidth | public void setAutoWidth(boolean autoWidth)(Code) | | True to set each contained item's width to 'auto', false to use the item's current width (defaults to true).
Parameters: autoWidth - true to set each contained item's width to 'auto' |
setCollapseFirst | public void setCollapseFirst(boolean collapseFirst)(Code) | | True to make sure the collapse/expand toggle button always renders first (to the left of) any other tools in the
contained panels' title bars, false to render it last (defaults to false).
Parameters: collapseFirst - true to make sure the collapse/expand toggle button always renders first |
setFill | public void setFill(boolean fill)(Code) | | True to adjust the active item's height to fill the available space in the container, false to use the item's
current height, or auto height if not explicitly set (defaults to true).
Parameters: fill - true to adjust the active item's height to fill the available space in the container |
setHideCollapseTool | public void setHideCollapseTool(boolean hideCollapseTool)(Code) | | True to hide the contained panels' collapse/expand toggle buttons, false to display them (defaults to false).
When set to true,
AccordionLayout.setTitleCollapse should be true also.
Parameters: hideCollapseTool - true to hide the contained panels' collapse/expand toggle buttons |
setSequence | public void setSequence(boolean sequence)(Code) | | If animate is set to true, this will result in each animation running in sequence.
Parameters: sequence - if animate is set to true, this will result in each animation running in sequence. |
setTitleCollapse | public void setTitleCollapse(boolean titleCollapse)(Code) | | 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). When set to false,
AccordionLayout.setHideCollapseTool should be false also.
Parameters: titleCollapse - true to allow expand/collapse of each contained panel by clicking anywhere on the title bar |
Methods inherited from com.gwtext.client.widgets.layout.FitLayout | native protected JavaScriptObject create(JavaScriptObject config)(Code)(Java Doc)
|
Fields inherited from com.gwtext.client.widgets.layout.ContainerLayout | protected JavaScriptObject configJS(Code)(Java Doc)
|
|
|