/** * Copyright 2014-2017 Riccardo Massera (TheCoder4.Eu) and Stephan Rauh (http://www.beyondjava.net). * * This file is part of BootsFaces. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package net.bootsfaces.component.panel; import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.Map; import javax.el.ValueExpression; import javax.faces.application.ResourceDependencies; import javax.faces.application.ResourceDependency; import javax.faces.component.FacesComponent; import javax.faces.component.UIComponentBase; import javax.faces.component.behavior.ClientBehaviorHolder; import net.bootsfaces.C; import net.bootsfaces.component.ajax.IAJAXComponent; import net.bootsfaces.listeners.AddResourcesListener; import net.bootsfaces.render.IContentDisabled; import net.bootsfaces.render.IResponsive; import net.bootsfaces.render.Tooltip; import net.bootsfaces.utils.BsfUtils; /** This class holds the attributes of <b:panel />. */ @ResourceDependencies({ @ResourceDependency(library = "bsf", name = "js/collapse.js", target = "body"), }) @FacesComponent(Panel.COMPONENT_TYPE) public class Panel extends UIComponentBase implements net.bootsfaces.render.IHasTooltip, IAJAXComponent, ClientBehaviorHolder, IResponsive, IContentDisabled { public static final String COMPONENT_TYPE = C.BSFCOMPONENT + ".panel.Panel"; public static final String COMPONENT_FAMILY = C.BSFCOMPONENT; public static final String DEFAULT_RENDERER = "net.bootsfaces.component.panel.Panel"; public Panel() { Tooltip.addResourceFiles(); AddResourcesListener.addThemedCSSResource("core.css"); //AddResourcesListener.addThemedCSSResource("bsf.css"); //!bs-less//AddResourcesListener.addThemedCSSResource("panels.css"); setRendererType(DEFAULT_RENDERER); } public void setValueExpression(String name, ValueExpression binding) { name = BsfUtils.snakeCaseToCamelCase(name); super.setValueExpression(name, binding); } public String getFamily() { return COMPONENT_FAMILY; } private static final Collection<String> EVENT_NAMES = Collections .unmodifiableCollection(Arrays.asList("click", "dblclick", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "expand", "expanded", "collapse", "collapsed")); /** * returns the subset of AJAX requests that are implemented by jQuery * callback or other non-standard means (such as the onclick event of * b:tabView, which has to be implemented manually).Ø * * @return */ public Map<String, String> getJQueryEvents() { Map<String, String> result = new HashMap<String, String>(); result.put("expand", "show.bs.collapse"); result.put("expanded", "shown.bs.collapse"); result.put("collapse", "hide.bs.collapse"); result.put("collapsed", "hidden.bs.collapse"); return result; } /** * Returns the parameter list of jQuery and other non-standard JS callbacks. * If there's no parameter list for a certain event, the default is simply "event". * * @return A hash map containing the events. May be null. */ @Override public Map<String, String> getJQueryEventParameterLists() { return null; } /** * Returns the subset of the parameter list of jQuery and other non-standard JS callbacks which is sent to the server via AJAX. * If there's no parameter list for a certain event, the default is simply null. * * @return A hash map containing the events. May be null. */ @Override public Map<String, String> getJQueryEventParameterListsForAjax() { return null; } public Collection<String> getEventNames() { return EVENT_NAMES; } public String getDefaultEventName() { return "click"; } /** * This attribute specify the accordion parent if exist. This property is * not exposed as component TAG because is driven by the Accordion component * <P> * * @return Returns the value of the attribute, or null, if it hasn't been * set by the JSF file. */ public String getAccordionParent() { String value = (String) getStateHelper().eval("accordionParent", null); return value; } /** * This attribute specify the accordion parent if exist. This property is * not exposed as component TAG because is driven by the Accordion component */ public void setAccordionParent(String _accordionParent) { getStateHelper().put("accordionParent", _accordionParent); } protected enum PropertyKeys { ajax, binding, colLg, colMd, colSm, colXs, collapsed, collapsible, contentClass, contentDisabled, contentStyle, dir, disabled, display, hidden, immediate, largeScreen, look, mediumScreen, offset, offsetLg, offsetMd, offsetSm, offsetXs, onclick, oncollapse, oncollapsed, oncomplete, ondblclick, onexpand, onexpanded, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, process, showCollapseLink, smallScreen, span, style, styleClass, tinyScreen, title, titleClass, titleStyle, tooltip, tooltipContainer, tooltipDelay, tooltipDelayHide, tooltipDelayShow, tooltipPosition, update, visible; String toString; PropertyKeys(String toString) { this.toString = toString; } PropertyKeys() { } public String toString() { return ((this.toString != null) ? this.toString : super.toString()); } } /** * Activates AJAX. The default value is false (no AJAX). <P> * @return Returns the value of the attribute, or , false, if it hasn't been set by the JSF file. */ public boolean isAjax() { return (boolean) (Boolean) getStateHelper().eval(PropertyKeys.ajax, false); } /** * Activates AJAX. The default value is false (no AJAX). <P> * Usually this method is called internally by the JSF engine. */ public void setAjax(boolean _ajax) { getStateHelper().put(PropertyKeys.ajax, _ajax); } /** * An EL expression referring to a server side UIComponent instance in a backing bean. <P> * @return Returns the value of the attribute, or null, if it hasn't been set by the JSF file. */ public javax.faces.component.UIComponent getBinding() { return (javax.faces.component.UIComponent) getStateHelper().eval(PropertyKeys.binding); } /** * An EL expression referring to a server side UIComponent instance in a backing bean. <P> * Usually this method is called internally by the JSF engine. */ public void setBinding(javax.faces.component.UIComponent _binding) { getStateHelper().put(PropertyKeys.binding, _binding); } /** * Integer value to specify how many columns to span on large screens (≥1200 pixels wide). The number may optionally be followed by "column" or "columns". Alternative legal values: half, one-third, two-thirds, one-fourth, three-fourths. <P> * @return Returns the value of the attribute, or "-1", if it hasn't been set by the JSF file. */ public String getColLg() { return (String) getStateHelper().eval(PropertyKeys.colLg, "-1"); } /** * Integer value to specify how many columns to span on large screens (≥1200 pixels wide). The number may optionally be followed by "column" or "columns". Alternative legal values: half, one-third, two-thirds, one-fourth, three-fourths. <P> * Usually this method is called internally by the JSF engine. */ public void setColLg(String _colLg) { getStateHelper().put(PropertyKeys.colLg, _colLg); } /** * Integer value to specify how many columns to span on medium screens (≥992 pixels wide). The number may optionally be followed by "column" or "columns". Alternative legal values: half, one-third, two-thirds, one-fourth, three-fourths. <P> * @return Returns the value of the attribute, or "-1", if it hasn't been set by the JSF file. */ public String getColMd() { return (String) getStateHelper().eval(PropertyKeys.colMd, "-1"); } /** * Integer value to specify how many columns to span on medium screens (≥992 pixels wide). The number may optionally be followed by "column" or "columns". Alternative legal values: half, one-third, two-thirds, one-fourth, three-fourths. <P> * Usually this method is called internally by the JSF engine. */ public void setColMd(String _colMd) { getStateHelper().put(PropertyKeys.colMd, _colMd); } /** * Integer value to specify how many columns to span on small screens (≥768p pixels wide). The number may optionally be followed by "column" or "columns". Alternative legal values: half, one-third, two-thirds, one-fourth, three-fourths. <P> * @return Returns the value of the attribute, or "-1", if it hasn't been set by the JSF file. */ public String getColSm() { return (String) getStateHelper().eval(PropertyKeys.colSm, "-1"); } /** * Integer value to specify how many columns to span on small screens (≥768p pixels wide). The number may optionally be followed by "column" or "columns". Alternative legal values: half, one-third, two-thirds, one-fourth, three-fourths. <P> * Usually this method is called internally by the JSF engine. */ public void setColSm(String _colSm) { getStateHelper().put(PropertyKeys.colSm, _colSm); } /** * Integer value to specify how many columns to span on tiny screens (≤ 767 pixels wide). The number may optionally be followed by "column" or "columns". Alternative legal values: half, one-third, two-thirds, one-fourth, three-fourths. <P> * @return Returns the value of the attribute, or "-1", if it hasn't been set by the JSF file. */ public String getColXs() { return (String) getStateHelper().eval(PropertyKeys.colXs, "-1"); } /** * Integer value to specify how many columns to span on tiny screens (≤ 767 pixels wide). The number may optionally be followed by "column" or "columns". Alternative legal values: half, one-third, two-thirds, one-fourth, three-fourths. <P> * Usually this method is called internally by the JSF engine. */ public void setColXs(String _colXs) { getStateHelper().put(PropertyKeys.colXs, _colXs); } /** * Is the panel collapsed? <P> * @return Returns the value of the attribute, or , false, if it hasn't been set by the JSF file. */ public boolean isCollapsed() { return (boolean) (Boolean) getStateHelper().eval(PropertyKeys.collapsed, false); } /** * Is the panel collapsed? <P> * Usually this method is called internally by the JSF engine. */ public void setCollapsed(boolean _collapsed) { getStateHelper().put(PropertyKeys.collapsed, _collapsed); } /** * By default, panels can be folded by clicking the title bar. Seting collapsible to false will suppress the collapse/expand feature. <P> * @return Returns the value of the attribute, or true, if it hasn't been set by the JSF file. */ public boolean isCollapsible() { return (boolean) (Boolean) getStateHelper().eval(PropertyKeys.collapsible, true); } /** * By default, panels can be folded by clicking the title bar. Seting collapsible to false will suppress the collapse/expand feature. <P> * Usually this method is called internally by the JSF engine. */ public void setCollapsible(boolean _collapsible) { getStateHelper().put(PropertyKeys.collapsible, _collapsible); } /** * content-class is optional: if specified, the content will be displayed with this specific class <P> * @return Returns the value of the attribute, or null, if it hasn't been set by the JSF file. */ public String getContentClass() { return (String) getStateHelper().eval(PropertyKeys.contentClass); } /** * content-class is optional: if specified, the content will be displayed with this specific class <P> * Usually this method is called internally by the JSF engine. */ public void setContentClass(String _contentClass) { getStateHelper().put(PropertyKeys.contentClass, _contentClass); } /** * Enables or disables every child element of this container. By default, child elements are enabled. <P> * @return Returns the value of the attribute, or false, if it hasn't been set by the JSF file. */ public boolean isContentDisabled() { return (boolean) (Boolean) getStateHelper().eval(PropertyKeys.contentDisabled, false); } /** * Enables or disables every child element of this container. By default, child elements are enabled. <P> * Usually this method is called internally by the JSF engine. */ public void setContentDisabled(boolean _contentDisabled) { getStateHelper().put(PropertyKeys.contentDisabled, _contentDisabled); } /** * Inline style of the content area. <P> * @return Returns the value of the attribute, or null, if it hasn't been set by the JSF file. */ public String getContentStyle() { return (String) getStateHelper().eval(PropertyKeys.contentStyle); } /** * Inline style of the content area. <P> * Usually this method is called internally by the JSF engine. */ public void setContentStyle(String _contentStyle) { getStateHelper().put(PropertyKeys.contentStyle, _contentStyle); } /** * Direction indication for text that does not inherit directionality. Legal values: ltr (Default. Left-to-right text direction), rtl (Right-to-left text direction) and auto (let the browser figure out the direction of your alphabet, based on the page content). <P> * @return Returns the value of the attribute, or null, if it hasn't been set by the JSF file. */ public String getDir() { return (String) getStateHelper().eval(PropertyKeys.dir); } /** * Direction indication for text that does not inherit directionality. Legal values: ltr (Default. Left-to-right text direction), rtl (Right-to-left text direction) and auto (let the browser figure out the direction of your alphabet, based on the page content). <P> * Usually this method is called internally by the JSF engine. */ public void setDir(String _dir) { getStateHelper().put(PropertyKeys.dir, _dir); } /** * Boolean value to specify if the button is disabled. <P> * @return Returns the value of the attribute, or , false, if it hasn't been set by the JSF file. */ public boolean isDisabled() { return (boolean) (Boolean) getStateHelper().eval(PropertyKeys.disabled, false); } /** * Boolean value to specify if the button is disabled. <P> * Usually this method is called internally by the JSF engine. */ public void setDisabled(boolean _disabled) { getStateHelper().put(PropertyKeys.disabled, _disabled); } /** * If you use the "visible" attribute, the value of this attribute is added. Legal values: block, inline, inline-block. Default: block. <P> * @return Returns the value of the attribute, or "block", if it hasn't been set by the JSF file. */ public String getDisplay() { return (String) getStateHelper().eval(PropertyKeys.display, "block"); } /** * If you use the "visible" attribute, the value of this attribute is added. Legal values: block, inline, inline-block. Default: block. <P> * Usually this method is called internally by the JSF engine. */ public void setDisplay(String _display) { getStateHelper().put(PropertyKeys.display, _display); } /** * This column is hidden on a certain screen size and below. Legal values: lg, md, sm, xs. <P> * @return Returns the value of the attribute, or null, if it hasn't been set by the JSF file. */ public String getHidden() { return (String) getStateHelper().eval(PropertyKeys.hidden); } /** * This column is hidden on a certain screen size and below. Legal values: lg, md, sm, xs. <P> * Usually this method is called internally by the JSF engine. */ public void setHidden(String _hidden) { getStateHelper().put(PropertyKeys.hidden, _hidden); } /** * Flag indicating that, if this component is activated by the user, notifications should be delivered to interested listeners and actions immediately (that is, during Apply Request Values phase) rather than waiting until Invoke Application phase. Default is false. <P> * @return Returns the value of the attribute, or , false, if it hasn't been set by the JSF file. */ public boolean isImmediate() { return (boolean) (Boolean) getStateHelper().eval(PropertyKeys.immediate, false); } /** * Flag indicating that, if this component is activated by the user, notifications should be delivered to interested listeners and actions immediately (that is, during Apply Request Values phase) rather than waiting until Invoke Application phase. Default is false. <P> * Usually this method is called internally by the JSF engine. */ public void setImmediate(boolean _immediate) { getStateHelper().put(PropertyKeys.immediate, _immediate); } /** * Alternative spelling to col-lg. Integer value to specify how many columns to span on large screens (≥1200 pixels wide). The number may optionally be followed by "column" or "columns". Alternative legal values: half, one-third, two-thirds, one-fourth, three-fourths. <P> * @return Returns the value of the attribute, or "-1", if it hasn't been set by the JSF file. */ public String getLargeScreen() { return (String) getStateHelper().eval(PropertyKeys.largeScreen, "-1"); } /** * Alternative spelling to col-lg. Integer value to specify how many columns to span on large screens (≥1200 pixels wide). The number may optionally be followed by "column" or "columns". Alternative legal values: half, one-third, two-thirds, one-fourth, three-fourths. <P> * Usually this method is called internally by the JSF engine. */ public void setLargeScreen(String _largeScreen) { getStateHelper().put(PropertyKeys.largeScreen, _largeScreen); } /** * Look of the Panel, can be primary, success, info, warning, danger. Default is warning. <P> * @return Returns the value of the attribute, or null, if it hasn't been set by the JSF file. */ public String getLook() { return (String) getStateHelper().eval(PropertyKeys.look); } /** * Look of the Panel, can be primary, success, info, warning, danger. Default is warning. <P> * Usually this method is called internally by the JSF engine. */ public void setLook(String _look) { getStateHelper().put(PropertyKeys.look, _look); } /** * Alternative spelling to col-md. Integer value to specify how many columns to span on medium screens (≥992 pixels wide). The number may optionally be followed by "column" or "columns". Alternative legal values: half, one-third, two-thirds, one-fourth, three-fourths. <P> * @return Returns the value of the attribute, or "-1", if it hasn't been set by the JSF file. */ public String getMediumScreen() { return (String) getStateHelper().eval(PropertyKeys.mediumScreen, "-1"); } /** * Alternative spelling to col-md. Integer value to specify how many columns to span on medium screens (≥992 pixels wide). The number may optionally be followed by "column" or "columns". Alternative legal values: half, one-third, two-thirds, one-fourth, three-fourths. <P> * Usually this method is called internally by the JSF engine. */ public void setMediumScreen(String _mediumScreen) { getStateHelper().put(PropertyKeys.mediumScreen, _mediumScreen); } /** * Integer value to specify how many columns to offset. <P> * @return Returns the value of the attribute, or null, if it hasn't been set by the JSF file. */ public String getOffset() { return (String) getStateHelper().eval(PropertyKeys.offset); } /** * Integer value to specify how many columns to offset. <P> * Usually this method is called internally by the JSF engine. */ public void setOffset(String _offset) { getStateHelper().put(PropertyKeys.offset, _offset); } /** * Integer value to specify how many columns to offset. <P> * @return Returns the value of the attribute, or null, if it hasn't been set by the JSF file. */ public String getOffsetLg() { return (String) getStateHelper().eval(PropertyKeys.offsetLg); } /** * Integer value to specify how many columns to offset. <P> * Usually this method is called internally by the JSF engine. */ public void setOffsetLg(String _offsetLg) { getStateHelper().put(PropertyKeys.offsetLg, _offsetLg); } /** * Integer value to specify how many columns to offset. <P> * @return Returns the value of the attribute, or null, if it hasn't been set by the JSF file. */ public String getOffsetMd() { return (String) getStateHelper().eval(PropertyKeys.offsetMd); } /** * Integer value to specify how many columns to offset. <P> * Usually this method is called internally by the JSF engine. */ public void setOffsetMd(String _offsetMd) { getStateHelper().put(PropertyKeys.offsetMd, _offsetMd); } /** * Integer value to specify how many columns to offset. <P> * @return Returns the value of the attribute, or null, if it hasn't been set by the JSF file. */ public String getOffsetSm() { return (String) getStateHelper().eval(PropertyKeys.offsetSm); } /** * Integer value to specify how many columns to offset. <P> * Usually this method is called internally by the JSF engine. */ public void setOffsetSm(String _offsetSm) { getStateHelper().put(PropertyKeys.offsetSm, _offsetSm); } /** * Integer value to specify how many columns to offset. <P> * @return Returns the value of the attribute, or null, if it hasn't been set by the JSF file. */ public String getOffsetXs() { return (String) getStateHelper().eval(PropertyKeys.offsetXs); } /** * Integer value to specify how many columns to offset. <P> * Usually this method is called internally by the JSF engine. */ public void setOffsetXs(String _offsetXs) { getStateHelper().put(PropertyKeys.offsetXs, _offsetXs); } /** * The onclick attribute. <P> * @return Returns the value of the attribute, or null, if it hasn't been set by the JSF file. */ public String getOnclick() { return (String) getStateHelper().eval(PropertyKeys.onclick); } /** * The onclick attribute. <P> * Usually this method is called internally by the JSF engine. */ public void setOnclick(String _onclick) { getStateHelper().put(PropertyKeys.onclick, _onclick); } /** * JavaScript code or AJAX method to be executed when the panel starts to be collapsed. <P> * @return Returns the value of the attribute, or null, if it hasn't been set by the JSF file. */ public String getOncollapse() { return (String) getStateHelper().eval(PropertyKeys.oncollapse); } /** * JavaScript code or AJAX method to be executed when the panel starts to be collapsed. <P> * Usually this method is called internally by the JSF engine. */ public void setOncollapse(String _oncollapse) { getStateHelper().put(PropertyKeys.oncollapse, _oncollapse); } /** * JavaScript code or AJAX method to be executed when the panel has finished collapsing. <P> * @return Returns the value of the attribute, or null, if it hasn't been set by the JSF file. */ public String getOncollapsed() { return (String) getStateHelper().eval(PropertyKeys.oncollapsed); } /** * JavaScript code or AJAX method to be executed when the panel has finished collapsing. <P> * Usually this method is called internally by the JSF engine. */ public void setOncollapsed(String _oncollapsed) { getStateHelper().put(PropertyKeys.oncollapsed, _oncollapsed); } /** * JavaScript to be executed when ajax completes with success. <P> * @return Returns the value of the attribute, or null, if it hasn't been set by the JSF file. */ public String getOncomplete() { return (String) getStateHelper().eval(PropertyKeys.oncomplete); } /** * JavaScript to be executed when ajax completes with success. <P> * Usually this method is called internally by the JSF engine. */ public void setOncomplete(String _oncomplete) { getStateHelper().put(PropertyKeys.oncomplete, _oncomplete); } /** * Client side callback to execute when input element is double clicked. <P> * @return Returns the value of the attribute, or null, if it hasn't been set by the JSF file. */ public String getOndblclick() { return (String) getStateHelper().eval(PropertyKeys.ondblclick); } /** * Client side callback to execute when input element is double clicked. <P> * Usually this method is called internally by the JSF engine. */ public void setOndblclick(String _ondblclick) { getStateHelper().put(PropertyKeys.ondblclick, _ondblclick); } /** * JavaScript code or AJAX method to be executed when the panel starts to be expanded. <P> * @return Returns the value of the attribute, or null, if it hasn't been set by the JSF file. */ public String getOnexpand() { return (String) getStateHelper().eval(PropertyKeys.onexpand); } /** * JavaScript code or AJAX method to be executed when the panel starts to be expanded. <P> * Usually this method is called internally by the JSF engine. */ public void setOnexpand(String _onexpand) { getStateHelper().put(PropertyKeys.onexpand, _onexpand); } /** * JavaScript code or AJAX method to be executed when the panel has finished expandeding. <P> * @return Returns the value of the attribute, or null, if it hasn't been set by the JSF file. */ public String getOnexpanded() { return (String) getStateHelper().eval(PropertyKeys.onexpanded); } /** * JavaScript code or AJAX method to be executed when the panel has finished expandeding. <P> * Usually this method is called internally by the JSF engine. */ public void setOnexpanded(String _onexpanded) { getStateHelper().put(PropertyKeys.onexpanded, _onexpanded); } /** * Client side callback to execute when a pointer input element is pressed down over input element. <P> * @return Returns the value of the attribute, or null, if it hasn't been set by the JSF file. */ public String getOnmousedown() { return (String) getStateHelper().eval(PropertyKeys.onmousedown); } /** * Client side callback to execute when a pointer input element is pressed down over input element. <P> * Usually this method is called internally by the JSF engine. */ public void setOnmousedown(String _onmousedown) { getStateHelper().put(PropertyKeys.onmousedown, _onmousedown); } /** * Client side callback to execute when a pointer input element is moved within input element. <P> * @return Returns the value of the attribute, or null, if it hasn't been set by the JSF file. */ public String getOnmousemove() { return (String) getStateHelper().eval(PropertyKeys.onmousemove); } /** * Client side callback to execute when a pointer input element is moved within input element. <P> * Usually this method is called internally by the JSF engine. */ public void setOnmousemove(String _onmousemove) { getStateHelper().put(PropertyKeys.onmousemove, _onmousemove); } /** * Client side callback to execute when a pointer input element is moved away from input element. <P> * @return Returns the value of the attribute, or null, if it hasn't been set by the JSF file. */ public String getOnmouseout() { return (String) getStateHelper().eval(PropertyKeys.onmouseout); } /** * Client side callback to execute when a pointer input element is moved away from input element. <P> * Usually this method is called internally by the JSF engine. */ public void setOnmouseout(String _onmouseout) { getStateHelper().put(PropertyKeys.onmouseout, _onmouseout); } /** * Client side callback to execute when a pointer input element is moved onto input element. <P> * @return Returns the value of the attribute, or null, if it hasn't been set by the JSF file. */ public String getOnmouseover() { return (String) getStateHelper().eval(PropertyKeys.onmouseover); } /** * Client side callback to execute when a pointer input element is moved onto input element. <P> * Usually this method is called internally by the JSF engine. */ public void setOnmouseover(String _onmouseover) { getStateHelper().put(PropertyKeys.onmouseover, _onmouseover); } /** * Client side callback to execute when a pointer input element is released over input element. <P> * @return Returns the value of the attribute, or null, if it hasn't been set by the JSF file. */ public String getOnmouseup() { return (String) getStateHelper().eval(PropertyKeys.onmouseup); } /** * Client side callback to execute when a pointer input element is released over input element. <P> * Usually this method is called internally by the JSF engine. */ public void setOnmouseup(String _onmouseup) { getStateHelper().put(PropertyKeys.onmouseup, _onmouseup); } /** * Comma or space separated list of ids or search expressions denoting which values are to be sent to the server. <P> * @return Returns the value of the attribute, or null, if it hasn't been set by the JSF file. */ public String getProcess() { return (String) getStateHelper().eval(PropertyKeys.process); } /** * Comma or space separated list of ids or search expressions denoting which values are to be sent to the server. <P> * Usually this method is called internally by the JSF engine. */ public void setProcess(String _process) { getStateHelper().put(PropertyKeys.process, _process); } /** * Collapsible panel headers are decorated by an underline to indicate it can be toggled using the keyboard if you activate this feature by setting showCollapseLink='true'. <P> * @return Returns the value of the attribute, or false, if it hasn't been set by the JSF file. */ public boolean isShowCollapseLink() { return (boolean) (Boolean) getStateHelper().eval(PropertyKeys.showCollapseLink, false); } /** * Collapsible panel headers are decorated by an underline to indicate it can be toggled using the keyboard if you activate this feature by setting showCollapseLink='true'. <P> * Usually this method is called internally by the JSF engine. */ public void setShowCollapseLink(boolean _showCollapseLink) { getStateHelper().put(PropertyKeys.showCollapseLink, _showCollapseLink); } /** * Alternative spelling to col-sm. Integer value to specify how many columns to span on small screens (≥768p pixels wide). The number may optionally be followed by "column" or "columns". Alternative legal values: half, one-third, two-thirds, one-fourth, three-fourths. <P> * @return Returns the value of the attribute, or "-1", if it hasn't been set by the JSF file. */ public String getSmallScreen() { return (String) getStateHelper().eval(PropertyKeys.smallScreen, "-1"); } /** * Alternative spelling to col-sm. Integer value to specify how many columns to span on small screens (≥768p pixels wide). The number may optionally be followed by "column" or "columns". Alternative legal values: half, one-third, two-thirds, one-fourth, three-fourths. <P> * Usually this method is called internally by the JSF engine. */ public void setSmallScreen(String _smallScreen) { getStateHelper().put(PropertyKeys.smallScreen, _smallScreen); } /** * Integer value to specify how many columns to span on medium screens (≥992 pixels). The number may optionally be followed by "column" or "columns". Alternative legal values: half, one-third, two-thirds, one-fourth, three-fourths. <P> * @return Returns the value of the attribute, or null, if it hasn't been set by the JSF file. */ public String getSpan() { return (String) getStateHelper().eval(PropertyKeys.span); } /** * Integer value to specify how many columns to span on medium screens (≥992 pixels). The number may optionally be followed by "column" or "columns". Alternative legal values: half, one-third, two-thirds, one-fourth, three-fourths. <P> * Usually this method is called internally by the JSF engine. */ public void setSpan(String _span) { getStateHelper().put(PropertyKeys.span, _span); } /** * Inline style of the entire panel area. <P> * @return Returns the value of the attribute, or null, if it hasn't been set by the JSF file. */ public String getStyle() { return (String) getStateHelper().eval(PropertyKeys.style); } /** * Inline style of the entire panel area. <P> * Usually this method is called internally by the JSF engine. */ public void setStyle(String _style) { getStateHelper().put(PropertyKeys.style, _style); } /** * Style class of the input element. <P> * @return Returns the value of the attribute, or null, if it hasn't been set by the JSF file. */ public String getStyleClass() { return (String) getStateHelper().eval(PropertyKeys.styleClass); } /** * Style class of the input element. <P> * Usually this method is called internally by the JSF engine. */ public void setStyleClass(String _styleClass) { getStateHelper().put(PropertyKeys.styleClass, _styleClass); } /** * Alternative spelling to col-xs. Integer value to specify how many columns to span on tiny screens (≤ 767 pixels wide). The number may optionally be followed by "column" or "columns". Alternative legal values: half, one-third, two-thirds, one-fourth, three-fourths. <P> * @return Returns the value of the attribute, or "-1", if it hasn't been set by the JSF file. */ public String getTinyScreen() { return (String) getStateHelper().eval(PropertyKeys.tinyScreen, "-1"); } /** * Alternative spelling to col-xs. Integer value to specify how many columns to span on tiny screens (≤ 767 pixels wide). The number may optionally be followed by "column" or "columns". Alternative legal values: half, one-third, two-thirds, one-fourth, three-fourths. <P> * Usually this method is called internally by the JSF engine. */ public void setTinyScreen(String _tinyScreen) { getStateHelper().put(PropertyKeys.tinyScreen, _tinyScreen); } /** * Title is optional: if specified, the heading facet will not be rendered and the panel will render with a heading with this Title. <P> * @return Returns the value of the attribute, or null, if it hasn't been set by the JSF file. */ public String getTitle() { return (String) getStateHelper().eval(PropertyKeys.title); } /** * Title is optional: if specified, the heading facet will not be rendered and the panel will render with a heading with this Title. <P> * Usually this method is called internally by the JSF engine. */ public void setTitle(String _title) { getStateHelper().put(PropertyKeys.title, _title); } /** * TitleClass is optional: if specified, the title will be displayed with this specific class <P> * @return Returns the value of the attribute, or null, if it hasn't been set by the JSF file. */ public String getTitleClass() { return (String) getStateHelper().eval(PropertyKeys.titleClass); } /** * TitleClass is optional: if specified, the title will be displayed with this specific class <P> * Usually this method is called internally by the JSF engine. */ public void setTitleClass(String _titleClass) { getStateHelper().put(PropertyKeys.titleClass, _titleClass); } /** * Inline style of the title area. <P> * @return Returns the value of the attribute, or null, if it hasn't been set by the JSF file. */ public String getTitleStyle() { return (String) getStateHelper().eval(PropertyKeys.titleStyle); } /** * Inline style of the title area. <P> * Usually this method is called internally by the JSF engine. */ public void setTitleStyle(String _titleStyle) { getStateHelper().put(PropertyKeys.titleStyle, _titleStyle); } /** * The text of the tooltip. <P> * @return Returns the value of the attribute, or null, if it hasn't been set by the JSF file. */ public String getTooltip() { return (String) getStateHelper().eval(PropertyKeys.tooltip); } /** * The text of the tooltip. <P> * Usually this method is called internally by the JSF engine. */ public void setTooltip(String _tooltip) { getStateHelper().put(PropertyKeys.tooltip, _tooltip); } /** * Where is the tooltip div generated? That's primarily a technical value that can be used to fix rendering errors in special cases. Also see data-container in the documentation of Bootstrap. The default value is body. <P> * @return Returns the value of the attribute, or "body", if it hasn't been set by the JSF file. */ public String getTooltipContainer() { return (String) getStateHelper().eval(PropertyKeys.tooltipContainer, "body"); } /** * Where is the tooltip div generated? That's primarily a technical value that can be used to fix rendering errors in special cases. Also see data-container in the documentation of Bootstrap. The default value is body. <P> * Usually this method is called internally by the JSF engine. */ public void setTooltipContainer(String _tooltipContainer) { getStateHelper().put(PropertyKeys.tooltipContainer, _tooltipContainer); } /** * The tooltip is shown and hidden with a delay. This value is the delay in milliseconds. Defaults to 0 (no delay). <P> * @return Returns the value of the attribute, or 0, if it hasn't been set by the JSF file. */ public int getTooltipDelay() { return (int) (Integer) getStateHelper().eval(PropertyKeys.tooltipDelay, 0); } /** * The tooltip is shown and hidden with a delay. This value is the delay in milliseconds. Defaults to 0 (no delay). <P> * Usually this method is called internally by the JSF engine. */ public void setTooltipDelay(int _tooltipDelay) { getStateHelper().put(PropertyKeys.tooltipDelay, _tooltipDelay); } /** * The tooltip is hidden with a delay. This value is the delay in milliseconds. Defaults to 0 (no delay). <P> * @return Returns the value of the attribute, or 0, if it hasn't been set by the JSF file. */ public int getTooltipDelayHide() { return (int) (Integer) getStateHelper().eval(PropertyKeys.tooltipDelayHide, 0); } /** * The tooltip is hidden with a delay. This value is the delay in milliseconds. Defaults to 0 (no delay). <P> * Usually this method is called internally by the JSF engine. */ public void setTooltipDelayHide(int _tooltipDelayHide) { getStateHelper().put(PropertyKeys.tooltipDelayHide, _tooltipDelayHide); } /** * The tooltip is shown with a delay. This value is the delay in milliseconds. Defaults to 0 (no delay). <P> * @return Returns the value of the attribute, or 0, if it hasn't been set by the JSF file. */ public int getTooltipDelayShow() { return (int) (Integer) getStateHelper().eval(PropertyKeys.tooltipDelayShow, 0); } /** * The tooltip is shown with a delay. This value is the delay in milliseconds. Defaults to 0 (no delay). <P> * Usually this method is called internally by the JSF engine. */ public void setTooltipDelayShow(int _tooltipDelayShow) { getStateHelper().put(PropertyKeys.tooltipDelayShow, _tooltipDelayShow); } /** * Where is the tooltip to be displayed? Possible values: "top", "bottom", "right", "left", "auto", "auto top", "auto bottom", "auto right" and "auto left". Default to "bottom". <P> * @return Returns the value of the attribute, or null, if it hasn't been set by the JSF file. */ public String getTooltipPosition() { return (String) getStateHelper().eval(PropertyKeys.tooltipPosition); } /** * Where is the tooltip to be displayed? Possible values: "top", "bottom", "right", "left", "auto", "auto top", "auto bottom", "auto right" and "auto left". Default to "bottom". <P> * Usually this method is called internally by the JSF engine. */ public void setTooltipPosition(String _tooltipPosition) { getStateHelper().put(PropertyKeys.tooltipPosition, _tooltipPosition); } /** * Which region of the screen is to be updated? Default value: @form <P> * @return Returns the value of the attribute, or null, if it hasn't been set by the JSF file. */ public String getUpdate() { return (String) getStateHelper().eval(PropertyKeys.update); } /** * Which region of the screen is to be updated? Default value: @form <P> * Usually this method is called internally by the JSF engine. */ public void setUpdate(String _update) { getStateHelper().put(PropertyKeys.update, _update); } /** * This column is shown on a certain screen size and above. Legal values: lg, md, sm, xs. <P> * @return Returns the value of the attribute, or null, if it hasn't been set by the JSF file. */ public String getVisible() { return (String) getStateHelper().eval(PropertyKeys.visible); } /** * This column is shown on a certain screen size and above. Legal values: lg, md, sm, xs. <P> * Usually this method is called internally by the JSF engine. */ public void setVisible(String _visible) { getStateHelper().put(PropertyKeys.visible, _visible); } }