org.apache.myfaces.custom.date
Class HtmlInputDate

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by javax.faces.component.UIOutput
              extended by javax.faces.component.UIInput
                  extended by org.apache.myfaces.custom.date.HtmlInputDate
All Implemented Interfaces:
javax.faces.component.EditableValueHolder, javax.faces.component.StateHolder, javax.faces.component.ValueHolder, UserRoleAware

public class HtmlInputDate
extends javax.faces.component.UIInput
implements UserRoleAware

Version:
$Revision: 517689 $ $Date: 2007-03-13 14:26:15 +0100 (Di, 13 M??r 2007) $
Author:
Sylvain Vieujot (latest modification by $Author: cagatay $)

Nested Class Summary
static class HtmlInputDate.UserData
           
 
Field Summary
static java.lang.String COMPONENT_FAMILY
           
static java.lang.String COMPONENT_TYPE
           
 
Fields inherited from class javax.faces.component.UIInput
CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID
 
Fields inherited from interface org.apache.myfaces.component.UserRoleAware
ENABLED_ON_USER_ROLE_ATTR, VISIBLE_ON_USER_ROLE_ATTR
 
Constructor Summary
HtmlInputDate()
           
 
Method Summary
 java.lang.String getClientId(javax.faces.context.FacesContext context)
          Overriden to support the force id, since the parent is not an extended component
 java.lang.String getEmptyAmpmSelection()
           
 java.lang.String getEmptyMonthSelection()
           
 java.lang.String getEnabledOnUserRole()
           
 java.lang.String getTimeZone()
           
 java.lang.String getType()
           
 HtmlInputDate.UserData getUserData(java.util.Locale currentLocale)
           
 java.lang.String getVisibleOnUserRole()
           
 boolean isAmpm()
           
 boolean isDisabled()
           
 boolean isPopupCalendar()
           
 boolean isReadonly()
           
 boolean isRendered()
           
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext context)
           
 void setAmpm(boolean ampm)
           
 void setDisabled(boolean disabled)
           
 void setEmptyAmpmSelection(java.lang.String string)
           
 void setEmptyMonthSelection(java.lang.String string)
           
 void setEnabledOnUserRole(java.lang.String enabledOnUserRole)
           
 void setPopupCalendar(boolean popupCalendar)
           
 void setReadonly(boolean readonly)
           
 void setTimeZone(java.lang.String timeZone)
           
 void setType(java.lang.String string)
           
 void setVisibleOnUserRole(java.lang.String visibleOnUserRole)
           
 
Methods inherited from class javax.faces.component.UIInput
addValidator, addValueChangeListener, broadcast, compareValues, decode, getConvertedValue, getFamily, getSubmittedValue, getValidator, getValidators, getValueChangeListener, getValueChangeListeners, isImmediate, isLocalValueSet, isRequired, isValid, processDecodes, processUpdates, processValidators, removeValidator, removeValueChangeListener, setImmediate, setLocalValueSet, setRequired, setSubmittedValue, setValid, setValidator, setValue, setValueChangeListener, updateModel, validate, validateValue
 
Methods inherited from class javax.faces.component.UIOutput
getConverter, getLocalValue, getValue, setConverter
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isTransient, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.faces.component.ValueHolder
getConverter, getLocalValue, getValue, setConverter
 

Field Detail

COMPONENT_TYPE

public static final java.lang.String COMPONENT_TYPE
See Also:
Constant Field Values

COMPONENT_FAMILY

public static final java.lang.String COMPONENT_FAMILY
See Also:
Constant Field Values
Constructor Detail

HtmlInputDate

public HtmlInputDate()
Method Detail

getUserData

public HtmlInputDate.UserData getUserData(java.util.Locale currentLocale)

getClientId

public java.lang.String getClientId(javax.faces.context.FacesContext context)
Overriden to support the force id, since the parent is not an extended component

Overrides:
getClientId in class javax.faces.component.UIComponentBase

getType

public java.lang.String getType()

setType

public void setType(java.lang.String string)

isPopupCalendar

public boolean isPopupCalendar()

setPopupCalendar

public void setPopupCalendar(boolean popupCalendar)

isAmpm

public boolean isAmpm()

setAmpm

public void setAmpm(boolean ampm)

getTimeZone

public java.lang.String getTimeZone()

setTimeZone

public void setTimeZone(java.lang.String timeZone)

getEmptyMonthSelection

public java.lang.String getEmptyMonthSelection()

setEmptyMonthSelection

public void setEmptyMonthSelection(java.lang.String string)

getEmptyAmpmSelection

public java.lang.String getEmptyAmpmSelection()

setEmptyAmpmSelection

public void setEmptyAmpmSelection(java.lang.String string)

isReadonly

public boolean isReadonly()

setReadonly

public void setReadonly(boolean readonly)

setEnabledOnUserRole

public void setEnabledOnUserRole(java.lang.String enabledOnUserRole)
Specified by:
setEnabledOnUserRole in interface UserRoleAware

getEnabledOnUserRole

public java.lang.String getEnabledOnUserRole()
Specified by:
getEnabledOnUserRole in interface UserRoleAware

setVisibleOnUserRole

public void setVisibleOnUserRole(java.lang.String visibleOnUserRole)
Specified by:
setVisibleOnUserRole in interface UserRoleAware

getVisibleOnUserRole

public java.lang.String getVisibleOnUserRole()
Specified by:
getVisibleOnUserRole in interface UserRoleAware

isRendered

public boolean isRendered()
Overrides:
isRendered in class javax.faces.component.UIComponentBase

isDisabled

public boolean isDisabled()

setDisabled

public void setDisabled(boolean disabled)

saveState

public java.lang.Object saveState(javax.faces.context.FacesContext context)
Specified by:
saveState in interface javax.faces.component.StateHolder
Overrides:
saveState in class javax.faces.component.UIInput

restoreState

public void restoreState(javax.faces.context.FacesContext context,
                         java.lang.Object state)
Specified by:
restoreState in interface javax.faces.component.StateHolder
Overrides:
restoreState in class javax.faces.component.UIInput


Copyright © 2009. All Rights Reserved.