FileDocCategorySizeDatePackage
TabTag.javaAPI DocJBoss 4.2.12294Fri Jul 13 21:02:12 BST 2007org.jboss.console.plugins.helpers.servlet

TabTag

public class TabTag extends javax.servlet.jsp.tagext.TagSupport

Fields Summary
private String
name
private String
href
private boolean
selected
private NavigationTag
myParent
Constructors Summary
Methods Summary
private voidaddToParent()

		Tab tab = new Tab(name, href, selected);
		myParent.setTabs(tab);
	
public intdoStartTag()

	
	    
	
		myParent = (NavigationTag)findAncestorWithClass(this, NavigationTag.class);
		if (myParent == null) 
		{
			throw new JspTagException("Tab tag not nested within navigation tag.");
		}		
		
		if (name != null)
		{
			addToParent();			
		}
		return EVAL_BODY_INCLUDE;
	
public java.lang.StringgetHref()

return

		return href;
	
public java.lang.StringgetName()

return

		return name;
	
public booleanisSelected()

return

		return selected;
	
public voidsetHref(java.lang.String string)

param
string

		href = string;
	
public voidsetName(java.lang.String string)

param
string

		name = string;
	
public voidsetSelected(boolean b)

param
b

		selected = b;