All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.extjs.gxt.ui.client.widget.CardPanel Maven / Gradle / Ivy

The newest version!
/*
 * Sencha GXT 2.3.1 - Sencha for GWT
 * Copyright(c) 2007-2013, Sencha, Inc.
 * [email protected]
 * 
 * http://www.sencha.com/products/gxt/license/
 */
 package com.extjs.gxt.ui.client.widget;

import com.extjs.gxt.ui.client.widget.layout.CardLayout;

/**
 * This container contains multiple widgets, each fit to the container, where
 * only a single widget can be visible at any given time. This style is most
 * commonly used for wizards, tab implementations, etc.
 * 
 * 
*
Inherited Events:
*
LayoutContainer AfterLayout
*
ScrollContainer Scroll
*
Container BeforeAdd
*
Container Add
*
Container BeforeRemove
*
Container Remove
*
BoxComponent Move
*
BoxComponent Resize
*
Component Enable
*
Component Disable
*
Component BeforeHide
*
Component Hide
*
Component BeforeShow
*
Component Show
*
Component Attach
*
Component Detach
*
Component BeforeRender
*
Component Render
*
Component BrowserEvent
*
Component BeforeStateRestore
*
Component StateRestore
*
Component BeforeStateSave
*
Component SaveState
*
*/ public class CardPanel extends LayoutContainer { protected CardLayout layout; /** * Creates a new card panel. */ public CardPanel() { layout = new CardLayout(); setLayout(layout); } /** * Returns the active component. * * @return the top widget */ public Component getActiveItem() { return layout.getActiveItem(); } /** * Returns true if deferred render. * * @return the deferred render state */ public boolean isDeferredRender() { return layout.isDeferredRender(); } /** * Sets the active (visible) item in the layout. * * @param component the active widget */ public void setActiveItem(Component component) { layout.setActiveItem(component); } /** * Sets the deferred render state * * @param deferredRender the deferredRender state */ public void setDeferredRender(boolean deferredRender) { layout.setDeferredRender(deferredRender); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy