Package org.xulfaces.tag.toolbar

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

/*
*   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="toolbar",description="Defines a toolbar.")
public class ToolbarTag extends  XULComponentTag {

  @ATTRIBUTE(description = "The current set of displayed items on the toolbar. This should be set to a comma-separated list of item IDs from the toolbarpalette.")
  protected String currentset;
 
  @ATTRIBUTE(mappedType="java.lang.Integer",description = "This value is the index of the toolbar in the list of the custom toolbars. The value is updated automatically by the toolbar customization dialog.")
  protected String customindex;
 
  @ATTRIBUTE(mappedType="java.lang.Boolean",description = "Set this attribute to true on toolbars that can be customized. This causes the set of buttons to be persisted across sessions.")
  protected String customizable;
 
  @ATTRIBUTE(description = "The number of custom toolbars currently within the toolbox. (Firefox only)")
  protected String defaultset;
 
  @ATTRIBUTE(mappedType="java.lang.Boolean",description = "When set to true, the grippy will be hidden. When set to false, the default, the grippy will be shown. (Not in Firefox)"
  protected String grippyhidden;
 
  @ATTRIBUTE(description = "The text to appear on the tooltip for the toolbar's grippy when the toolbar is collapsed. This would be used to label the grippy so that the user knows which toolbar it represents. (Not in Firefox)"
  protected String grippytooltiptext;

  @ATTRIBUTE(description = "The toolbarset within the toolbox.")
  protected String toolbarset;

  @ATTRIBUTE(description = "The name of the toolbar, which is listed on the Show/Hide toolbars menu. (Firefox only)")
  protected String toolbarname;

  public String getComponentType() {
    return "xul.component.Toolbar";
  }
 
  public String getRendererType() {
    return "xul.renderer.Toolbar";
  }

  public String getCurrentset() {
    return currentset;
  }

  public void setCurrentset(String currentset) {
    this.currentset = currentset;
  }

  public String getCustomindex() {
    return customindex;
  }

  public void setCustomindex(String customindex) {
    this.customindex = customindex;
  }

  public String getCustomizable() {
    return customizable;
  }

  public void setCustomizable(String customizable) {
    this.customizable = customizable;
  }

  public String getDefaultset() {
    return defaultset;
  }

  public void setDefaultset(String defaultset) {
    this.defaultset = defaultset;
  }

  public String getGrippyhidden() {
    return grippyhidden;
  }

  public void setGrippyhidden(String grippyhidden) {
    this.grippyhidden = grippyhidden;
  }

  public String getGrippytooltiptext() {
    return grippytooltiptext;
  }

  public void setGrippytooltiptext(String grippytooltiptext) {
    this.grippytooltiptext = grippytooltiptext;
  }

  public String getToolbarname() {
    return toolbarname;
  }

  public void setToolbarname(String toolbarname) {
    this.toolbarname = toolbarname;
  }

  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,"currentset",currentset);
    setIntegerAttribute(facesContext,component,"customindex",customindex);
    setBooleanAttribute(facesContext,component,"customizable",customizable);
    setStringAttribute(facesContext,component,"defaultset",defaultset);
    setBooleanAttribute(facesContext,component,"grippyhidden",grippyhidden);
    setStringAttribute(facesContext,component,"grippytooltiptext",grippytooltiptext);
    setStringAttribute(facesContext,component,"toolbarset",toolbarset);
    setStringAttribute(facesContext,component,"toolbarname",toolbarname);

  }
 
                          // @EndGeneration
}
TOP

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

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.