/*
* 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.tree;
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: TreeRowTag.java,v 1.4 2007/05/08 14:21:31 kito31 Exp $
*/
@TAG(name="treerow",description="Defines a tree row (see XUL treerow element).")
public class TreeRowTag extends XULComponentTag {
@ATTRIBUTE(description="Sets the properties of the treerow, which can be used to style the row.")
private String properties;
public String getComponentType() {
return "xul.component.TreeRow";
}
public String getRendererType() {
return "xul.renderer.TreeRow";
}
// @StartGeneration
protected void setProperties(UIComponent component) {
super.setProperties(component);
FacesContext facesContext = getFacesContext();
setStringAttribute(facesContext,component,"properties",properties);
}
// @EndGeneration
}