Package org.xulfaces.tag.input

Source Code of org.xulfaces.tag.input.RadioGroupTag

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

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.ModelTag;

/**
*
* @author kito31
* @version $Id: RadioGroupTag.java,v 1.3 2007/05/08 14:17:56 kito31 Exp $
*/
@TAG(name="radiogroup",description="Defines a XUL radiogroup element.")
public class RadioGroupTag extends ModelTag {
 
  @ATTRIBUTE(mappedType="java.lang.Boolean",description = "Indicates whether the textbox is disabled or not. If this attribute is set to true, the textbox is disabled. ")
  private String disabled;
 
  @ATTRIBUTE(mappedType="java.lang.Boolean",description = "This attribute is set to true if the radiogroup element is focused.")
  private String focused;
    
  @ATTRIBUTE(description = "Connects the textbox to a corresponding preference.")
  private String preference;
 
  @ATTRIBUTE(mappedType="java.lang.Integer",description = "The tab order of the element.")
  private String tabindex;
 
    public String getComponentType() {
        return "xul.component.SelectOneRadio";
    }

    public String getRendererType() {
        return "xul.renderer.SelectOneRadio";
    }
   
    //  @StartGeneration

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

    setBooleanAttribute(facesContext,component,"disabled",disabled);
    setBooleanAttribute(facesContext,component,"focused",focused);
    setStringAttribute(facesContext,component,"preference",preference);
    setIntegerAttribute(facesContext,component,"tabindex",tabindex);

  }
 
                                                //  @EndGeneration
   

  public String getDisabled() {
    return disabled;
  }

  public void setDisabled(String disabled) {
    this.disabled = disabled;
  }

  public String getFocused() {
    return focused;
  }

  public void setFocused(String focused) {
    this.focused = focused;
  }

  public String getPreference() {
    return preference;
  }

  public void setPreference(String preference) {
    this.preference = preference;
  }

  public String getTabindex() {
    return tabindex;
  }

  public void setTabindex(String tabindex) {
    this.tabindex = tabindex;
  }
   
   
   
}
TOP

Related Classes of org.xulfaces.tag.input.RadioGroupTag

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.