org.apache.myfaces.custom.schedule
Class UIScheduleBase

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by org.apache.myfaces.custom.schedule.AbstractUIScheduleBase
              extended by org.apache.myfaces.custom.schedule.UIScheduleBase
All Implemented Interfaces:
java.io.Serializable, javax.faces.component.StateHolder, javax.faces.component.ValueHolder
Direct Known Subclasses:
UISchedule

public class UIScheduleBase
extends AbstractUIScheduleBase
implements java.io.Serializable, javax.faces.component.ValueHolder

See Also:
Serialized Form

Field Summary
static java.lang.String COMPONENT_FAMILY
           
static java.lang.String COMPONENT_TYPE
           
 
Fields inherited from class org.apache.myfaces.custom.schedule.AbstractUIScheduleBase
DEFAULT_COMPACT_MONTH_ROWHEIGHT, DEFAULT_COMPACT_WEEK_ROWHEIGHT, DEFAULT_DETAILED_ROWHEIGHT, DEFAULT_ENABLED_ON_USER_ROLE, DEFAULT_EXPAND_TO_FIT, DEFAULT_HEADER_DATE_FORMAT, DEFAULT_IMMEDIATE, DEFAULT_READONLY, DEFAULT_RENDER_ZEROLENGTH, DEFAULT_SPLIT_WEEKEND, DEFAULT_SUBMIT_ON_CLICK, DEFAULT_THEME, DEFAULT_TOOLTIP, DEFAULT_VISIBLE_END_HOUR, DEFAULT_VISIBLE_ON_USER_ROLE, DEFAULT_VISIBLE_START_HOUR, DEFAULT_WORKING_END_HOUR, DEFAULT_WORKING_START_HOUR, HOUR_NOTATION_12, HOUR_NOTATION_24, RENDERER_TYPE
 
Fields inherited from class javax.faces.component.UIComponent
bindings
 
Constructor Summary
UIScheduleBase()
           
 
Method Summary
 java.lang.String getCompactMonthDayOfWeekDateFormat()
           
 int getCompactMonthRowHeight()
           
 int getCompactWeekRowHeight()
           
 javax.faces.convert.Converter getConverter()
           
 int getDetailedRowHeight()
           
 java.lang.String getFamily()
           
 java.lang.String getHeaderDateFormat()
           
 java.lang.String getHourNotation()
           Show dates in 24 hour notation or 12 hour notation.
 java.lang.Object getLocalValue()
           
 java.lang.String getTheme()
           
 java.lang.Object getValue()
           
 int getVisibleEndHour()
           
 int getVisibleStartHour()
           
 int getWorkingEndHour()
           
 int getWorkingStartHour()
           
 boolean isExpandToFitEntries()
           
 boolean isImmediate()
           
 boolean isReadonly()
           
 boolean isRenderZeroLengthEntries()
           
 boolean isSplitWeekend()
           
 boolean isSubmitOnClick()
          Should the parent form of this schedule be submitted when the user clicks on a day? Note that this will only work when the readonly property is set to false.
 boolean isTooltip()
           
 void restoreState(javax.faces.context.FacesContext facesContext, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext facesContext)
           
 void setCompactMonthDayOfWeekDateFormat(java.lang.String compactMonthDayOfWeekDateFormat)
           
 void setCompactMonthRowHeight(int compactMonthRowHeight)
           
 void setCompactWeekRowHeight(int compactWeekRowHeight)
           
 void setConverter(javax.faces.convert.Converter converter)
           
 void setDetailedRowHeight(int detailedRowHeight)
           
 void setExpandToFitEntries(boolean expandToFitEntries)
           
 void setHeaderDateFormat(java.lang.String headerDateFormat)
           
 void setHourNotation(java.lang.String hourNotation)
           
 void setImmediate(boolean immediate)
           
 void setReadonly(boolean readonly)
           
 void setRenderZeroLengthEntries(boolean renderZeroLengthEntries)
           
 void setSplitWeekend(boolean splitWeekend)
           
 void setSubmitOnClick(boolean submitOnClick)
           
 void setTheme(java.lang.String theme)
           
 void setTooltip(boolean tooltip)
           
 void setValue(java.lang.Object value)
           
 void setVisibleEndHour(int visibleEndHour)
           
 void setVisibleStartHour(int visibleStartHour)
           
 void setWorkingEndHour(int workingEndHour)
           
 void setWorkingStartHour(int workingStartHour)
           
 
Methods inherited from class org.apache.myfaces.custom.schedule.AbstractUIScheduleBase
getModel, isRendersChildren, setModel
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getContainerClientId, getValueExpression, setValueExpression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPONENT_FAMILY

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

COMPONENT_TYPE

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

UIScheduleBase

public UIScheduleBase()
Method Detail

getFamily

public java.lang.String getFamily()
Overrides:
getFamily in class AbstractUIScheduleBase
See Also:
UIComponent.getFamily()

isSplitWeekend

public boolean isSplitWeekend()
Specified by:
isSplitWeekend in class AbstractUIScheduleBase

setSplitWeekend

public void setSplitWeekend(boolean splitWeekend)

isSubmitOnClick

public boolean isSubmitOnClick()
Description copied from class: AbstractUIScheduleBase
Should the parent form of this schedule be submitted when the user clicks on a day? Note that this will only work when the readonly property is set to false.

Specified by:
isSubmitOnClick in class AbstractUIScheduleBase
Returns:
the _submitOnClick

