public class CalendarTable extends AsyncTable
Modifier and Type | Class and Description |
---|---|
class |
CalendarTable.CalendarContext |
DataTable.ExportActionEvent, DataTable.ExportActionListener
IExtendedTable.RowMovement
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_DISPLAY_UNITS |
static String |
FAMILY |
protected CalendarTable.CalendarContext |
m_calendarContext |
protected ICalendarEventProvider |
m_eventProvider |
static String |
TYPE |
static String |
UNIT_DAY |
static String |
UNIT_MONTH |
static String |
UNIT_WEEK |
static String |
UNIT_YEAR |
m_savedSuppressed, m_savedVisible
content, lazyRowIndex, NO_LAZY_INDEX, rowsToCreate, rowsToDelete, rowsToMove, rowsToUpdate, saved, skipRowIndexLookup, sortIds, sortKeys, templateRowId
COMPONENT_TYPE
COMPONENT_FAMILY
ATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, HONOR_CURRENT_COMPONENT_ATTRIBUTES_PARAM_NAME, VIEW_LOCATION_KEY
SEPARATOR_CHAR
Constructor and Description |
---|
CalendarTable() |
decode, encodeBegin, findSuppressed, getBufferChunk, getBufferMax, getBufferMin, getProgressDelay, getProgressMsg, getSuppressInputs, isAncestorOrSelf, isAsync, isClientSideCache, isFlashOnChange, setBufferChunk, setBufferMax, setBufferMin, setClientSideCache, setFlashOnChange, setProgressDelay, setProgressMsg, setSuppressInputs
broadcast, clearDescendantState, convertCreatedToOriginalRowIds, convertOriginalToCreatedRowIds, filter, fromClientRowId, getCanTemplateRow, getClientId, getContentProvider, getExportSettings, getFilter, getFirst, getRowCount, getRowData, getRowId, getRowIndex, getRowsToCreate, getRowsToDelete, getRowsToMove, getRowsToUpdate, getSortInfo, getTableRowState, isNestedWithinUIData, isRowAvailable, isTemplateRow, iterate, keepSaved, populateInitialComponents, prepareForEncode, processColumnChild, processDecodes, processUpdates, processValidators, queueEvent, resetContent, resetRowCaches, restoreDescendantState, restoreDescendantState, restoreState, saveDescendantState, saveDescendantState, setFilter, setFirst, setLazyRowIndex, setRowById, setRows, setRowsToCreate, setRowsToDelete, setRowsToMove, setRowsToUpdate, setTableRowState, setTemplateRow, setTemplateRowId, setValue, setValueBinding, setValueExpression, sort, toClientRowId, updateRowsToCreate
getBgcolor, getBodyrows, getBorder, getCaptionClass, getCaptionStyle, getCellpadding, getCellspacing, getColumnClasses, getDefaultEventName, getDir, getEventNames, getFooterClass, getFrame, getHeaderClass, getLang, getOnclick, getOndblclick, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getRole, getRowClasses, getRules, getStyle, getStyleClass, getSummary, getTitle, getWidth, setBgcolor, setBodyrows, setBorder, setCaptionClass, setCaptionStyle, setCellpadding, setCellspacing, setColumnClasses, setDir, setFooterClass, setFrame, setHeaderClass, setLang, setOnclick, setOndblclick, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setRole, setRowClasses, setRules, setStyle, setStyleClass, setSummary, setTitle, setWidth
createUniqueId, getDataModel, getFooter, getHeader, getValue, getVar, invokeOnComponent, isRowStatePreserved, markInitialState, saveState, setDataModel, setFooter, setHeader, setRowStatePreserved, setVar, visitTree
addClientBehavior, addFacesListener, clearInitialState, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processRestoreState, processSaveState, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, subscribeToEvent, unsubscribeFromEvent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addClientBehavior, getClientBehaviors
public static final String TYPE
public static final String FAMILY
public static final String DEFAULT_DISPLAY_UNITS
public static final String UNIT_DAY
public static final String UNIT_WEEK
public static final String UNIT_MONTH
public static final String UNIT_YEAR
protected transient CalendarTable.CalendarContext m_calendarContext
protected transient ICalendarEventProvider m_eventProvider
public Date getCalendarStartDate()
public void setCalendarStartDate(Date startDate)
public Date getCalendarEndDate()
public void setCalendarEndDate(Date endDate)
public Boolean getAllDay()
public void setAllDay(Boolean allDay)
public String getDisplayUnits()
public void setDisplayUnits(String units)
public Date getInitialDate()
public void setInitialDate(Date initialDate)
protected void clearContent()
DataTable
clearContent
in class DataTable
protected ICalendarProvider getCalendarProvider()
public ITableContentProvider getContentProvider()
DataTable
getContentProvider
in interface IExtendedTable
getContentProvider
in class DataTable
public Object getEvents()
public void setEvents(Object events)
public ICalendarEventProvider getCalendarEventProvider()
public List<ICalendarEvent> getEventsInRange(Date startDate, Date endDate)
public int getRows()
DataTable
Return the number of rows to be displayed, or zero for all remaining rows in the table. The default value of this property is zero.
public void setRowIndex(int rowIndex)
DataTable
Set the zero relative index of the current row, or -1 to indicate that no
row is currently selected, by implementing the following algorithm. It is
possible to set the row index at a value for which the underlying data
collection does not contain any row data. Therefore, callers may use the
isRowAvailable()
method to detect whether row data will be
available for use by the getRowData()
method.
DataModel
associated with this UIData
instance.rowIndex
value is -1:
var
property is not null, remove the
corresponding request scope attribute (if any).rowIndex
value is not -1:
var
property is not null, call
getRowData()
and expose the resulting data object as a
request scope attribute whose key is the var
property
value.
To save current state information for all descendant components,
UIData
must maintain per-row information for each descendant as
follows:
EditableValueHolder
,
save the state of its localValue
property.EditableValueHolder
,
save the state of the localValueSet
property.EditableValueHolder
,
save the state of the valid
property.EditableValueHolder
,
save the state of the submittedValue
property.
To restore current state information for all descendant components,
UIData
must reference its previously stored information for the
current rowIndex
and call setters for each descendant as
follows:
EditableValueHolder
,
restore the value
property.EditableValueHolder
,
restore the state of the localValueSet
property.EditableValueHolder
,
restore the state of the valid
property.EditableValueHolder
,
restore the state of the submittedValue
property.setRowIndex
in class DataTable
rowIndex
- The new row index value, or -1 for no associated rowpublic void setDayIndex(int dayIndex)
public void setCurrentEvent(ICalendarEvent event)
public ICalendarDay getDay()
public Object getCurrentRow()
public CalendarUnit getCurrentUnit()
public int getEventCount()
public Date getUnitStartDate()
public Date getUnitEndDate()
public boolean isDayAvailable()
public CalendarTable.CalendarContext getCalendarContext()
public String getDayVar()
public void setDayVar(String dayVar)
public String getEventVar()
public void setEventVar(String eventVar)