Package org.xulfaces.tag.toolbar

Source Code of org.xulfaces.tag.toolbar.ToolboxTag

/*
*   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.toolbar;

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="toolbox",description="Defines a toolbox.")
public class ToolboxTag extends  XULComponentTag {

  @ATTRIBUTE(description = "Returns the accessibility object for the toolbox.")
  protected String accessible;
 
  @ATTRIBUTE(description = "Adds a custom toolbar to the toolbox with the given name. You can supply a comma-separated list of toolbar item ids as the second argument to add some items by default.(Firefox only)")
  protected String appendCustomToolbar;
 
  @ATTRIBUTE(description = "Collapse the given toolbar which should be contained in the toolbox.(Not in Firefox)")
  protected String collapseToolbar;
 
  @ATTRIBUTE(mappedType="java.lang.Integer",description = "The number of custom toolbars currently within the toolbox. (Firefox only)")
  protected String customToolbarCount;
 
  @ATTRIBUTE(description = " Expand the given toolbar which should be contained in the toolbox. (Not in Firefox)"
  protected String expandToolbar;
 
  @ATTRIBUTE(description = "The toolbarpalette within the toolbox."
  protected String palette;

  @ATTRIBUTE(description = "The toolbarset within the toolbox.")
  protected String toolbarset;
 
  public String getComponentType() {
    return "xul.component.Toolbox";
  }
 
  public String getRendererType() {
    return "xul.renderer.Toolbox";
  }
   
  public String getAccessible() {
    return accessible;
  }

  public void setAccessible(String accessible) {
    this.accessible = accessible;
  }

  public String getAppendCustomToolbar() {
    return appendCustomToolbar;
  }

  public void setAppendCustomToolbar(String appendCustomToolbar) {
    this.appendCustomToolbar = appendCustomToolbar;
  }

  public String getCollapseToolbar() {
    return collapseToolbar;
  }

  public void setCollapseToolbar(String collapseToolbar) {
    this.collapseToolbar = collapseToolbar;
  }

  public String getCustomToolbarCount() {
    return customToolbarCount;
  }

  public void setCustomToolbarCount(String customToolbarCount) {
    this.customToolbarCount = customToolbarCount;
  }

  public String getExpandToolbar() {
    return expandToolbar;
  }

  public void setExpandToolbar(String expandToolbar) {
    this.expandToolbar = expandToolbar;
  }

  public String getPalette() {
    return palette;
  }

  public void setPalette(String palette) {
    this.palette = palette;
  }

  public String getToolbarset() {
    return toolbarset;
  }

  public void setToolbarset(String toolbarset) {
    this.toolbarset = toolbarset;
  }
   
 
 
  // @StartGeneration

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

    setStringAttribute(facesContext,component,"accessible",accessible);
    setStringAttribute(facesContext,component,"appendCustomToolbar",appendCustomToolbar);
    setStringAttribute(facesContext,component,"collapseToolbar",collapseToolbar);
    setIntegerAttribute(facesContext,component,"customToolbarCount",customToolbarCount);
    setStringAttribute(facesContext,component,"expandToolbar",expandToolbar);
    setStringAttribute(facesContext,component,"palette",palette);
    setStringAttribute(facesContext,component,"toolbarset",toolbarset);

  }
 
                        // @EndGeneration
}
TOP

Related Classes of org.xulfaces.tag.toolbar.ToolboxTag

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.