setSubmitOnClick

public void setSubmitOnClick(boolean submitOnClick)

getCompactMonthRowHeight

public int getCompactMonthRowHeight()
Specified by:
getCompactMonthRowHeight in class AbstractUIScheduleBase
Returns:
the compactMonthRowHeight

setCompactMonthRowHeight

public void setCompactMonthRowHeight(int compactMonthRowHeight)

getCompactWeekRowHeight

public int getCompactWeekRowHeight()
Specified by:
getCompactWeekRowHeight in class AbstractUIScheduleBase
Returns:
the compactWeekRowHeight

setCompactWeekRowHeight

public void setCompactWeekRowHeight(int compactWeekRowHeight)

getConverter

public javax.faces.convert.Converter getConverter()
Specified by:
getConverter in interface javax.faces.component.ValueHolder
Specified by:
getConverter in class AbstractUIScheduleBase
See Also:
ValueHolder.getConverter()

setConverter

public void setConverter(javax.faces.convert.Converter converter)
Specified by:
setConverter in interface javax.faces.component.ValueHolder

getDetailedRowHeight

public int getDetailedRowHeight()
Specified by:
getDetailedRowHeight in class AbstractUIScheduleBase
Returns:
the detailedRowHeight

setDetailedRowHeight

public void setDetailedRowHeight(int detailedRowHeight)

isExpandToFitEntries

public boolean isExpandToFitEntries()
Specified by:
isExpandToFitEntries in class AbstractUIScheduleBase
Returns:
the expandToFitEntries

setExpandToFitEntries

public void setExpandToFitEntries(boolean expandToFitEntries)

getHeaderDateFormat

public java.lang.String getHeaderDateFormat()
Specified by:
getHeaderDateFormat in class AbstractUIScheduleBase
Returns:
the headerDateFormat

setHeaderDateFormat

public void setHeaderDateFormat(java.lang.String headerDateFormat)

isImmediate

public boolean isImmediate()
Specified by:
isImmediate in class AbstractUIScheduleBase
Returns:
the immediate

setImmediate

public void setImmediate(boolean immediate)

isReadonly

public boolean isReadonly()
Specified by:
isReadonly in class AbstractUIScheduleBase
Returns:
the readonly

setReadonly

public void setReadonly(boolean readonly)

isRenderZeroLengthEntries

public boolean isRenderZeroLengthEntries()
Specified by:
isRenderZeroLengthEntries in class AbstractUIScheduleBase
Returns:
the renderZeroLengthEntries

setRenderZeroLengthEntries

public void setRenderZeroLengthEntries(boolean renderZeroLengthEntries)

getTheme

public java.lang.String getTheme()
Specified by:
getTheme in class AbstractUIScheduleBase
Returns:
the theme

setTheme

public void setTheme(java.lang.String theme)

isTooltip

public boolean isTooltip()
Specified by:
isTooltip in class AbstractUIScheduleBase
Returns:
the tooltip

setTooltip

public void setTooltip(boolean tooltip)

getLocalValue

public final java.lang.Object getLocalValue()
Specified by:
getLocalValue in interface javax.faces.component.ValueHolder
Specified by:
getLocalValue in class AbstractUIScheduleBase
See Also:
ValueHolder.getLocalValue()

getValue

public java.lang.Object getValue()
Specified by:
getValue in interface javax.faces.component.ValueHolder
Specified by:
getValue in class AbstractUIScheduleBase
See Also:
ValueHolder.getValue()

setValue

public void setValue(java.lang.Object value)
Specified by:
setValue in interface javax.faces.component.ValueHolder

getVisibleEndHour

public int getVisibleEndHour()
Specified by:
getVisibleEndHour in class AbstractUIScheduleBase
Returns:
the visibleEndHour

setVisibleEndHour

public void setVisibleEndHour(int visibleEndHour)

getVisibleStartHour

public int getVisibleStartHour()
Specified by:
getVisibleStartHour in class AbstractUIScheduleBase
Returns:
the visibleStartHour

setVisibleStartHour

public void setVisibleStartHour(int visibleStartHour)

getWorkingEndHour

public int getWorkingEndHour()
Specified by:
getWorkingEndHour in class AbstractUIScheduleBase
Returns:
the workingEndHour

setWorkingEndHour

public void setWorkingEndHour(int workingEndHour)

getWorkingStartHour

public int getWorkingStartHour()
Specified by:
getWorkingStartHour in class AbstractUIScheduleBase
Returns:
the workingStartHour

setWorkingStartHour

public void setWorkingStartHour(int workingStartHour)

getHourNotation

public java.lang.String getHourNotation()
Description copied from class: AbstractUIScheduleBase

Show dates in 24 hour notation or 12 hour notation.

Specified by:
getHourNotation in class AbstractUIScheduleBase
Returns:
"12", "24" or null for the renderer default

setHourNotation

public void setHourNotation(java.lang.String hourNotation)

getCompactMonthDayOfWeekDateFormat

public java.lang.String getCompactMonthDayOfWeekDateFormat()
Specified by:
getCompactMonthDayOfWeekDateFormat in class AbstractUIScheduleBase
Returns:
the headerDateFormat

setCompactMonthDayOfWeekDateFormat

public void setCompactMonthDayOfWeekDateFormat(java.lang.String compactMonthDayOfWeekDateFormat)

saveState

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

restoreState

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


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.