org.apache.myfaces.custom.date.HtmlInputDate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tomahawk Show documentation
Show all versions of tomahawk Show documentation
JSF components and utilities that can be used with any JSF implementation.
This library is compatible with both JSF1.1 and JSF1.2; however for JSF1.2 users there
is an alternative build of Tomahawk available that takes advantage of JSF1.2 features to
offer some additional benefits.
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 org.apache.myfaces.custom.date;
import javax.faces.component.UIComponent;
import javax.faces.el.ValueBinding;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import javax.faces.el.MethodBinding;
// Generated from class org.apache.myfaces.custom.date.AbstractHtmlInputDate.
//
// WARNING: This file was automatically generated. Do not edit it directly,
// or you will lose your changes.
public class HtmlInputDate extends org.apache.myfaces.custom.date.AbstractHtmlInputDate
{
static public final String COMPONENT_FAMILY =
"javax.faces.Input";
static public final String COMPONENT_TYPE =
"org.apache.myfaces.HtmlInputDate";
static public final String DEFAULT_RENDERER_TYPE =
"org.apache.myfaces.Date";
public HtmlInputDate()
{
setRendererType("org.apache.myfaces.Date");
}
public String getFamily()
{
return COMPONENT_FAMILY;
}
// Property: timeZone
private String _timeZone;
public String getTimeZone()
{
if (_timeZone != null)
{
return _timeZone;
}
ValueBinding vb = getValueBinding("timeZone");
if (vb != null)
{
return (String) vb.getValue(getFacesContext()).toString();
}
return null;
}
public void setTimeZone(String timeZone)
{
this._timeZone = timeZone;
}
// Property: type
private String _type;
public String getType()
{
if (_type != null)
{
return _type;
}
ValueBinding vb = getValueBinding("type");
if (vb != null)
{
return (String) vb.getValue(getFacesContext()).toString();
}
return "date";
}
public void setType(String type)
{
this._type = type;
}
// Property: ampm
private boolean _ampm;
private boolean _ampmSet;
public boolean isAmpm()
{
if (_ampmSet)
{
return _ampm;
}
ValueBinding vb = getValueBinding("ampm");
if (vb != null)
{
return ((Boolean) vb.getValue(getFacesContext())).booleanValue();
}
return false;
}
public void setAmpm(boolean ampm)
{
this._ampm = ampm;
this._ampmSet = true;
}
// Property: popupCalendar
private boolean _popupCalendar;
private boolean _popupCalendarSet;
public boolean isPopupCalendar()
{
if (_popupCalendarSet)
{
return _popupCalendar;
}
ValueBinding vb = getValueBinding("popupCalendar");
if (vb != null)
{
return ((Boolean) vb.getValue(getFacesContext())).booleanValue();
}
return false;
}
public void setPopupCalendar(boolean popupCalendar)
{
this._popupCalendar = popupCalendar;
this._popupCalendarSet = true;
}
// Property: emptyMonthSelection
private String _emptyMonthSelection;
public String getEmptyMonthSelection()
{
if (_emptyMonthSelection != null)
{
return _emptyMonthSelection;
}
ValueBinding vb = getValueBinding("emptyMonthSelection");
if (vb != null)
{
return (String) vb.getValue(getFacesContext()).toString();
}
return "";
}
public void setEmptyMonthSelection(String emptyMonthSelection)
{
this._emptyMonthSelection = emptyMonthSelection;
}
// Property: emptyAmpmSelection
private String _emptyAmpmSelection;
public String getEmptyAmpmSelection()
{
if (_emptyAmpmSelection != null)
{
return _emptyAmpmSelection;
}
ValueBinding vb = getValueBinding("emptyAmpmSelection");
if (vb != null)
{
return (String) vb.getValue(getFacesContext()).toString();
}
return "";
}
public void setEmptyAmpmSelection(String emptyAmpmSelection)
{
this._emptyAmpmSelection = emptyAmpmSelection;
}
// Property: readonly
private boolean _readonly;
private boolean _readonlySet;
public boolean isReadonly()
{
if (_readonlySet)
{
return _readonly;
}
ValueBinding vb = getValueBinding("readonly");
if (vb != null)
{
return ((Boolean) vb.getValue(getFacesContext())).booleanValue();
}
return false;
}
public void setReadonly(boolean readonly)
{
this._readonly = readonly;
this._readonlySet = true;
}
// Property: disabled
private boolean _disabled;
private boolean _disabledSet;
public boolean isDisabled()
{
if (_disabledSet)
{
return _disabled;
}
ValueBinding vb = getValueBinding("disabled");
if (vb != null)
{
return ((Boolean) vb.getValue(getFacesContext())).booleanValue();
}
return false;
}
public void setDisabled(boolean disabled)
{
this._disabled = disabled;
this._disabledSet = true;
}
// Property: align
private String _align;
public String getAlign()
{
if (_align != null)
{
return _align;
}
ValueBinding vb = getValueBinding("align");
if (vb != null)
{
return (String) vb.getValue(getFacesContext()).toString();
}
return null;
}
public void setAlign(String align)
{
this._align = align;
}
// Property: enabledOnUserRole
private String _enabledOnUserRole;
public String getEnabledOnUserRole()
{
if (_enabledOnUserRole != null)
{
return _enabledOnUserRole;
}
ValueBinding vb = getValueBinding("enabledOnUserRole");
if (vb != null)
{
return (String) vb.getValue(getFacesContext()).toString();
}
return null;
}
public void setEnabledOnUserRole(String enabledOnUserRole)
{
this._enabledOnUserRole = enabledOnUserRole;
}
// Property: visibleOnUserRole
private String _visibleOnUserRole;
public String getVisibleOnUserRole()
{
if (_visibleOnUserRole != null)
{
return _visibleOnUserRole;
}
ValueBinding vb = getValueBinding("visibleOnUserRole");
if (vb != null)
{
return (String) vb.getValue(getFacesContext()).toString();
}
return null;
}
public void setVisibleOnUserRole(String visibleOnUserRole)
{
this._visibleOnUserRole = visibleOnUserRole;
}
// Property: forceId
private boolean _forceId = false;
public boolean isForceId()
{
return _forceId;
}
public void setForceId(boolean forceId)
{
this._forceId = forceId;
}
// Property: forceIdIndex
private boolean _forceIdIndex = true;
public boolean isForceIdIndex()
{
return _forceIdIndex;
}
public void setForceIdIndex(boolean forceIdIndex)
{
this._forceIdIndex = forceIdIndex;
}
public Object saveState(FacesContext facesContext)
{
Object[] values = new Object[18];
values[0] = super.saveState(facesContext);
values[1] = _timeZone;
values[2] = _type;
values[3] = Boolean.valueOf(_ampm);
values[4] = Boolean.valueOf(_ampmSet);
values[5] = Boolean.valueOf(_popupCalendar);
values[6] = Boolean.valueOf(_popupCalendarSet);
values[7] = _emptyMonthSelection;
values[8] = _emptyAmpmSelection;
values[9] = Boolean.valueOf(_readonly);
values[10] = Boolean.valueOf(_readonlySet);
values[11] = Boolean.valueOf(_disabled);
values[12] = Boolean.valueOf(_disabledSet);
values[13] = _align;
values[14] = _enabledOnUserRole;
values[15] = _visibleOnUserRole;
values[16] = Boolean.valueOf(_forceId);
values[17] = Boolean.valueOf(_forceIdIndex);
return values;
}
public void restoreState(FacesContext facesContext, Object state)
{
Object[] values = (Object[])state;
super.restoreState(facesContext,values[0]);
_timeZone = (java.lang.String) values[1];
_type = (java.lang.String) values[2];
_ampm = ((Boolean) values[3]).booleanValue();
_ampmSet = ((Boolean) values[4]).booleanValue();
_popupCalendar = ((Boolean) values[5]).booleanValue();
_popupCalendarSet = ((Boolean) values[6]).booleanValue();
_emptyMonthSelection = (java.lang.String) values[7];
_emptyAmpmSelection = (java.lang.String) values[8];
_readonly = ((Boolean) values[9]).booleanValue();
_readonlySet = ((Boolean) values[10]).booleanValue();
_disabled = ((Boolean) values[11]).booleanValue();
_disabledSet = ((Boolean) values[12]).booleanValue();
_align = (java.lang.String) values[13];
_enabledOnUserRole = (java.lang.String) values[14];
_visibleOnUserRole = (java.lang.String) values[15];
_forceId = ((Boolean) values[16]).booleanValue();
_forceIdIndex = ((Boolean) values[17]).booleanValue();
}
}