com.vaadin.client.ui
Class VTabsheetPanel

java.lang.Object
  extended by ComplexPanel
      extended by com.vaadin.client.ui.VTabsheetPanel

public class VTabsheetPanel
extends ComplexPanel

A panel that displays all of its child widgets in a 'deck', where only one can be visible at a time. It is used by VTabsheet. This class has the same basic functionality as the GWT DeckPanel com.google.gwt.user.client.ui.DeckPanel, with the exception that it doesn't manipulate the child widgets' width and height attributes.


Constructor Summary
VTabsheetPanel()
          Creates an empty tabsheet panel.
 
Method Summary
 void add(Widget w)
          Adds the specified widget to the deck.
 void fixVisibleTabSize(int width, int height, int minWidth)
           
 int getVisibleWidget()
          Gets the index of the currently-visible widget.
 void insert(Widget w, int beforeIndex)
          Inserts a widget before the specified index.
 boolean remove(Widget w)
           
 void replaceComponent(Widget oldComponent, Widget newComponent)
           
 void showWidget(int index)
          Shows the widget at the specified index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VTabsheetPanel

public VTabsheetPanel()
Creates an empty tabsheet panel.

Method Detail

add

public void add(Widget w)
Adds the specified widget to the deck.

Parameters:
w - the widget to be added

getVisibleWidget

public int getVisibleWidget()
Gets the index of the currently-visible widget.

Returns:
the visible widget's index

insert

public void insert(Widget w,
                   int beforeIndex)
Inserts a widget before the specified index.

Parameters:
w - the widget to be inserted
beforeIndex - the index before which it will be inserted
Throws:
java.lang.IndexOutOfBoundsException - if beforeIndex is out of range

remove

public boolean remove(Widget w)

showWidget

public void showWidget(int index)
Shows the widget at the specified index. This causes the currently- visible widget to be hidden.

Parameters:
index - the index of the widget to be shown

fixVisibleTabSize

public void fixVisibleTabSize(int width,
                              int height,
                              int minWidth)

replaceComponent

public void replaceComponent(Widget oldComponent,
                             Widget newComponent)


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.