|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.globalmentor.beans.BoundPropertyObject
com.guiseframework.event.GuiseBoundPropertyObject
com.guiseframework.model.ui.AbstractPresentationModel
com.guiseframework.component.AbstractComponent
com.guiseframework.component.AbstractCompositeComponent
com.guiseframework.component.AbstractMultipleCompositeComponent
com.guiseframework.component.AbstractListCompositeComponent
com.guiseframework.component.AbstractLayoutComponent
com.guiseframework.component.AbstractLayoutControl
com.guiseframework.component.AbstractLayoutValueControl<java.util.Date>
com.guiseframework.component.CalendarControl
public class CalendarControl
Control that allows selection of a date.
If the model used by the calendar control uses a RangeValidator with a date range of less than 100 years, a drop-down list will be used for the year control.
Otherwise, a text input will be used for year selection.
| Nested Class Summary | |
|---|---|
protected class |
CalendarControl.DayRepresentationStrategy
A cell representation strategy for calendar days. |
| Nested classes/interfaces inherited from class com.guiseframework.component.AbstractComponent |
|---|
AbstractComponent.AbstractFlyoverFrameStrategy<S extends Component>, AbstractComponent.AbstractFlyoverStrategy<S extends Component>, AbstractComponent.DefaultFlyoverStrategy<S extends Component> |
| Nested classes/interfaces inherited from interface com.guiseframework.component.Control |
|---|
Control.Status |
| Nested classes/interfaces inherited from interface com.guiseframework.component.Component |
|---|
Component.FlyoverStrategy<S extends Component> |
| Field Summary | |
|---|---|
static java.lang.String |
DATE_PROPERTY
The visible date bound property. |
protected com.globalmentor.beans.GenericPropertyChangeListener<java.lang.Integer> |
yearPropertyChangeListener
The property change listener that updates the visible dates if the year is different than the last one. |
| Fields inherited from class com.globalmentor.beans.BoundPropertyObject |
|---|
NO_PROPERTY_CHANGE_LISTENERS, NO_VETOABLE_CHANGE_LISTENERS |
| Fields inherited from interface com.guiseframework.component.ValueControl |
|---|
CONVERTER_PROPERTY |
| Fields inherited from interface com.guiseframework.component.Control |
|---|
STATUS_PROPERTY |
| Fields inherited from interface com.guiseframework.component.Component |
|---|
BOOKMARK_ENABLED_PROPERTY, CONSTRAINTS_PROPERTY, DRAG_ENABLED_PROPERTY, DROP_ENABLED_PROPERTY, FLYOVER_ENABLED_PROPERTY, FLYOVER_STRATEGY_PROPERTY, INPUT_STRATEGY_PROPERTY, NAME_PROPERTY, NOTIFICATION_PROPERTY, ORIENTATION_PROPERTY, THEME_APPLIED_PROPERTY, VALID_PROPERTY |
| Fields inherited from interface com.guiseframework.model.Displayable |
|---|
DISPLAYED_PROPERTY |
| Fields inherited from interface com.guiseframework.model.InfoModel |
|---|
DESCRIPTION_CONTENT_TYPE_PROPERTY, DESCRIPTION_PROPERTY, INFO_CONTENT_TYPE_PROPERTY, INFO_PROPERTY |
| Fields inherited from interface com.guiseframework.model.LabelModel |
|---|
GLYPH_URI_PROPERTY, LABEL_CONTENT_TYPE_PROPERTY, LABEL_PROPERTY |
| Fields inherited from interface com.guiseframework.model.Model |
|---|
PLAIN_TEXT_CONTENT_TYPE, XHTML_CONTENT_TYPE, XHTML_FRAGMENT_CONTENT_TYPE |
| Fields inherited from interface com.guiseframework.model.Enableable |
|---|
ENABLED_PROPERTY |
| Fields inherited from interface com.guiseframework.model.ValueModel |
|---|
VALIDATOR_PROPERTY, VALUE_PROPERTY |
| Fields inherited from interface com.guiseframework.component.LayoutComponent |
|---|
LAYOUT_PROPERTY, LAYOUT_THEME_APPLIED_PROPERTY |
| Constructor Summary | |
|---|---|
CalendarControl()
Default constructor with a default data model. |
|
CalendarControl(ValueModel<java.util.Date> valueModel)
Value model constructor. |
|
| Method Summary | |
|---|---|
protected Table.CellRepresentationStrategy<java.util.Date> |
createDayRepresentationStrategy()
Creates a representation strategy for each cell in a calendar. |
Container |
getCalendarContainer()
The container containing the calendars. |
protected java.util.Iterator<Table> |
getCalendarTables()
|
Container |
getControlContainer()
The container containing the controls. |
java.util.Date |
getDate()
|
protected ListControl<java.util.Date> |
getMonthListControl()
|
protected ValueControl<java.lang.Integer> |
getYearControl()
|
void |
setDate(java.util.Date newDate)
Sets the date being viewed. |
protected void |
updateDateControls()
Updates the controls representing the date. |
protected void |
updateYearControl()
Updates the year control by removing any old year control from the component and adding a new year control. |
| Methods inherited from class com.guiseframework.component.AbstractLayoutValueControl |
|---|
clearValue, determineValid, firePropertyChange, getDefaultValue, getValidator, getValue, getValueClass, getValueModel, isValidValue, resetValue, setValidator, setValue, validate, validateValue |
| Methods inherited from class com.guiseframework.component.AbstractLayoutControl |
|---|
determineStatus, enabledPropertyChange, getEnableable, getStatus, isEnabled, reset, setEnabled, setNotification, setStatus, updateStatus, updateValid |
| Methods inherited from class com.guiseframework.component.AbstractLayoutComponent |
|---|
addComponent, applyTheme, applyTheme, getLayout, isLayoutThemeApplied, removeComponent, resetTheme, setLayout, setLayoutThemeApplied, updateTheme |
| Methods inherited from class com.guiseframework.component.AbstractListCompositeComponent |
|---|
addComponent, contains, get, getChildComponents, getComponentList, hasChildComponents, indexOf, isEmpty, lastIndexOf, size |
| Methods inherited from class com.guiseframework.event.GuiseBoundPropertyObject |
|---|
getSession |
| Methods inherited from class com.globalmentor.beans.BoundPropertyObject |
|---|
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, createPostponedPropertyChangeEvent, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getForwardPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, getPropertyChangeSupport, getRepeatPropertyChangeListener, getRepeatVetoableChangeListener, getVetoableChangeListeners, getVetoableChangeListeners, getVetoableChangeSupport, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.guiseframework.component.Control |
|---|
getStatus, reset |
| Methods inherited from interface com.guiseframework.platform.DepictedObject |
|---|
depict, getDepictID, getSession, processEvent |
| Methods inherited from interface com.guiseframework.model.InfoModel |
|---|
getDescription, getDescriptionContentType, getInfo, getInfoContentType, setDescription, setDescriptionContentType, setInfo, setInfoContentType |
| Methods inherited from interface com.guiseframework.model.LabelModel |
|---|
getGlyphURI, getLabel, getLabelContentType, setGlyphURI, setLabel, setLabelContentType |
| Methods inherited from interface com.globalmentor.beans.PropertyBindable |
|---|
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, hasPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener |
| Methods inherited from interface com.globalmentor.beans.PropertyConstrainable |
|---|
addVetoableChangeListener, addVetoableChangeListener, getVetoableChangeListeners, getVetoableChangeListeners, hasVetoableChangeListeners, removeVetoableChangeListener, removeVetoableChangeListener |
| Methods inherited from interface com.guiseframework.model.Enableable |
|---|
isEnabled, setEnabled |
| Methods inherited from interface com.guiseframework.component.LayoutComponent |
|---|
getLayout, isLayoutThemeApplied, setLayoutThemeApplied |
| Methods inherited from interface com.guiseframework.component.CompositeComponent |
|---|
addCompositeComponentListener, getChildComponents, hasChildComponents, removeCompositeComponentListener |
| Field Detail |
|---|
public static final java.lang.String DATE_PROPERTY
protected final com.globalmentor.beans.GenericPropertyChangeListener<java.lang.Integer> yearPropertyChangeListener
| Constructor Detail |
|---|
public CalendarControl()
public CalendarControl(ValueModel<java.util.Date> valueModel)
valueModel - The component value model.
java.lang.NullPointerException - if the given value model is null.| Method Detail |
|---|
public Container getControlContainer()
public Container getCalendarContainer()
protected ListControl<java.util.Date> getMonthListControl()
protected ValueControl<java.lang.Integer> getYearControl()
protected java.util.Iterator<Table> getCalendarTables()
public java.util.Date getDate()
public void setDate(java.util.Date newDate)
newDate - The date to be viewed, not necessarily chosen.
java.lang.NullPointerException - if the given date is null.DATE_PROPERTYprotected void updateYearControl()
RangeValidator with a date range of less than 100 years, a drop-down list will be used for the year control.
Otherwise, a text input will be used for year selection.
protected void updateDateControls()
protected Table.CellRepresentationStrategy<java.util.Date> createDayRepresentationStrategy()
CalendarControl.DayRepresentationStrategy.
CalendarControl.DayRepresentationStrategy
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||