Package org.xulfaces.tag.tab

Source Code of org.xulfaces.tag.tab.TabsTag

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


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="tabs",description="Defines a tabs (see XUL tabs element).")
public class TabsTag extends XULComponentTag {

  @ATTRIBUTE(mappedType="java.lang.Boolean",description = "If true, events are passed to children of the element. Otherwise, events are passed to the element only.")
  private String closebutton;
 
  @ATTRIBUTE(mappedType="java.lang.Boolean",description = "If true, events are passed to children of the element. Otherwise, events are passed to the element only.")
  private String disableclose;
 
  @ATTRIBUTE(mappedType="java.lang.Boolean",description = "If true, events are passed to children of the element. Otherwise, events are passed to the element only.")
  private String firsttab;
 
  @ATTRIBUTE(mappedType="java.lang.Boolean",description = "If true, events are passed to children of the element. Otherwise, events are passed to the element only.")
  private String lasttab;
 
  @ATTRIBUTE(supportsMethodBinding=true,description = "This script will be called when the close tab button is clicked.")
  private String onclosetab;
 
  @ATTRIBUTE(supportsMethodBinding=true,description = "This script will be called when the new tab button is clicked.")
  private String onnewtab;
 
  @ATTRIBUTE(supportsMethodBinding=true,description = " This event is sent to the tabs element when the tab is changed.")
  private String onselect;  
 
  @ATTRIBUTE(mappedType="java.lang.Boolean",description = "If true, events are passed to children of the element. Otherwise, events are passed to the element only.")
  private String setfocus;  
 
  @ATTRIBUTE(description = "Not in Firefox : Valid on any element that has a datasources attribute. Because RDF holds a graph of resources, it is possible for there to be several pointers to the same node. If this attribute is true, which is the default, duplicate references are skipped. If false, duplicate references will appear.")
  private String tooltiptextnew;

 
  public String getComponentType() {
    return "xul.component.Tabs";
  }

  public String getRendererType() {
    return "xul.renderer.Tabs";
  }
 
  public String getClosebutton() {
    return closebutton;
  }

  public void setClosebutton(String closebutton) {
    this.closebutton = closebutton;
  }

  public String getDisableclose() {
    return disableclose;
  }

  public void setDisableclose(String disableclose) {
    this.disableclose = disableclose;
  }

  public String getFirsttab() {
    return firsttab;
  }

  public void setFirsttab(String firsttab) {
    this.firsttab = firsttab;
  }

  public String getLasttab() {
    return lasttab;
  }

  public void setLasttab(String lasttab) {
    this.lasttab = lasttab;
  }

  public String getOnclosetab() {
    return onclosetab;
  }

  public void setOnclosetab(String onclosetab) {
    this.onclosetab = onclosetab;
  }

  public String getOnnewtab() {
    return onnewtab;
  }

  public void setOnnewtab(String onnewtab) {
    this.onnewtab = onnewtab;
  }

  public String getOnselect() {
    return onselect;
  }

  public void setOnselect(String onselect) {
    this.onselect = onselect;
  }

  public String getSetfocus() {
    return setfocus;
  }

  public void setSetfocus(String setfocus) {
    this.setfocus = setfocus;
  }

  public String getTooltiptextnew() {
    return tooltiptextnew;
  }

  public void setTooltiptextnew(String tooltiptextnew) {
    this.tooltiptextnew = tooltiptextnew;
  }
 
 
 
 
  //  @StartGeneration 

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

    setBooleanAttribute(facesContext,component,"closebutton",closebutton);
    setBooleanAttribute(facesContext,component,"disableclose",disableclose);
    setBooleanAttribute(facesContext,component,"firsttab",firsttab);
    setBooleanAttribute(facesContext,component,"lasttab",lasttab);
    setMethodBinding(facesContext,component,"onclosetab",onclosetab);
    setMethodBinding(facesContext,component,"onnewtab",onnewtab);
    setMethodBinding(facesContext,component,"onselect",onselect);
    setBooleanAttribute(facesContext,component,"setfocus",setfocus);
    setStringAttribute(facesContext,component,"tooltiptextnew",tooltiptextnew);

  }
 
                  //  @EndGeneration
 
}
TOP

Related Classes of org.xulfaces.tag.tab.TabsTag

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.