org.apache.myfaces.custom.schedule
Class AbstractUIScheduleBase

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by org.apache.myfaces.custom.schedule.AbstractUIScheduleBase
All Implemented Interfaces:
java.io.Serializable, java.util.EventListener, javax.faces.component.PartialStateHolder, javax.faces.component.StateHolder, javax.faces.component.ValueHolder, javax.faces.event.ComponentSystemEventListener, javax.faces.event.FacesListener, javax.faces.event.SystemEventListenerHolder
Direct Known Subclasses:
UIScheduleBase

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

Base class for the Schedule component. This class contains all the properties for the schedule, but not the ActionSource stuff. Keeping these things separate should make the code a little easier to digest.

Since:
1.1.7
Version:
$Revision: 691856 $
Author:
Jurgen Lust
See Also:
Serialized Form

Field Summary
static java.lang.String COMPONENT_FAMILY
           
static java.lang.String COMPONENT_TYPE
           
protected static int DEFAULT_COMPACT_MONTH_ROWHEIGHT
           
protected static int DEFAULT_COMPACT_WEEK_ROWHEIGHT
           
protected static int DEFAULT_DETAILED_ROWHEIGHT
           
protected static java.lang.String DEFAULT_ENABLED_ON_USER_ROLE
           
protected static boolean DEFAULT_EXPAND_TO_FIT
           
protected static java.lang.String DEFAULT_HEADER_DATE_FORMAT
           
protected static boolean DEFAULT_IMMEDIATE
           
protected static boolean DEFAULT_READONLY
           
protected static boolean DEFAULT_RENDER_ZEROLENGTH
           
protected static boolean DEFAULT_SPLIT_WEEKEND
           
protected static boolean DEFAULT_SUBMIT_ON_CLICK
           
protected static java.lang.String DEFAULT_THEME
           
protected static boolean DEFAULT_TOOLTIP
           
protected static int DEFAULT_VISIBLE_END_HOUR
           
protected static java.lang.String DEFAULT_VISIBLE_ON_USER_ROLE
           
protected static int DEFAULT_VISIBLE_START_HOUR
           
protected static int DEFAULT_WORKING_END_HOUR
           
protected static int DEFAULT_WORKING_START_HOUR
           
protected static java.lang.String HOUR_NOTATION_12
           
protected static java.lang.String HOUR_NOTATION_24
           
static java.lang.String RENDERER_TYPE
           
 
Fields inherited from class javax.faces.component.UIComponent
BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, VIEW_LOCATION_KEY
 
Constructor Summary
AbstractUIScheduleBase()
           
 
Method Summary
abstract  java.lang.String getCompactMonthDayOfWeekDateFormat()
           
abstract  int getCompactMonthRowHeight()
           
abstract  int getCompactWeekRowHeight()
           
abstract  javax.faces.convert.Converter getConverter()
           
abstract  int getDetailedRowHeight()
           
 java.lang.String getFamily()
           
abstract  java.lang.String getHeaderDateFormat()
           
abstract  java.lang.String getHourNotation()
           Show dates in 24 hour notation or 12 hour notation.
abstract  java.lang.Object getLocalValue()
           
 ScheduleModel getModel()
          The underlying model
abstract  java.lang.String getTheme()
           
abstract  java.lang.Object getValue()
           
abstract  int getVisibleEndHour()
           
abstract  int getVisibleStartHour()
           
abstract  int getWorkingEndHour()
           
abstract  int getWorkingStartHour()
           
abstract  boolean isExpandToFitEntries()
           
abstract  boolean isImmediate()
           
abstract  boolean isReadonly()
           
 boolean isRendersChildren()
           
abstract  boolean isRenderZeroLengthEntries()
           
abstract  boolean isSplitWeekend()
           
abstract  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.
abstract  boolean isTooltip()
           
 void setModel(ScheduleModel model)
          The underlying model
 
Methods inherited from class javax.faces.component.UIComponentBase
addClientBehavior, addFacesListener, broadcast, clearInitialState, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, initialStateMarked, invokeOnComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, visitTree
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getListenersForEventClass, getNamingContainer, getResourceBundleMap, getStateHelper, getStateHelper, getValueExpression, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, setInView, setValueExpression, subscribeToEvent, unsubscribeFromEvent
 
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
setConverter, setValue
 

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

RENDERER_TYPE

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

HOUR_NOTATION_24

protected static final java.lang.String HOUR_NOTATION_24
See Also:
Constant Field Values

HOUR_NOTATION_12

protected static final java.lang.String HOUR_NOTATION_12
See Also:
Constant Field Values

DEFAULT_COMPACT_MONTH_ROWHEIGHT

protected static final int DEFAULT_COMPACT_MONTH_ROWHEIGHT
See Also:
Constant Field Values

DEFAULT_COMPACT_WEEK_ROWHEIGHT

