org.equanda.tapestry5.components
Class MemTabs

java.lang.Object
  extended by org.equanda.tapestry5.base.TitleContent
      extended by org.equanda.tapestry5.components.Tabs
          extended by org.equanda.tapestry5.components.MemTabs

@SupportsInformalParameters
public class MemTabs
extends Tabs

Tabs component that overrides the management of remembering current tab. The parent uses cookies, this class uses AJAX technology and a persistent field.

Author:
Geert Mergan

Nested Class Summary
 
Nested classes/interfaces inherited from class org.equanda.tapestry5.base.TitleContent
TitleContent.TwoBlocks
 
Constructor Summary
MemTabs()
           
 
Method Summary
protected  int getActiveIndex()
           
 boolean isUsingCookies()
          TitleContent provides a cookie-based mechanism to keep track of the component which is currently active.
 org.apache.tapestry5.json.JSONObject onTitleSelected(int tabIndex)
           
protected  void setActiveIndex(int activeIndex)
           
 
Methods inherited from class org.equanda.tapestry5.components.Tabs
getBackward, getContentAll, getForward, hasContentAll, setContentAll
 
Methods inherited from class org.equanda.tapestry5.base.TitleContent
getId, getIndex, getPanel, getPanelCount, getPanels, getTitleIcon, setIndex, setPanel, setTitleIcon, setupRender
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemTabs

public MemTabs()
Method Detail

isUsingCookies

public boolean isUsingCookies()
Description copied from class: TitleContent
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?

Overrides:
isUsingCookies in class Tabs
Returns:
true if it will use the cookies, false otherwise.

getActiveIndex

protected int getActiveIndex()
Overrides:
getActiveIndex in class TitleContent

setActiveIndex

protected void setActiveIndex(int activeIndex)
Overrides:
setActiveIndex in class TitleContent

onTitleSelected

public org.apache.tapestry5.json.JSONObject onTitleSelected(int tabIndex)


Copyright © 2007-2009. All Rights Reserved.