org.enhydra.barracuda.config
Class TabsModel

java.lang.Object
  extended byorg.enhydra.barracuda.core.comp.AbstractTemplateModel
      extended byorg.enhydra.barracuda.config.TabsModel
All Implemented Interfaces:
Contextual, Model, TemplateModel

public class TabsModel
extends AbstractTemplateModel

TabsModel - this model doesn't actually return any data, but instead processes directives to tell the template engine which tabs are actually visible.


Field Summary
static String ABOUT_TAB
           
static String COMP_TAB_COMP
           
static String COMP_TAB_MODEL
           
static String COMP_TAB_REND
           
static String COMP_TAB_VIEW
           
static String CUR_TAB
           
protected  String curTab
           
static String DATA_TAB
           
static String DOM_TAB
           
static String EVENT_TAB
           
static String FORMS_TAB
           
protected static org.apache.log4j.Logger logger
           
protected  BTemplate parent
           
static String UTIL_TAB
           
static String[] validTabs
           
static String VIEW_TAB
           
 
Fields inherited from class org.enhydra.barracuda.core.comp.AbstractTemplateModel
listeners, UNDEFINED, viewContext
 
Constructor Summary
TabsModel(BTemplate iparent)
           
 
Method Summary
 String getName()
           
 boolean processDirective(TemplateDirective td)
          process any directives. return false to indicate a the node containing this directive should be skipped.
 void setCurrentTab(String tabName)
           
 
Methods inherited from class org.enhydra.barracuda.core.comp.AbstractTemplateModel
addModelListener, fireModelChanged, getItem, getItem, getViewContext, removeModelListener, setViewContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.apache.log4j.Logger logger

CUR_TAB

public static final String CUR_TAB
See Also:
Constant Field Values

COMP_TAB_COMP

public static final String COMP_TAB_COMP
See Also:
Constant Field Values

COMP_TAB_MODEL

public static final String COMP_TAB_MODEL
See Also:
Constant Field Values

COMP_TAB_VIEW

public static final String COMP_TAB_VIEW
See Also:
Constant Field Values

COMP_TAB_REND

public static final String COMP_TAB_REND
See Also:
Constant Field Values

DATA_TAB

public static final String DATA_TAB
See Also:
Constant Field Values

DOM_TAB

public static final String DOM_TAB
See Also:
Constant Field Values

EVENT_TAB

public static final String EVENT_TAB
See Also:
Constant Field Values

FORMS_TAB

public static final String FORMS_TAB
See Also:
Constant Field Values

UTIL_TAB

public static final String UTIL_TAB
See Also:
Constant Field Values

VIEW_TAB

public static final String VIEW_TAB
See Also:
Constant Field Values

ABOUT_TAB

public static final String ABOUT_TAB
See Also:
Constant Field Values

validTabs

public static String[] validTabs

parent

protected BTemplate parent

curTab

protected String curTab
Constructor Detail

TabsModel

public TabsModel(BTemplate iparent)
Method Detail

getName

public String getName()

setCurrentTab

public void setCurrentTab(String tabName)

processDirective

public boolean processDirective(TemplateDirective td)
Description copied from class: AbstractTemplateModel
process any directives. return false to indicate a the node containing this directive should be skipped.

Specified by:
processDirective in interface TemplateModel
Overrides:
processDirective in class AbstractTemplateModel


Copyright © 2003 BarracudaMVC.org All Rights Reserved.