|
|||||||||
| 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.CardLayout
public class CardLayout
This layout contains multiple widgets, each fit to the container, where only a single widget can be visible at any given time. This layout style is most commonly used for wizards, tab implementations, etc.
Child Widgets are:setActiveItem(Component). Since
only one panel is displayed at a time, the only way to move from one panel to
the next is by calling setActiveItem the next panel to display. The layout
itself does not provide a mechanism for handling this navigation, so that
functionality must be provided by the developer.
CardPanel| Constructor Summary | |
|---|---|
CardLayout()
Creates a new card layout instance. |
|
| Method Summary | |
|---|---|
Component |
getActiveItem()
Returns the active component. |
boolean |
isDeferredRender()
Returns true if children are rendered when first accessed. |
void |
setActiveItem(Component component)
Sets the active (visible) item in the layout. |
void |
setDeferredRender(boolean deferredRender)
True to render each child when it accessed, false to render all (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, getListeners, hasActiveEvent, hasListeners, hasListeners, removeAllListeners, removeListener, setFiresEvents |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CardLayout()
| Method Detail |
|---|
public Component getActiveItem()
public boolean isDeferredRender()
public void setActiveItem(Component component)
component - the active componentpublic void setDeferredRender(boolean deferredRender)
deferredRender - true to defer rendering
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||