protected static final int DEFAULT_COMPACT_WEEK_ROWHEIGHT
See Also:
Constant Field Values

DEFAULT_DETAILED_ROWHEIGHT

protected static final int DEFAULT_DETAILED_ROWHEIGHT
See Also:
Constant Field Values

DEFAULT_EXPAND_TO_FIT

protected static final boolean DEFAULT_EXPAND_TO_FIT
See Also:
Constant Field Values

DEFAULT_HEADER_DATE_FORMAT

protected static final java.lang.String DEFAULT_HEADER_DATE_FORMAT

DEFAULT_IMMEDIATE

protected static final boolean DEFAULT_IMMEDIATE
See Also:
Constant Field Values

DEFAULT_READONLY

protected static final boolean DEFAULT_READONLY
See Also:
Constant Field Values

DEFAULT_RENDER_ZEROLENGTH

protected static final boolean DEFAULT_RENDER_ZEROLENGTH
See Also:
Constant Field Values

DEFAULT_THEME

protected static final java.lang.String DEFAULT_THEME
See Also:
Constant Field Values

DEFAULT_TOOLTIP

protected static final boolean DEFAULT_TOOLTIP
See Also:
Constant Field Values

DEFAULT_VISIBLE_END_HOUR

protected static final int DEFAULT_VISIBLE_END_HOUR
See Also:
Constant Field Values

DEFAULT_VISIBLE_START_HOUR

protected static final int DEFAULT_VISIBLE_START_HOUR
See Also:
Constant Field Values

DEFAULT_WORKING_END_HOUR

protected static final int DEFAULT_WORKING_END_HOUR
See Also:
Constant Field Values

DEFAULT_WORKING_START_HOUR

protected static final int DEFAULT_WORKING_START_HOUR
See Also:
Constant Field Values

DEFAULT_ENABLED_ON_USER_ROLE

protected static final java.lang.String DEFAULT_ENABLED_ON_USER_ROLE

DEFAULT_SUBMIT_ON_CLICK

protected static final boolean DEFAULT_SUBMIT_ON_CLICK
See Also:
Constant Field Values

DEFAULT_VISIBLE_ON_USER_ROLE

protected static final java.lang.String DEFAULT_VISIBLE_ON_USER_ROLE

DEFAULT_SPLIT_WEEKEND

protected static final boolean DEFAULT_SPLIT_WEEKEND
See Also:
Constant Field Values
Constructor Detail

AbstractUIScheduleBase

public AbstractUIScheduleBase()
Method Detail

isSplitWeekend

public abstract boolean isSplitWeekend()

isSubmitOnClick

public abstract 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.

Returns:
the _submitOnClick

getCompactMonthRowHeight

public abstract int getCompactMonthRowHeight()
Returns:
the compactMonthRowHeight

getCompactWeekRowHeight

public abstract int getCompactWeekRowHeight()
Returns:
the compactWeekRowHeight

getConverter

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

getDetailedRowHeight

public abstract int getDetailedRowHeight()
Returns:
the detailedRowHeight

isExpandToFitEntries

public abstract boolean isExpandToFitEntries()
Returns:
the expandToFitEntries

getFamily

public java.lang.String getFamily()
Specified by:
getFamily in class javax.faces.component.UIComponent
See Also:
UIComponent.getFamily()

getHeaderDateFormat

public abstract java.lang.String getHeaderDateFormat()
Returns:
the headerDateFormat

isImmediate

public abstract boolean isImmediate()
Returns:
the immediate

getLocalValue

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

getModel

public ScheduleModel getModel()
The underlying model

Returns:
Returns the model.

isReadonly

public abstract boolean isReadonly()
Returns:
the readonly

isRendersChildren

public boolean isRendersChildren()
See Also:
UIComponentBase.getRendersChildren()

isRenderZeroLengthEntries

public abstract boolean isRenderZeroLengthEntries()
Returns:
the renderZeroLengthEntries

getTheme

public abstract java.lang.String getTheme()
Returns:
the theme

isTooltip

public abstract boolean isTooltip()
Returns:
the tooltip

getValue

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

getVisibleEndHour

public abstract int getVisibleEndHour()
Returns:
the visibleEndHour

getVisibleStartHour

public abstract int getVisibleStartHour()
Returns:
the visibleStartHour

getWorkingEndHour

public abstract int getWorkingEndHour()
Returns:
the workingEndHour

getWorkingStartHour

public abstract int getWorkingStartHour()
Returns:
the workingStartHour

getHourNotation

public abstract java.lang.String getHourNotation()

Show dates in 24 hour notation or 12 hour notation.

Returns:
"12", "24" or null for the renderer default

getCompactMonthDayOfWeekDateFormat

public abstract java.lang.String getCompactMonthDayOfWeekDateFormat()
Returns:
the headerDateFormat

setModel

public void setModel(ScheduleModel model)
The underlying model

Parameters:
model - The model to set.


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