/*
* xulfaces : bring XUL power to Java
*
* Copyright (C) 2005 Olivier SCHMITT
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.xulfaces.tag.listbox;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import org.xulfaces.annotation.taglib.ATTRIBUTE;
import org.xulfaces.annotation.taglib.TAG;
import org.xulfaces.tag.XULComponentTag;
/**
*
* @author kito31
* @version $Id$
*/
@TAG(name="listheader",description="Defines a list header (see XUL listheader element).")
public class ListHeaderTag extends XULComponentTag {
@ATTRIBUTE(mappedType="java.lang.Boolean",description = "Indicates whether the description is disabled or not.")
private String disabled;
@ATTRIBUTE(description = "The label that will appear on the button. If this is left out, no text appears.")
private String label;
public String getDisabled() {
return disabled;
}
public void setDisabled(String disabled) {
this.disabled = disabled;
}
public String getLabel() {
return label;
}
public void setLabel(String label) {
this.label = label;
}
public String getComponentType() {
return "xul.component.ListHeader";
}
public String getRendererType() {
return "xul.renderer.ListHeader";
}
// @StartGeneration
protected void setProperties(UIComponent component) {
super.setProperties(component);
FacesContext facesContext = getFacesContext();
setBooleanAttribute(facesContext,component,"disabled",disabled);
setStringAttribute(facesContext,component,"label",label);
}
// @EndGeneration
}