FileDocCategorySizeDatePackage
PanelTabbedTag.javaAPI DocExample3222Tue Jun 08 11:26:42 BST 2004com.mycompany.jsf.taglib

PanelTabbedTag

public class PanelTabbedTag extends javax.faces.webapp.UIComponentTag
This class is a tag handler that creates and configures a "javax.faces.Panel" component with a "com.mycompany.Tabbed" renderer.
author
Hans Bergsten, Gefion Software
version
1.0

Fields Summary
private String
labelAreaClass
private String
selectedLabelClass
private String
unselectedLabelClass
Constructors Summary
Methods Summary
public java.lang.StringgetComponentType()
Returns "javax.facet.Panel".

	return "javax.faces.Panel";
    
public java.lang.StringgetRendererType()
Returns "com.mycompany.Tabbed".

	return "com.mycompany.Tabbed";
    
public voidsetLabelAreaClass(java.lang.String labelAreaClass)
Sets the CSS class used for the rendered "table" element holding the cells with labels.

        this.labelAreaClass = labelAreaClass;
    
protected voidsetProperties(javax.faces.component.UIComponent component)
Configures the component based on the tag handler property values.

        super.setProperties(component);

	FacesContext context = getFacesContext();
        if (labelAreaClass != null) {
            if (isValueReference(labelAreaClass)) {
                ValueBinding vb = 
		    context.getApplication().createValueBinding(labelAreaClass);
                component.setValueBinding("labelAreaClass", vb);
            } else {
                component.getAttributes().put("labelAreaClass", 
                    labelAreaClass);
            }
        }
        if (selectedLabelClass != null) {
            if (isValueReference(selectedLabelClass)) {
                ValueBinding vb = 
		    context.getApplication().createValueBinding(selectedLabelClass);
                component.setValueBinding("selectedLabelClass", vb);
            } else {
                component.getAttributes().put("selectedLabelClass", 
                    selectedLabelClass);
            }
        }
        if (unselectedLabelClass != null) {
            if (isValueReference(unselectedLabelClass)) {
                ValueBinding vb = 
		    context.getApplication().createValueBinding(unselectedLabelClass);
                component.setValueBinding("unselectedLabelClass", vb);
            } else {
                component.getAttributes().put("unselectedLabelClass", 
                    unselectedLabelClass);
            }
        }
    
public voidsetSelectedLabelClass(java.lang.String selectedLabelClass)
Sets the CSS class used for the "td" element holding the currently selected "label" facet.

        this.selectedLabelClass = selectedLabelClass;
    
public voidsetUnselectedLabelClass(java.lang.String unselectedLabelClass)
Sets the CSS class used for the "td" element holding the "label" facets other than the selected facet.

        this.unselectedLabelClass = unselectedLabelClass;