com.extjs.gxt.ui.client.widget.layout
Class CardLayout
java.lang.Object
com.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
- All Implemented Interfaces:
- Observable
public class CardLayout
- extends FitLayout
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.
The CardLayout's focal method is 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.
- See Also:
CardPanel
|
Constructor Summary |
CardLayout()
Creates a new card layout instance. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CardLayout
public CardLayout()
- Creates a new card layout instance.
getActiveItem
public Component getActiveItem()
- Returns the active component.
- Returns:
- the top widget
setActiveItem
public void setActiveItem(Component component)
- Sets the active (visible) item in the layout.
- Parameters:
component - the active component