Package org.xulfaces.tag.tab

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

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

  @ATTRIBUTE(description = "Indicates from where keyboard navigation events are listened from.")
  private String eventnode;
 
  @ATTRIBUTE(mappedType="java.lang.Boolean",description = "If set to true or omitted, the tabbox will switch to the next tab when the Control and Page Up or Page Down keys are pressed. If this attribute is set to false, these keys do not navigate between tabs.")
  private String handleCtrlPageUpDown;
 
  @ATTRIBUTE(mappedType="java.lang.Boolean",description =  "If set to true or omitted, the tabbox will switch to the next tab when the Control and Tab keys are pressed.")
  private String handleCtrlTab;

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

  public String getRendererType() {
    return "xul.renderer.TabBox";
  }
 
  public String getEventnode() {
    return eventnode;
  }

  public void setEventnode(String eventnode) {
    this.eventnode = eventnode;
  }

  public String getHandleCtrlPageUpDown() {
    return handleCtrlPageUpDown;
  }

  public void setHandleCtrlPageUpDown(String handleCtrlPageUpDown) {
    this.handleCtrlPageUpDown = handleCtrlPageUpDown;
  }

  public String getHandleCtrlTab() {
    return handleCtrlTab;
  }

  public void setHandleCtrlTab(String handleCtrlTab) {
    this.handleCtrlTab = handleCtrlTab;
  }
 
  //  @StartGeneration 

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

    setStringAttribute(facesContext,component,"eventnode",eventnode);
    setBooleanAttribute(facesContext,component,"handleCtrlPageUpDown",handleCtrlPageUpDown);
    setBooleanAttribute(facesContext,component,"handleCtrlTab",handleCtrlTab);

  }
 
                  //  @EndGeneration
 
}
TOP

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

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.