/**
* Copyright 2014-2017 Riccardo Massera (TheCoder4.Eu)
*
* 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.datepicker;
import java.io.IOException;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Iterator;
import java.util.Locale;
import java.util.Map;
import java.util.MissingResourceException;
import java.util.ResourceBundle;
import javax.el.ValueExpression;
import javax.faces.application.Application;
import javax.faces.application.FacesMessage;
import javax.faces.application.Resource;
import javax.faces.application.ResourceHandler;
import javax.faces.component.FacesComponent;
import javax.faces.component.UIComponent;
import javax.faces.component.UIInput;
import javax.faces.component.html.HtmlInputText;
import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter;
import javax.faces.convert.Converter;
import javax.faces.convert.ConverterException;
import net.bootsfaces.C;
import net.bootsfaces.component.formGroup.FormGroup;
import net.bootsfaces.component.icon.IconRenderer;
import net.bootsfaces.listeners.AddResourcesListener;
import net.bootsfaces.render.A;
import net.bootsfaces.render.CoreRenderer;
import net.bootsfaces.render.IContentDisabled;
import net.bootsfaces.render.IResponsive;
import net.bootsfaces.render.IResponsiveLabel;
import net.bootsfaces.render.JQ;
import net.bootsfaces.render.Responsive;
import net.bootsfaces.render.Tooltip;
import net.bootsfaces.utils.BsfUtils;
import net.bootsfaces.utils.FacesMessages;
/**
*
* @author thecoder4.eu
*/
@FacesComponent(Datepicker.COMPONENT_TYPE)
public class Datepicker extends HtmlInputText implements IResponsive, IResponsiveLabel {
/**
* <p>
* The standard component type for this component.
* </p>
*/
public static final String COMPONENT_TYPE = C.BSFCOMPONENT + ".datepicker.Datepicker";
/**
* <p>
* The component family for this component.
* </p>
*/
public static final String COMPONENT_FAMILY = C.BSFCOMPONENT;
public static final String ADDON = "input-group-addon";
public static final String CALENDAR = "calendar";
/**
* Selected Locale
*/
private Locale sloc;
/**
* selected Date Format
*/
private String sdf;
private String mode;
public Datepicker() {
setRendererType(null); // this component renders itself
AddResourcesListener.addThemedCSSResource("core.css");
AddResourcesListener.addExtCSSResource("jq.ui.core.css");
AddResourcesListener.addExtCSSResource("jq.ui.theme.css");
AddResourcesListener.addExtCSSResource("jq.ui.datepicker.css");
//AddResourcesListener.addThemedCSSResource("bsf.css");
AddResourcesListener.addResourceToHeadButAfterJQuery(C.BSF_LIBRARY, "jq/ui/core.js");
AddResourcesListener.addResourceToHeadButAfterJQuery(C.BSF_LIBRARY, "jq/ui/datepicker.js");
FacesContext context = FacesContext.getCurrentInstance();
Application app = context.getApplication();
ResourceHandler rh = app.getResourceHandler();
Resource rdp;
Iterator<Locale> preferredLanguages = context.getExternalContext().getRequestLocales();
while (preferredLanguages.hasNext()) {
String language = preferredLanguages.next().getLanguage();
if ("en".equals(language)) {
break;
}
final String jsl = "jq/ui/i18n/datepicker-" + language + ".js";
rdp = rh.createResource(jsl, C.BSF_LIBRARY);
if (rdp != null) { // rdp is null if the language .js is not present
// in jar
AddResourcesListener.addResourceToHeadButAfterJQuery(C.BSF_LIBRARY, jsl);
break;
}
}
Tooltip.addResourceFiles();
}
public void setValueExpression(String name, ValueExpression binding) {
name = BsfUtils.snakeCaseToCamelCase(name);
super.setValueExpression(name, binding);
}
@Override
public void decode(FacesContext fc) {
String subVal = fc.getExternalContext().getRequestParameterMap().get(getClientId(fc));
if (subVal != null) {
this.setSubmittedValue(subVal);
this.setValid(true);
}
}
@Override
protected Object getConvertedValue(FacesContext fc, Object sval) throws ConverterException {
if (sval == null) {
return null;
}
String val = (String) sval;
// If the Trimmed submitted value is empty, return null
if (val.trim().length() == 0) {
return null;
}
Converter converter = getConverter();
// If the user supplied a converter, use it
if (converter != null) {
return converter.getAsObject(fc, this, val);
}
// Else we use our own converter
sloc = selectLocale(fc.getViewRoot().getLocale(), A.asString(getAttributes().get(JQ.LOCALE)));
sdf = selectDateFormat(sloc, A.asString(getAttributes().get(JQ.DTFORMAT)));
Calendar cal = Calendar.getInstance(sloc);
SimpleDateFormat format = new SimpleDateFormat(sdf, sloc);
format.setTimeZone(cal.getTimeZone());
try {
cal.setTime(format.parse(val));
cal.set(Calendar.HOUR_OF_DAY, 12);
return cal.getTime();
} catch (ParseException e) {
this.setValid(false);
throw new ConverterException(
getMessage("javax.faces.converter.DateTimeConverter.DATE", val, sdf, getLabel(fc)));
}
}
@Override
public void encodeBegin(FacesContext fc) throws IOException {
if (!isRendered()) {
return;
}
/*
* Popup <input id="form:popCal" name="form:popCal" type="text" />
* <script id="form:popCal_js" type="text/javascript"> $(function(){
* $('form:popCal').datepicker({id:'form:popupCal',popup:true,locale:'
* en_US',dateFormat:'m/d/y'}); }); </script>
*
* Inline Adds a Div and Uses a Hidden Input
*/
encodeHTML(fc);
encodeDefaultLanguageJS(fc);
Tooltip.activateTooltips(fc, this);
}
/**
* Generates the default language for the date picker. Originally
* implemented in the HeadRenderer, this code has been moved here to provide
* better compatibility to PrimeFaces. If multiple date pickers are on the
* page, the script is generated redundantly, but this shouldn't do no harm.
*
* @param fc
* The current FacesContext
* @throws IOException
*/
private void encodeDefaultLanguageJS(FacesContext fc) throws IOException {
ResponseWriter rw = fc.getResponseWriter();
rw.startElement("script", null);
rw.write("$.datepicker.setDefaults($.datepicker.regional['" + fc.getViewRoot().getLocale().getLanguage()
+ "']);");
rw.endElement("script");
}
/**
* Renders the optional label. This method is protected in order to allow
* third-party frameworks to derive from it.
*
* @param rw
* the response writer
* @param clientId
* the id used by the label to refernce the input field
* @throws IOException
* may be thrown by the response writer
*/
protected void addLabel(ResponseWriter rw, String clientId, String fieldId) throws IOException {
String label = getLabel();
if (!isRenderLabel()) {
label = null;
}
if (label != null) {
rw.startElement("label", this);
rw.writeAttribute("for", clientId, "for");
new CoreRenderer().generateErrorAndRequiredClassForLabels(this, rw, fieldId,
getLabelStyleClass() + " control-label");
if (getLabelStyle() != null) {
rw.writeAttribute("style", getLabelStyle(), "style");
}
rw.writeText(label, null);
rw.endElement("label");
}
}
/**
* Encodes the HTML for this context
*
* @param fc
* @throws IOException
*/
private void encodeHTML(FacesContext fc) throws IOException {
boolean idHasBeenRendered = false;
Map<String, Object> attrs = getAttributes();
String clientId = getClientId(fc);
ResponseWriter rw = fc.getResponseWriter();
int numberOfDivs = 0;
String responsiveStyleClass = Responsive.getResponsiveStyleClass(this, false).trim();
if (responsiveStyleClass.length() > 0 && (!CoreRenderer.isHorizontalForm(this))) {
rw.startElement("div", this);
rw.writeAttribute("class", responsiveStyleClass, "class");
rw.writeAttribute("id", clientId, "id");
Tooltip.generateTooltip(fc, this, rw);
idHasBeenRendered = true;
numberOfDivs++;
}
rw.startElement("div", this);
numberOfDivs++;
String errorSeverityClass = BsfUtils.isLegacyFeedbackClassesEnabled() ? ""
: FacesMessages.getErrorSeverityClass(clientId);
String formGroupClass = "";
if (!(getParent() instanceof FormGroup)) {
formGroupClass = "form-group";
}
rw.writeAttribute("class", formGroupClass + errorSeverityClass, "class");
if (!idHasBeenRendered) {
rw.writeAttribute("id", clientId, "id");
Tooltip.generateTooltip(fc, this, rw);
idHasBeenRendered = true;
}
addLabel(rw, clientId + "_input", clientId);
if (responsiveStyleClass.length() > 0 && (CoreRenderer.isHorizontalForm(this))) {
rw.startElement("div", this);
numberOfDivs++;
rw.writeAttribute("class", responsiveStyleClass, "class");
}
// stz = selectTimeZone(attrs.get(A.TZ));
sloc = selectLocale(fc.getViewRoot().getLocale(), A.asString(attrs.get(JQ.LOCALE)));
sdf = selectDateFormat(sloc, A.asString(attrs.get(JQ.DTFORMAT)));
// Debugging Locale and dateformat
// rw.write("<span>DEBUG sloc='"+sloc+"', sdf='"+sdf+"' </span>");
String dpId;
Object v = getSubmittedValue();
if (v == null) {
v = this.getValue();
}
/*
* 6 modes: 1) inline 2) popup (no icons) 3) popup-icon 4) icon-popup 5)
* toggle-icon (Default) 6) icon-toggle
*/
boolean isDisabled = A.toBool(attrs.get("disabled"));
mode = A.asString(attrs.get("mode"), "toggle-icon");
boolean inline = mode.equals("inline");
if (inline) { // inline => div with ID
dpId = clientId + "_" + "div";
rw.startElement("div", this);
rw.writeAttribute("id", dpId, null);
if (getStyleClass() != null) {
rw.writeAttribute("class", getStyleClass(), "styleClass");
}
if (getStyle() != null) {
rw.writeAttribute("style", getStyle(), "style");
}
rw.endElement("div");
} else { // popup
dpId = clientId + "_input";
if (!mode.equals("popup")) { // with icon => div with prepend/append
// style
rw.startElement("div", this);
numberOfDivs++;
String clazz = "input-group ";
if (null != getStyleClass()) {
clazz += getStyleClass() + " ";
}
rw.writeAttribute("class", clazz, "class");
if (getStyle() != null) {
rw.writeAttribute("style", getStyle(), "style");
}
if (mode.equals("icon-popup") || mode.equals("icon-toggle")) {
rw.startElement("span", this);
rw.writeAttribute("id", clientId + "_" + ADDON, "id");
rw.writeAttribute("class", ADDON, "class");
IconRenderer.encodeIcon(rw, this, "calendar", false, null, null, null, false, null, null,
isDisabled, true, true, true);
rw.endElement("span");
}
}
}
String type = inline ? "hidden" : "text";
rw.startElement("input", null);
rw.writeAttribute("id", clientId + "_input", null);
if (getTabindex() != null) {
rw.writeAttribute("tabindex", getTabindex(), null);
}
// if (getStyle() != null) {
// rw.writeAttribute("style", getStyle(), "style");
// }
rw.writeAttribute("name", clientId, null);
rw.writeAttribute("type", type, null);
String styleClass = new CoreRenderer().getErrorAndRequiredClass(this, clientId);
rw.writeAttribute("class", "form-control " + styleClass, "class");
if (v != null) {
rw.writeAttribute("value", getConvertedDateAsString(v, sdf, sloc), null);
}
String ph = A.asString(attrs.get("placeholder"));
if (ph != null) {
rw.writeAttribute("placeholder", ph, null);
}
if (isDisabled) {
rw.writeAttribute("disabled", "disabled", null);
}
if (A.toBool(attrs.get("readonly"))) {
rw.writeAttribute("readonly", "readonly", null);
}
rw.endElement("input");
encodeJS(fc, rw, clientId + "_input", dpId);
if (mode.equals("popup-icon") || mode.equals("toggle-icon")) {
rw.startElement("span", this);
rw.writeAttribute("id", clientId + "_" + ADDON, "id");
rw.writeAttribute("class", ADDON, "class");
IconRenderer.encodeIcon(rw, this, "calendar", false, null, null, null, false, null, null, isDisabled, true,
true, true);
rw.endElement("span");
}
if (!inline && !mode.equals("popup")) {
rw.endElement("div");
numberOfDivs--;
JQ.datePickerToggler(rw, clientId + "_input", clientId + "_" + ADDON);
} // Closes the popup prepend/append style div
while (numberOfDivs > 0) {
rw.endElement("div");
numberOfDivs--;
}
}
private void encodeJS(FacesContext fc, ResponseWriter rw, String cId, String dpId) throws IOException {
Map<String, Object> attrs = getAttributes();
StringBuilder sb = new StringBuilder(150);
sb.append(JQ.DTFORMAT).append(":").append("'" + convertFormat(sdf) + "'").append(",");
if (A.toInt(attrs.get(JQ.NUMOFMONTHS)) > 0) {
sb.append(JQ.NUMOFMONTHS).append(":").append(attrs.get(JQ.NUMOFMONTHS)).append(",");
}
if (A.toInt(attrs.get(JQ.FIRSTDAY)) > 0) {
sb.append(JQ.FIRSTDAY).append(":").append(attrs.get(JQ.FIRSTDAY)).append(",");
}
if (A.toBool(attrs.get(JQ.SHOWBUTS))) {
sb.append(JQ.SHOWBUTS).append(":").append("true").append(",");
}
if (A.toBool(attrs.get(JQ.CHNGMONTH))) {
sb.append(JQ.CHNGMONTH).append(":").append("true").append(",");
}
if (A.toBool(attrs.get(JQ.CHNGYEAR))) {
sb.append(JQ.CHNGYEAR).append(":").append("true").append(",");
}
if (A.toBool(attrs.get(JQ.SHOWWK))) {
sb.append(JQ.SHOWWK).append(":").append("true").append(",");
}
if (mode.equals("toggle-icon") || mode.equals("icon-toggle")) {
sb.append(JQ.SHOWON).append(":").append("'" + "button" + "'").append(",");
}
if (A.toBool(attrs.get(JQ.DTDISABLED))) {
sb.append(JQ.DTDISABLED).append(":").append("true").append(",");
}
/*
* Attributes that need decoding the Date
*/
if (attrs.get(JQ.MINDATE) != null) {
sb.append(JQ.MINDATE + ":" + "'").append(getConvertedDateAsString(attrs.get(JQ.MINDATE), sdf, sloc))
.append("',");
}
if (attrs.get(JQ.MAXDATE) != null) {
sb.append(JQ.MAXDATE + ":" + "'").append(getConvertedDateAsString(attrs.get(JQ.MAXDATE), sdf, sloc))
.append("',");
}
// If user specifies a specific language to use then we render the
// datepicker using this language
// else we use the selected locale language
String l = A.asString(attrs.get(JQ.LANG));
if (l == null) {
l = sloc.getLanguage();
}
String options = sb.toString();
if (options.endsWith(",")) {
options = options.substring(0, options.length() - 1);
}
JQ.datePicker(rw, cId, dpId, options, l);
}
private String getConvertedDateAsString(Object dt, String format, Locale locale) {
Converter converter = getConverter();
return converter == null ? getDateAsString(dt, format, locale)
: converter.getAsString(getFacesContext(), this, dt);
}
public static String getDateAsString(Object dt, String format, Locale locale) {
if (dt == null) {
return null;
}
if (dt instanceof String) {
return (String) dt;
} else if (dt instanceof Date) {
SimpleDateFormat dtFormat = new SimpleDateFormat(format, locale);
dtFormat.setTimeZone(java.util.TimeZone.getDefault());
return dtFormat.format((Date) dt);
} else {
throw new IllegalArgumentException(
"Value could be either String or java.util.Date, you may want to use a custom converter.");
}
}
// Pass the attrs timezone value
/*
* public static TimeZone selectTimeZone(Object utz) { java.util.TimeZone
* selTimeZone; if (utz != null) { if (utz instanceof String) { selTimeZone
* = java.util.TimeZone.getTimeZone((String) utz); } else if (utz instanceof
* java.util.TimeZone) { selTimeZone = (java.util.TimeZone) utz; } else {
* throw new IllegalArgumentException(
* "TimeZone should be either String or java.util.TimeZone"); } } else {
* selTimeZone = java.util.TimeZone.getDefault(); } return selTimeZone; }
*/
// Pass facesContext.getViewRoot().getLocale() and attrs locale value
public Locale selectLocale(Locale vrloc, Object loc) {
java.util.Locale selLocale = vrloc;
if (loc != null) {
if (loc instanceof String) {
selLocale = toLocale((String) loc);
} else if (loc instanceof java.util.Locale) {
selLocale = (java.util.Locale) loc;
} else {
throw new IllegalArgumentException(
"Type:" + loc.getClass() + " is not a valid locale type for DatePicker:" + this.getClientId());
}
}
return selLocale;
}
/**
* Selects the Date Pattern to use based on the given Locale if the input
* format is null
*
* @param locale
* Locale (may be the result of a call to selectLocale)
* @param format
* Input format String
* @return Date Pattern eg. dd/MM/yyyy
*/
public static String selectDateFormat(Locale locale, String format) {
String selFormat;
if (format == null) {
selFormat = ((SimpleDateFormat) DateFormat.getDateInstance(DateFormat.SHORT, locale)).toPattern();
// Since DateFormat.SHORT is silly, return a smart format
if (selFormat.equals("M/d/yy")) {
return "MM/dd/yyyy";
}
if (selFormat.equals("d/M/yy")) {
return "dd/MM/yyyy";
}
} else {
selFormat = format;
}
return selFormat;
}
/**
* Implementation from Apache Commons Lang
*
* @param str
* @return
*/
public static Locale toLocale(String str) {
if (str == null) {
return null;
}
int len = str.length();
if (len != 2 && len != 5 && len < 7) {
throw new IllegalArgumentException("Invalid locale format: " + str);
}
char ch0 = str.charAt(0);
char ch1 = str.charAt(1);
if (ch0 < 'a' || ch0 > 'z' || ch1 < 'a' || ch1 > 'z') {
throw new IllegalArgumentException("Invalid locale format: " + str);
}
if (len == 2) {
return new Locale(str, "");
} else {
if (str.charAt(2) != '_') {
throw new IllegalArgumentException("Invalid locale format: " + str);
}
char ch3 = str.charAt(3);
if (ch3 == '_') {
return new Locale(str.substring(0, 2), "", str.substring(4));
}
char ch4 = str.charAt(4);
if (ch3 < 'A' || ch3 > 'Z' || ch4 < 'A' || ch4 > 'Z') {
throw new IllegalArgumentException("Invalid locale format: " + str);
}
if (len == 5) {
return new Locale(str.substring(0, 2), str.substring(3, 5));
} else {
if (str.charAt(5) != '_') {
throw new IllegalArgumentException("Invalid locale format: " + str);
}
return new Locale(str.substring(0, 2), str.substring(3, 5), str.substring(6));
}
}
}
/**
* Converts a java Date format to a jQuery date format
*
* @param format
* Format to be converted
* @return converted format
*/
public static String convertFormat(String format) {
if (format == null)
return null;
else {
// day of week
format = format.replaceAll("EEE", "D");
// year
format = format.replaceAll("yy", "y");
// month
if (format.indexOf("MMM") != -1) {
format = format.replaceAll("MMM", "M");
} else {
format = format.replaceAll("M", "m");
}
return format;
}
}
@Override
public String getFamily() {
return COMPONENT_FAMILY;
}
/**
* <p>
* Creates and returns a FacesMessage for the specified Locale.
* </p>
* Simplified and streamlined version of the implementation of Mojarra
* 2.2.8-b02 (see MessageFactory).
*
* @param messageId
* - the key of the message in the resource bundle
* @param params
* - substitution parameters
*
* @return a localized <code>FacesMessage</code> with the severity of
* FacesMessage.SEVERITY_ERROR
*/
public static FacesMessage getMessage(String messageId, String... params) {
String summary = null;
String detail = null;
ResourceBundle bundle;
String bundleName;
FacesContext context = FacesContext.getCurrentInstance();
Locale locale = context.getViewRoot().getLocale();
// see if we have a user-provided bundle
Application app = (FacesContext.getCurrentInstance().getApplication());
if (null != (bundleName = app.getMessageBundle())) {
if (null != (bundle = ResourceBundle.getBundle(bundleName, locale,
Thread.currentThread().getContextClassLoader()))) {
// see if we have a hit
try {
summary = bundle.getString(messageId);
detail = bundle.getString(messageId + "_detail");
} catch (MissingResourceException e) {
// ignore
}
}
}
// we couldn't find a summary in the user-provided bundle
if (null == summary) {
// see if we have a summary in the app provided bundle
bundle = ResourceBundle.getBundle(FacesMessage.FACES_MESSAGES, locale,
Thread.currentThread().getContextClassLoader());
if (null == bundle) {
throw new NullPointerException();
}
// see if we have a hit
try {
summary = bundle.getString(messageId);
detail = bundle.getString(messageId + "_detail");
} catch (MissingResourceException e) {
// ignore
}
}
for (int i = 0; i < params.length; i++) {
summary = summary.replace("{" + i + "}", params[i]);
detail = detail.replace("{" + i + "}", params[i]);
}
// At this point, we have a summary and a bundle.
FacesMessage ret = new FacesMessage(FacesMessage.SEVERITY_ERROR, summary, detail);
ret.setSeverity(FacesMessage.SEVERITY_ERROR);
return ret;
}
/**
* <p>
* Returns the <code>label</code> property from the specified component.
* </p>
* Simplified and adapted version of the implementation of Mojarra 2.2.8-b02
* (see MessageFactory).
*
* @param context
* - the <code>FacesContext</code> for the current request
*
* @return the label, if any, of the component
*/
public String getLabel(FacesContext context) {
Object o = getAttributes().get("label");
if (o == null || (o instanceof String && ((String) o).length() == 0)) {
ValueExpression vex = getValueExpression("label");
if (null != vex)
return (String) vex.getValue(context.getELContext());
}
if (o == null) {
// Use the "clientId" if there was no label specified.
o = getClientId(context);
}
return (String) o;
}
/**
* Yields the value of the required and error level CSS class.
*
* @param input
* @param clientId
* @return
*/
public String getErrorAndRequiredClass(UIInput input, String clientId) {
String[] levels = { "bf-no-message", "bf-info", "bf-warning", "bf-error", "bf-fatal" };
int level = 0;
Iterator<FacesMessage> messages = FacesContext.getCurrentInstance().getMessages(clientId);
if (null != messages) {
while (messages.hasNext()) {
FacesMessage message = messages.next();
if (message.getSeverity().equals(FacesMessage.SEVERITY_INFO))
if (level < 1)
level = 1;
if (message.getSeverity().equals(FacesMessage.SEVERITY_WARN))
if (level < 2)
level = 2;
if (message.getSeverity().equals(FacesMessage.SEVERITY_ERROR))
if (level < 3)
level = 3;
if (message.getSeverity().equals(FacesMessage.SEVERITY_FATAL))
if (level < 4)
level = 4;
}
}
String styleClass = levels[level];
if (input.isRequired()) {
styleClass += " bf-required";
}
return styleClass;
}
/**
* Boolean value to specify if the widget 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() {
if (super.isDisabled())
return true;
UIComponent ancestor = getParent();
while (ancestor != null) {
if (ancestor instanceof IContentDisabled) {
if (((IContentDisabled) ancestor).isContentDisabled()) {
return true;
}
}
ancestor = ancestor.getParent();
}
return false;
}
protected enum PropertyKeys {
binding,
changeMonth,
changeYear,
colLg,
colMd,
colSm,
colXs,
display,
firstDay,
hidden,
labelColLg,
labelColMd,
labelColSm,
labelColXs,
labelLargeScreen,
labelMediumScreen,
labelSmallScreen,
labelStyle,
labelStyleClass,
labelTinyScreen,
lang,
largeScreen,
mediumScreen,
mode,
numberOfMonths,
offset,
offsetLg,
offsetMd,
offsetSm,
offsetXs,
placeholder,
renderLabel,
required,
requiredMessage,
showButtonPanel,
showWeek,
smallScreen,
span,
style,
styleClass,
tabindex,
tinyScreen,
tooltip,
tooltipContainer,
tooltipDelay,
tooltipDelayHide,
tooltipDelayShow,
tooltipPosition,
visible;
String toString;
PropertyKeys(String toString) {
this.toString = toString;
}
PropertyKeys() {
}
public String toString() {
return ((this.toString != null) ? this.toString : super.toString());
}
}
/**
* 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);
}
/**
* Boolean value to specify if month selector should be shown. <P>
* @return Returns the value of the attribute, or , false, if it hasn't been set by the JSF file.
*/
public boolean isChangeMonth() {
return (boolean) (Boolean) getStateHelper().eval(PropertyKeys.changeMonth, false);
}
/**
* Boolean value to specify if month selector should be shown. <P>
* Usually this method is called internally by the JSF engine.
*/
public void setChangeMonth(boolean _changeMonth) {
getStateHelper().put(PropertyKeys.changeMonth, _changeMonth);
}
/**
* Boolean value to specify if year selector should be shown. <P>
* @return Returns the value of the attribute, or , false, if it hasn't been set by the JSF file.
*/
public boolean isChangeYear() {
return (boolean) (Boolean) getStateHelper().eval(PropertyKeys.changeYear, false);
}
/**
* Boolean value to specify if year selector should be shown. <P>
* Usually this method is called internally by the JSF engine.
*/
public void setChangeYear(boolean _changeYear) {
getStateHelper().put(PropertyKeys.changeYear, _changeYear);
}
/**
* 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);
}
/**
* 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);
}
/**
* Set the first day of the week: Sunday is 0, Monday is 1, etc. <P>
* @return Returns the value of the attribute, or 0, if it hasn't been set by the JSF file.
*/
public int getFirstDay() {
return (int) (Integer) getStateHelper().eval(PropertyKeys.firstDay, 0);
}
/**
* Set the first day of the week: Sunday is 0, Monday is 1, etc. <P>
* Usually this method is called internally by the JSF engine.
*/
public void setFirstDay(int _firstDay) {
getStateHelper().put(PropertyKeys.firstDay, _firstDay);
}
/**
* 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);
}
/**
* 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 getLabelColLg() {
return (String) getStateHelper().eval(PropertyKeys.labelColLg, "-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 setLabelColLg(String _labelColLg) {
getStateHelper().put(PropertyKeys.labelColLg, _labelColLg);
}
/**
* 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 getLabelColMd() {
return (String) getStateHelper().eval(PropertyKeys.labelColMd, "-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 setLabelColMd(String _labelColMd) {
getStateHelper().put(PropertyKeys.labelColMd, _labelColMd);
}
/**
* 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 getLabelColSm() {
return (String) getStateHelper().eval(PropertyKeys.labelColSm, "-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 setLabelColSm(String _labelColSm) {
getStateHelper().put(PropertyKeys.labelColSm, _labelColSm);
}
/**
* 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 getLabelColXs() {
return (String) getStateHelper().eval(PropertyKeys.labelColXs, "-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 setLabelColXs(String _labelColXs) {
getStateHelper().put(PropertyKeys.labelColXs, _labelColXs);
}
/**
* 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 getLabelLargeScreen() {
return (String) getStateHelper().eval(PropertyKeys.labelLargeScreen, "-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 setLabelLargeScreen(String _labelLargeScreen) {
getStateHelper().put(PropertyKeys.labelLargeScreen, _labelLargeScreen);
}
/**
* 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 getLabelMediumScreen() {
return (String) getStateHelper().eval(PropertyKeys.labelMediumScreen, "-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 setLabelMediumScreen(String _labelMediumScreen) {
getStateHelper().put(PropertyKeys.labelMediumScreen, _labelMediumScreen);
}
/**
* 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 getLabelSmallScreen() {
return (String) getStateHelper().eval(PropertyKeys.labelSmallScreen, "-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 setLabelSmallScreen(String _labelSmallScreen) {
getStateHelper().put(PropertyKeys.labelSmallScreen, _labelSmallScreen);
}
/**
* The CSS inline style of the label. <P>
* @return Returns the value of the attribute, or null, if it hasn't been set by the JSF file.
*/
public String getLabelStyle() {
return (String) getStateHelper().eval(PropertyKeys.labelStyle);
}
/**
* The CSS inline style of the label. <P>
* Usually this method is called internally by the JSF engine.
*/
public void setLabelStyle(String _labelStyle) {
getStateHelper().put(PropertyKeys.labelStyle, _labelStyle);
}
/**
* The CSS class of the label. <P>
* @return Returns the value of the attribute, or null, if it hasn't been set by the JSF file.
*/
public String getLabelStyleClass() {
return (String) getStateHelper().eval(PropertyKeys.labelStyleClass);
}
/**
* The CSS class of the label. <P>
* Usually this method is called internally by the JSF engine.
*/
public void setLabelStyleClass(String _labelStyleClass) {
getStateHelper().put(PropertyKeys.labelStyleClass, _labelStyleClass);
}
/**
* 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 getLabelTinyScreen() {
return (String) getStateHelper().eval(PropertyKeys.labelTinyScreen, "-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 setLabelTinyScreen(String _labelTinyScreen) {
getStateHelper().put(PropertyKeys.labelTinyScreen, _labelTinyScreen);
}
/**
* This option allows you to localize the DatePicker, specifying the language code (eg. it, fr, es, nl). The datepicker uses the ISO 639-1 language codes eventually followed by ISO 3166-1 country codes. The Datepicker is localized with the language specified by the ViewRoot Locale. <P>
* @return Returns the value of the attribute, or null, if it hasn't been set by the JSF file.
*/
public String getLang() {
return (String) getStateHelper().eval(PropertyKeys.lang);
}
/**
* This option allows you to localize the DatePicker, specifying the language code (eg. it, fr, es, nl). The datepicker uses the ISO 639-1 language codes eventually followed by ISO 3166-1 country codes. The Datepicker is localized with the language specified by the ViewRoot Locale. <P>
* Usually this method is called internally by the JSF engine.
*/
public void setLang(String _lang) {
getStateHelper().put(PropertyKeys.lang, _lang);
}
/**
* 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);
}
/**
* 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);
}
/**
* Controls how the Calendar is showed, can be inline, popup, popup-icon, icon-popup, toggle-icon, and icon-toggle. Default is toggle-icon. <P>
* @return Returns the value of the attribute, or null, if it hasn't been set by the JSF file.
*/
public String getMode() {
return (String) getStateHelper().eval(PropertyKeys.mode);
}
/**
* Controls how the Calendar is showed, can be inline, popup, popup-icon, icon-popup, toggle-icon, and icon-toggle. Default is toggle-icon. <P>
* Usually this method is called internally by the JSF engine.
*/
public void setMode(String _mode) {
getStateHelper().put(PropertyKeys.mode, _mode);
}
/**
* Number of months to show. <P>
* @return Returns the value of the attribute, or 0, if it hasn't been set by the JSF file.
*/
public int getNumberOfMonths() {
return (int) (Integer) getStateHelper().eval(PropertyKeys.numberOfMonths, 0);
}
/**
* Number of months to show. <P>
* Usually this method is called internally by the JSF engine.
*/
public void setNumberOfMonths(int _numberOfMonths) {
getStateHelper().put(PropertyKeys.numberOfMonths, _numberOfMonths);
}
/**
* 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 placeholder attribute shows text in a field until the field is focused upon, then hides the text. <P>
* @return Returns the value of the attribute, or null, if it hasn't been set by the JSF file.
*/
public String getPlaceholder() {
return (String) getStateHelper().eval(PropertyKeys.placeholder);
}
/**
* The placeholder attribute shows text in a field until the field is focused upon, then hides the text. <P>
* Usually this method is called internally by the JSF engine.
*/
public void setPlaceholder(String _placeholder) {
getStateHelper().put(PropertyKeys.placeholder, _placeholder);
}
/**
* Allows you to suppress automatic rendering of labels. Used internally by AngularFaces, too. <P>
* @return Returns the value of the attribute, or net.bootsfaces.component.ComponentUtils.isRenderLabelDefault(), if it hasn't been set by the JSF file.
*/
public boolean isRenderLabel() {
return (boolean) (Boolean) getStateHelper().eval(PropertyKeys.renderLabel,
net.bootsfaces.component.ComponentUtils.isRenderLabelDefault());
}
/**
* Allows you to suppress automatic rendering of labels. Used internally by AngularFaces, too. <P>
* Usually this method is called internally by the JSF engine.
*/
public void setRenderLabel(boolean _renderLabel) {
getStateHelper().put(PropertyKeys.renderLabel, _renderLabel);
}
/**
* Boolean value Require input in the component when the form is submitted. <P>
* @return Returns the value of the attribute, or , false, if it hasn't been set by the JSF file.
*/
public boolean isRequired() {
return (boolean) (Boolean) getStateHelper().eval(PropertyKeys.required, false);
}
/**
* Boolean value Require input in the component when the form is submitted. <P>
* Usually this method is called internally by the JSF engine.
*/
public void setRequired(boolean _required) {
getStateHelper().put(PropertyKeys.required, _required);
}
/**
* Message to show if the user did not specify a value and the attribute required is set to true. <P>
* @return Returns the value of the attribute, or null, if it hasn't been set by the JSF file.
*/
public String getRequiredMessage() {
return (String) getStateHelper().eval(PropertyKeys.requiredMessage);
}
/**
* Message to show if the user did not specify a value and the attribute required is set to true. <P>
* Usually this method is called internally by the JSF engine.
*/
public void setRequiredMessage(String _requiredMessage) {
getStateHelper().put(PropertyKeys.requiredMessage, _requiredMessage);
}
/**
* Boolean value to specify if row Buttons to the bottom of calendar should be shown. <P>
* @return Returns the value of the attribute, or , false, if it hasn't been set by the JSF file.
*/
public boolean isShowButtonPanel() {
return (boolean) (Boolean) getStateHelper().eval(PropertyKeys.showButtonPanel, false);
}
/**
* Boolean value to specify if row Buttons to the bottom of calendar should be shown. <P>
* Usually this method is called internally by the JSF engine.
*/
public void setShowButtonPanel(boolean _showButtonPanel) {
getStateHelper().put(PropertyKeys.showButtonPanel, _showButtonPanel);
}
/**
* Boolean value to specify if Week number should be shown. <P>
* @return Returns the value of the attribute, or , false, if it hasn't been set by the JSF file.
*/
public boolean isShowWeek() {
return (boolean) (Boolean) getStateHelper().eval(PropertyKeys.showWeek, false);
}
/**
* Boolean value to specify if Week number should be shown. <P>
* Usually this method is called internally by the JSF engine.
*/
public void setShowWeek(boolean _showWeek) {
getStateHelper().put(PropertyKeys.showWeek, _showWeek);
}
/**
* 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 input element. <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 input element. <P>
* Usually this method is called internally by the JSF engine.
*/
public void setStyle(String _style) {
getStateHelper().put(PropertyKeys.style, _style);
}
/**
* Style class of this 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 this element. <P>
* Usually this method is called internally by the JSF engine.
*/
public void setStyleClass(String _styleClass) {
getStateHelper().put(PropertyKeys.styleClass, _styleClass);
}
/**
* Position of this element in the tabbing order for the current document. This value must be an integer between 0 and 32767. <P>
* @return Returns the value of the attribute, or null, if it hasn't been set by the JSF file.
*/
public String getTabindex() {
return (String) getStateHelper().eval(PropertyKeys.tabindex);
}
/**
* Position of this element in the tabbing order for the current document. This value must be an integer between 0 and 32767. <P>
* Usually this method is called internally by the JSF engine.
*/
public void setTabindex(String _tabindex) {
getStateHelper().put(PropertyKeys.tabindex, _tabindex);
}
/**
* 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);
}
/**
* 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);
}
/**
* 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);
}
}