freemarker.doc
Class TabItem

java.lang.Object
  extended by freemarker.doc.TabItem
All Implemented Interfaces:
TemplateHashModel, TemplateModel

public class TabItem
extends java.lang.Object
implements TemplateHashModel

A simple class representing a single tab in the web site's table of contents frame navigation.

Version:
$Id: TabItem.java 1101 2013-04-01 04:17:32Z run2000 $

Constructor Summary
TabItem(java.lang.String name, java.lang.String link)
          Creates new TabItem
 
Method Summary
 TemplateModel get(java.lang.String key)
          Gets a TemplateModel from the hash.
 boolean isEmpty()
          Is this model empty?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TabItem

public TabItem(java.lang.String name,
               java.lang.String link)
Creates new TabItem

Method Detail

get

public TemplateModel get(java.lang.String key)
                  throws TemplateModelException
Gets a TemplateModel from the hash.

Specified by:
get in interface TemplateHashModel
Parameters:
key - the name by which the TemplateModel is identified in the template.
Returns:
the TemplateModel referred to by the key, or null if not found.
Throws:
TemplateModelException - there was a problem getting the value for the given key

isEmpty

public boolean isEmpty()
                throws TemplateModelException
Is this model empty?

Specified by:
isEmpty in interface TemplateModel
Returns:
true if this object is empty, otherwise false
Throws:
TemplateModelException