All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.richfaces.component.UICollapsibleSubTable Maven / Gradle / Ivy

The newest version!
/*
 * 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.AbstractCollapsibleSubTable;
import java.util.Collection;
import org.richfaces.component.Column;
import org.richfaces.component.Expandable;
import org.richfaces.model.SortMode;

/**
 *  

The <rich:collapsibleSubTable> component acts as a child element to a <rich:dataTable> component. The <rich:collapsibleSubTable> component iterates through the child collections in the currently iterated object to create master-detail tables.

@author Anton Belevich **/ @Generated({"RichFaces CDK", "4.3.1.Final"}) public class UICollapsibleSubTable extends AbstractCollapsibleSubTable implements ClientBehaviorHolder,Column,Expandable { public static final String COMPONENT_TYPE="org.richfaces.CollapsibleSubTable"; public static final String COMPONENT_FAMILY="org.richfaces.Data"; @Override public String getFamily() { return COMPONENT_FAMILY; } public UICollapsibleSubTable() { super(); setRendererType("org.richfaces.CollapsibleSubTableRenderer"); } private static final Collection EVENT_NAMES = Collections.unmodifiableCollection(Arrays.asList( "rowmouseup", "rowclick", "rowmouseover", "rowkeypress", "rowmousedown", "rowkeydown", "rowmouseout", "rowmousemove", "rowdblclick", "rowkeyup" )); public Collection getEventNames() { return EVENT_NAMES; } public String getDefaultEventName() { return null; } protected enum Properties { columnClasses, expandMode, filterVar, footerClass, headerClass, noDataLabel, onrowclick, onrowdblclick, onrowkeydown, onrowkeypress, onrowkeyup, onrowmousedown, onrowmousemove, onrowmouseout, onrowmouseover, onrowmouseup, rowClass, rowClasses, sortMode, sortPriority, style } public String getColumnClasses() { String value = (String) getStateHelper().eval(Properties.columnClasses); return value; } public void setColumnClasses(String columnClasses) { getStateHelper().put(Properties.columnClasses, columnClasses); } public String getExpandMode() { String value = (String) getStateHelper().eval(Properties.expandMode); return value; } public void setExpandMode(String expandMode) { getStateHelper().put(Properties.expandMode, expandMode); } public String getFilterVar() { String value = (String) getStateHelper().eval(Properties.filterVar); return value; } public void setFilterVar(String filterVar) { getStateHelper().put(Properties.filterVar, filterVar); } public String getFooterClass() { String value = (String) getStateHelper().eval(Properties.footerClass); return value; } public void setFooterClass(String footerClass) { getStateHelper().put(Properties.footerClass, footerClass); } public String getHeaderClass() { String value = (String) getStateHelper().eval(Properties.headerClass); return value; } public void setHeaderClass(String headerClass) { getStateHelper().put(Properties.headerClass, headerClass); } public String getNoDataLabel() { String value = (String) getStateHelper().eval(Properties.noDataLabel); return value; } public void setNoDataLabel(String noDataLabel) { getStateHelper().put(Properties.noDataLabel, noDataLabel); } public String getOnrowclick() { String value = (String) getStateHelper().eval(Properties.onrowclick); return value; } public void setOnrowclick(String onrowclick) { getStateHelper().put(Properties.onrowclick, onrowclick); } public String getOnrowdblclick() { String value = (String) getStateHelper().eval(Properties.onrowdblclick); return value; } public void setOnrowdblclick(String onrowdblclick) { getStateHelper().put(Properties.onrowdblclick, onrowdblclick); } public String getOnrowkeydown() { String value = (String) getStateHelper().eval(Properties.onrowkeydown); return value; } public void setOnrowkeydown(String onrowkeydown) { getStateHelper().put(Properties.onrowkeydown, onrowkeydown); } public String getOnrowkeypress() { String value = (String) getStateHelper().eval(Properties.onrowkeypress); return value; } public void setOnrowkeypress(String onrowkeypress) { getStateHelper().put(Properties.onrowkeypress, onrowkeypress); } public String getOnrowkeyup() { String value = (String) getStateHelper().eval(Properties.onrowkeyup); return value; } public void setOnrowkeyup(String onrowkeyup) { getStateHelper().put(Properties.onrowkeyup, onrowkeyup); } public String getOnrowmousedown() { String value = (String) getStateHelper().eval(Properties.onrowmousedown); return value; } public void setOnrowmousedown(String onrowmousedown) { getStateHelper().put(Properties.onrowmousedown, onrowmousedown); } public String getOnrowmousemove() { String value = (String) getStateHelper().eval(Properties.onrowmousemove); return value; } public void setOnrowmousemove(String onrowmousemove) { getStateHelper().put(Properties.onrowmousemove, onrowmousemove); } public String getOnrowmouseout() { String value = (String) getStateHelper().eval(Properties.onrowmouseout); return value; } public void setOnrowmouseout(String onrowmouseout) { getStateHelper().put(Properties.onrowmouseout, onrowmouseout); } public String getOnrowmouseover() { String value = (String) getStateHelper().eval(Properties.onrowmouseover); return value; } public void setOnrowmouseover(String onrowmouseover) { getStateHelper().put(Properties.onrowmouseover, onrowmouseover); } public String getOnrowmouseup() { String value = (String) getStateHelper().eval(Properties.onrowmouseup); return value; } public void setOnrowmouseup(String onrowmouseup) { getStateHelper().put(Properties.onrowmouseup, onrowmouseup); } public String getRowClass() { String value = (String) getStateHelper().eval(Properties.rowClass); return value; } public void setRowClass(String rowClass) { getStateHelper().put(Properties.rowClass, rowClass); } public String getRowClasses() { String value = (String) getStateHelper().eval(Properties.rowClasses); return value; } public void setRowClasses(String rowClasses) { getStateHelper().put(Properties.rowClasses, rowClasses); } public SortMode getSortMode() { SortMode value = (SortMode) getStateHelper().eval(Properties.sortMode); return value; } public void setSortMode(SortMode sortMode) { getStateHelper().put(Properties.sortMode, sortMode); } public Collection getSortPriority() { Collection value = (Collection) getStateHelper().eval(Properties.sortPriority); return value; } public void setSortPriority(Collection sortPriority) { getStateHelper().put(Properties.sortPriority, sortPriority); } public String getStyle() { String value = (String) getStateHelper().eval(Properties.style); return value; } public void setStyle(String style) { getStateHelper().put(Properties.style, style); handleAttribute("style",style); } private static final String ATTRIBUTES_THAT_ARE_SET_KEY = "javax.faces.component.UIComponentBase.attributesThatAreSet"; private void handleAttribute(String name, Object value) { List setAttributes = (List) this.getAttributes().get(ATTRIBUTES_THAT_ARE_SET_KEY); if (setAttributes == null) { setAttributes = new ArrayList(1); this.getAttributes().put(ATTRIBUTES_THAT_ARE_SET_KEY, setAttributes); } if (value == null) { ValueExpression ve = getValueExpression(name); if (ve == null) { setAttributes.remove(name); } } else if (!setAttributes.contains(name)) { setAttributes.add(name); } } public UIComponent getFooter() { return getFacet("footer"); } public void setFooter(UIComponent facet) { getFacets().put("footer", facet); } public UIComponent getNoData() { return getFacet("noData"); } public void setNoData(UIComponent facet) { getFacets().put("noData", facet); } public UIComponent getHeader() { return getFacet("header"); } public void setHeader(UIComponent facet) { getFacets().put("header", facet); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy