org.equanda.tapestry5.base
Class TitleContent

java.lang.Object
  extended by org.equanda.tapestry5.base.TitleContent
Direct Known Subclasses:
Accordion, Tabs, TreeTable

@SupportsInformalParameters
public abstract class TitleContent
extends Object

Abstract superclass for tapestry components that consist of list of maximum 50 panels, where only one of the panels is currently active. A typical example is a tabs component.

Author:
Joachim Van der Auwera, Geert Mergan

Nested Class Summary
 class TitleContent.TwoBlocks
           
 
Constructor Summary
TitleContent()
           
 
Method Summary
protected  int getActiveIndex()
           
 String getId()
           
 int getIndex()
           
 TitleContent.TwoBlocks getPanel()
           
 int getPanelCount()
           
 List<TitleContent.TwoBlocks> getPanels()
           
 org.apache.tapestry5.Block getTitleIcon()
           
abstract  boolean isUsingCookies()
          TitleContent provides a cookie-based mechanism to keep track of the component which is currently active.
protected  void setActiveIndex(int activeIndex)
           
 void setIndex(int index)
           
 void setPanel(TitleContent.TwoBlocks panel)
           
 void setTitleIcon(org.apache.tapestry5.Block titleIcon)
           
protected  void setupRender()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TitleContent

public TitleContent()
Method Detail

isUsingCookies

public abstract boolean isUsingCookies()
TitleContent provides a cookie-based mechanism to keep track of the component which is currently active. Is the superclass going to use this cookie-based mechanism or not?

Returns:
true if it will use the cookies, false otherwise.

getActiveIndex

protected int getActiveIndex()

setActiveIndex

protected void setActiveIndex(int activeIndex)

getId

public String getId()

getIndex

public int getIndex()

setIndex

public void setIndex(int index)

getPanel

public TitleContent.TwoBlocks getPanel()

setPanel

public void setPanel(TitleContent.TwoBlocks panel)

getTitleIcon

public org.apache.tapestry5.Block getTitleIcon()

setTitleIcon

public void setTitleIcon(org.apache.tapestry5.Block titleIcon)

getPanels

public List<TitleContent.TwoBlocks> getPanels()

setupRender

@SetupRender
protected final void setupRender()

getPanelCount

public int getPanelCount()


Copyright © 2007-2009. All Rights Reserved.