com.vaadin.client.ui
Class VAccordion.StackItem

java.lang.Object
  extended by ComplexPanel
      extended by com.vaadin.client.ui.VAccordion.StackItem
Enclosing class:
VAccordion

public class VAccordion.StackItem
extends ComplexPanel

A StackItem has always two children, Child 0 is a VCaption, Child 1 is the actual child widget.


Constructor Summary
VAccordion.StackItem()
           
 
Method Summary
 void close()
           
 boolean contains(ComponentConnector p)
           
 int getCaptionHeight()
           
 int getCaptionWidth()
          Returns caption width including padding
 Widget getChildWidget()
           
 Widget getComponent()
           
 com.google.gwt.user.client.Element getContainerElement()
           
 int getHeight()
           
 int getWidgetWidth()
           
 void hide()
           
 boolean isCaptionVisible()
           
 boolean isOpen()
           
 void onBrowserEvent(Event event)
           
 void onClick(ClickEvent event)
           
 void open()
           
 void replaceWidget(Widget newWidget)
           
 void setContent(Widget newWidget)
          Updates the content of the open tab of the accordion.
 void setHeight(int height)
           
 void setHeightFromWidget()
           
 void setVisible(boolean visible)
           
 void setWidth(int width)
           
 void updateCaption(com.vaadin.shared.ui.tabsheet.TabState tabState)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VAccordion.StackItem

public VAccordion.StackItem()
Method Detail

setHeight

public void setHeight(int height)

getComponent

public Widget getComponent()

setVisible

public void setVisible(boolean visible)

setHeightFromWidget

public void setHeightFromWidget()

getCaptionWidth

public int getCaptionWidth()
Returns caption width including padding

Returns:

setWidth

public void setWidth(int width)

getHeight

public int getHeight()

getCaptionHeight

public int getCaptionHeight()

onBrowserEvent

public void onBrowserEvent(Event event)

getContainerElement

public com.google.gwt.user.client.Element getContainerElement()

getChildWidget

public Widget getChildWidget()

replaceWidget

public void replaceWidget(Widget newWidget)

open

public void open()

hide

public void hide()

close

public void close()

isOpen

public boolean isOpen()

setContent

public void setContent(Widget newWidget)
Updates the content of the open tab of the accordion. This method is mostly for internal use and may change in future versions.

Parameters:
newWidget - new content
Since:
7.2

onClick

public void onClick(ClickEvent event)

updateCaption

public void updateCaption(com.vaadin.shared.ui.tabsheet.TabState tabState)

getWidgetWidth

public int getWidgetWidth()

contains

public boolean contains(ComponentConnector p)

isCaptionVisible

public boolean isCaptionVisible()


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