Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* JBoss, Home of Professional Open Source
* Copyright , Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This 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 software 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 software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.richfaces.component;
import javax.annotation.Generated;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import javax.faces.context.FacesContext;
import javax.faces.component.UIComponent;
import javax.faces.component.behavior.ClientBehaviorHolder;
import javax.el.MethodExpression;
import javax.el.ValueExpression;
import javax.faces.component.StateHelper;
import org.richfaces.component.AbstractToolbar;
/**
*
**/
@Generated({"RichFaces CDK", "4.0.0-SNAPSHOT"})
publicclassUIToolbarextendsAbstractToolbarimplementsClientBehaviorHolder {
publicstatic final String COMPONENT_TYPE="org.richfaces.Toolbar";
publicstatic final String COMPONENT_FAMILY="org.richfaces.Toolbar";
@Override
public String getFamily() {
return COMPONENT_FAMILY;
}
publicUIToolbar() {
super();
setRendererType("org.richfaces.ToolbarRenderer");
}
privatestatic final Collection EVENT_NAMES = Collections.unmodifiableCollection(Arrays.asList(
"itemkeyup",
"itemclick",
"itemdblclick",
"itemkeydown",
"itemmousedown",
"itemkeypress",
"itemmouseup",
"itemmouseover",
"itemmouseout",
"itemmousemove"
));
public CollectiongetEventNames() {
return EVENT_NAMES;
}
public String getDefaultEventName() {
returnnull;
}
protectedenum Properties {
height,
itemClass,
itemSeparator,
itemStyle,
onitemclick,
onitemdblclick,
onitemkeydown,
onitemkeypress,
onitemkeyup,
onitemmousedown,
onitemmousemove,
onitemmouseout,
onitemmouseover,
onitemmouseup,
style,
styleClass,
title,
width
}
public String getHeight() {
String value = (String) getStateHelper().eval(Properties.height);
returnvalue;
}
publicvoidsetHeight(String height) {
getStateHelper().put(Properties.height, height);
}
public String getItemClass() {
String value = (String) getStateHelper().eval(Properties.itemClass);
returnvalue;
}
publicvoidsetItemClass(String itemClass) {
getStateHelper().put(Properties.itemClass, itemClass);
}
public String getItemSeparator() {
String value = (String) getStateHelper().eval(Properties.itemSeparator);
returnvalue;
}
publicvoidsetItemSeparator(String itemSeparator) {
getStateHelper().put(Properties.itemSeparator, itemSeparator);
}
public String getItemStyle() {
String value = (String) getStateHelper().eval(Properties.itemStyle);
returnvalue;
}
publicvoidsetItemStyle(String itemStyle) {
getStateHelper().put(Properties.itemStyle, itemStyle);
}
public String getOnitemclick() {
String value = (String) getStateHelper().eval(Properties.onitemclick);
returnvalue;
}
publicvoidsetOnitemclick(String onitemclick) {
getStateHelper().put(Properties.onitemclick, onitemclick);
}
public String getOnitemdblclick() {
String value = (String) getStateHelper().eval(Properties.onitemdblclick);
returnvalue;
}
publicvoidsetOnitemdblclick(String onitemdblclick) {
getStateHelper().put(Properties.onitemdblclick, onitemdblclick);
}
public String getOnitemkeydown() {
String value = (String) getStateHelper().eval(Properties.onitemkeydown);
returnvalue;
}
publicvoidsetOnitemkeydown(String onitemkeydown) {
getStateHelper().put(Properties.onitemkeydown, onitemkeydown);
}
public String getOnitemkeypress() {
String value = (String) getStateHelper().eval(Properties.onitemkeypress);
returnvalue;
}
publicvoidsetOnitemkeypress(String onitemkeypress) {
getStateHelper().put(Properties.onitemkeypress, onitemkeypress);
}
public String getOnitemkeyup() {
String value = (String) getStateHelper().eval(Properties.onitemkeyup);
returnvalue;
}
publicvoidsetOnitemkeyup(String onitemkeyup) {
getStateHelper().put(Properties.onitemkeyup, onitemkeyup);
}
public String getOnitemmousedown() {
String value = (String) getStateHelper().eval(Properties.onitemmousedown);
returnvalue;
}
publicvoidsetOnitemmousedown(String onitemmousedown) {
getStateHelper().put(Properties.onitemmousedown, onitemmousedown);
}
public String getOnitemmousemove() {
String value = (String) getStateHelper().eval(Properties.onitemmousemove);
returnvalue;
}
publicvoidsetOnitemmousemove(String onitemmousemove) {
getStateHelper().put(Properties.onitemmousemove, onitemmousemove);
}
public String getOnitemmouseout() {
String value = (String) getStateHelper().eval(Properties.onitemmouseout);
returnvalue;
}
publicvoidsetOnitemmouseout(String onitemmouseout) {
getStateHelper().put(Properties.onitemmouseout, onitemmouseout);
}
public String getOnitemmouseover() {
String value = (String) getStateHelper().eval(Properties.onitemmouseover);
returnvalue;
}
publicvoidsetOnitemmouseover(String onitemmouseover) {
getStateHelper().put(Properties.onitemmouseover, onitemmouseover);
}
public String getOnitemmouseup() {
String value = (String) getStateHelper().eval(Properties.onitemmouseup);
returnvalue;
}
publicvoidsetOnitemmouseup(String onitemmouseup) {
getStateHelper().put(Properties.onitemmouseup, onitemmouseup);
}
public String getStyle() {
String value = (String) getStateHelper().eval(Properties.style);
returnvalue;
}
publicvoidsetStyle(String style) {
getStateHelper().put(Properties.style, style);
handleAttribute("style",style);
}
public String getStyleClass() {
String value = (String) getStateHelper().eval(Properties.styleClass);
returnvalue;
}
publicvoidsetStyleClass(String styleClass) {
getStateHelper().put(Properties.styleClass, styleClass);
}
public String getTitle() {
String value = (String) getStateHelper().eval(Properties.title);
returnvalue;
}
publicvoidsetTitle(String title) {
getStateHelper().put(Properties.title, title);
handleAttribute("title",title);
}
public String getWidth() {
String value = (String) getStateHelper().eval(Properties.width);
returnvalue;
}
publicvoidsetWidth(String width) {
getStateHelper().put(Properties.width, width);
}
privatestatic final String ATTRIBUTES_THAT_ARE_SET_KEY = "javax.faces.component.UIComponentBase.attributesThatAreSet";
privatevoidhandleAttribute(String name, Object value) {
List setAttributes = (List) this.getAttributes().get(ATTRIBUTES_THAT_ARE_SET_KEY);
if (setAttributes == null) {
setAttributes = new ArrayList(2);
this.getAttributes().put(ATTRIBUTES_THAT_ARE_SET_KEY, setAttributes);
}
if (value == null) {
ValueExpression ve = getValueExpression(name);
if (ve == null) {
setAttributes.remove(name);
}
} elseif (!setAttributes.contains(name)) {
setAttributes.add(name);
}
}
}