Package org.xulfaces.tag.tree

Source Code of org.xulfaces.tag.tree.TreeItemTag

/*
*   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: TreeItemTag.java,v 1.4 2007/05/08 14:21:31 kito31 Exp $
*/
@TAG(name="treeitem",description="Defines a tree item (see XUL treeitem element).")
public class TreeItemTag extends XULComponentTag {
 
  @ATTRIBUTE(mappedType="java.lang.Boolean",description="If true, the treeitem is open, allowing child elements to be displayed.")
  private String open;
 
   
    public String getComponentType() {
        return "xul.component.TreeItem";
    }

    public String getRendererType() {
        return "xul.renderer.TreeItem";
    }

  public String getOpen() {
    return open;
  }

  public void setOpen(String open) {
    this.open = open;
  }
   
    // @StartGeneration

  protected void setProperties(UIComponent component) {
        super.setProperties(component);
        FacesContext facesContext  = getFacesContext();

    setBooleanAttribute(facesContext,component,"open",open);

  }
 
                      // @EndGeneration
         
}
TOP

Related Classes of org.xulfaces.tag.tree.TreeItemTag

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.