Class MiniDateRangeItem
- All Implemented Interfaces:
HasHandlers
,HasBlurHandlers
,HasChangedHandlers
,HasChangeHandlers
,HasClickHandlers
,HasDoubleClickHandlers
,HasEditorEnterHandlers
,HasEditorExitHandlers
,HasFocusHandlers
,HasIconClickHandlers
,HasIconKeyPressHandlers
,HasItemHoverHandlers
,HasKeyDownHandlers
,HasKeyPressHandlers
,HasKeyUpHandlers
,HasPendingStatusChangedHandlers
,HasPickerIconClickHandlers
,HasShowContextMenuHandlers
,HasTitleClickHandlers
,HasTitleDoubleClickHandlers
,HasTitleHoverHandlers
,HasValueHoverHandlers
,HasValueIconClickHandlers
DateRangeDialog
to edit the range.-
Nested Class Summary
Nested classes/interfaces inherited from class com.smartgwt.client.widgets.form.fields.FormItem
FormItem.CustomStateGetter, FormItem.StateCustomizer
-
Field Summary
Fields inherited from class com.smartgwt.client.widgets.form.fields.FormItem
configOnly, scClassName, warnOnEditorTypeConversion, warnOnEditorTypeConversionDefault
Fields inherited from class com.smartgwt.client.core.RefDataClass
id
Fields inherited from class com.smartgwt.client.core.DataClass
factoryCreated, factoryProperties
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
changeAutoChildDefaults
(String autoChildName, Canvas defaults) Changes the defaults for Canvas AutoChildren namedautoChildName
.static void
changeAutoChildDefaults
(String autoChildName, FormItem defaults) Changes the defaults for FormItem AutoChildren namedautoChildName
.static void
changePickerIconDefaults
(FormItemIcon defaults) Whether theDateRangeDialog
opened when thepickerIcon
is clicked should displayRelativeDateItem
s orDateItem
s.If this attribute is set to true, the pop up date range dialog will automatically validate the user-entered "to" and "from" values on"OK"
-click, and refuse to dismiss if these items contain invalid values.MiniDateRangeItems are marked as canFocus:true, and set up with properties such that focus will always go to the icon to launch the dateRange dialog.MiniDateRangeItems rely on their icon being able to receive focus for normal user interaction as they have no other focusable element.Format for displaying dates to the user.Initial value for the "from" date.The text to prepend to the formatted date when only afromDate
is supplied.static MiniDateRangeItem
getOrCreateRef
(JavaScriptObject jsObj) Icon that launches aDateChooser
for choosing an absolute date.The prompt to show when the mouse is hovered over thepickerIcon
.Pop-upDateRangeDialog
for entering a date range.Allow miniDateRangeItems' values to show up in the form's values array, or ifDynamicForm.getValuesAsCriteria()
is called, for the criterion to be included in the returned AdvancedCriteria objectBase CSS class name for a form item's text box element.Initial value for the "to" date.The text to prepend to the formatted date when only atoDate
is supplied.getValue()
Retrieves the current value of this dateRangeItem.Overridden to return true: dateRangeItems always generate AdvancedCriteria.setAllowRelativeDates
(Boolean allowRelativeDates) Whether theDateRangeDialog
opened when thepickerIcon
is clicked should displayRelativeDateItem
s orDateItem
s.setAutoValidate
(Boolean autoValidate) If this attribute is set to true, the pop up date range dialog will automatically validate the user-entered "to" and "from" values on"OK"
-click, and refuse to dismiss if these items contain invalid values.setCanFocus
(Boolean canFocus) MiniDateRangeItems are marked as canFocus:true, and set up with properties such that focus will always go to the icon to launch the dateRange dialog.setCanTabToIcons
(Boolean canTabToIcons) MiniDateRangeItems rely on their icon being able to receive focus for normal user interaction as they have no other focusable element.void
The defaultgetCriterion()
implementation returns the Criterion entered in the fields shown in therangeDialog
.setDateDisplayFormat
(DateDisplayFormat dateDisplayFormat) Format for displaying dates to the user.static void
setDefaultProperties
(MiniDateRangeItem miniDateRangeItemProperties) Class level method to set the default properties of this class.void
setFromDate
(Date fromDate) Initial value for the "from" date.setFromDateOnlyPrefix
(String fromDateOnlyPrefix) The text to prepend to the formatted date when only afromDate
is supplied.setPickerIcon
(FormItemIcon pickerIcon) Icon that launches aDateChooser
for choosing an absolute date.setPickerIconPrompt
(String pickerIconPrompt) The prompt to show when the mouse is hovered over thepickerIcon
.setShouldSaveValue
(Boolean shouldSaveValue) Allow miniDateRangeItems' values to show up in the form's values array, or ifDynamicForm.getValuesAsCriteria()
is called, for the criterion to be included in the returned AdvancedCriteria objectsetTextBoxStyle
(String textBoxStyle) Base CSS class name for a form item's text box element.void
Initial value for the "to" date.setToDateOnlyPrefix
(String toDateOnlyPrefix) The text to prepend to the formatted date when only atoDate
is supplied.void
Sets the value for this dateRangeItem.Methods inherited from class com.smartgwt.client.widgets.form.fields.StaticTextItem
getApplyAlignToText, getApplyHeightToTextBox, getCanSelectText, getClipValue, getDateFormatter, getDefaultValue, getEditProxyConstructor, getEscapeHTML, getWrap, setApplyAlignToText, setApplyHeightToTextBox, setCanSelectText, setClipValue, setDateFormatter, setDefaultProperties, setEditProxyConstructor, setEscapeHTML, setWrap
Methods inherited from class com.smartgwt.client.widgets.form.fields.FormItem
_getValue, addBlurHandler, addChangedHandler, addChangeHandler, addClickHandler, addDoubleClickHandler, addEditorEnterHandler, addEditorExitHandler, addFocusHandler, addIcon, addIcon, addIconClickHandler, addIconKeyPressHandler, addItemHoverHandler, addKeyDownHandler, addKeyPressHandler, addKeyUpHandler, addPendingStatusChangedHandler, addPickerIconClickHandler, addShowContextMenuHandler, addTitleClickHandler, addTitleDoubleClickHandler, addTitleHoverHandler, addValueHoverHandler, addValueIconClickHandler, applyFormula, asSGWTComponent, blurItem, canEditCriterion, checkFormItemType, clearErrors, clearValue, disable, disableIcon, enable, enableIcon, error, error, errorIfNotCreated, focusAfterItem, focusInItem, getAccessKey, getAlign, getAllowExpressions, getAlwaysFetchMissingValues, getAlwaysShowControlBox, getAriaRole, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsFloat, getAttributeAsInt, getAttributeAsJavaScriptObject, getAttributeAsObject, getAttributeAsString, getAutoComplete, getAutoCompleteKeywords, getBrowserInputType, getBrowserSpellCheck, getCanEdit, getCanEditOpaqueValues, getCanHover, getCanvasAutoChild, getCellHeight, getCellStyle, getChangeOnKeypress, getClassName, getClipStaticValue, getClipTitle, getConfig, getContainerWidget, getControlStyle, getCriteriaField, getCriterion, getCriterion, getCursorPosition, getCustomState, getDataPath, getDecimalPad, getDecimalPrecision, getDefaultIconSrc, getDefaultOperator, getDestroyed, getDisabled, getDisabledHover, getDisableIconsOnReadOnly, getDisplayField, getDisplayFieldName, getDisplayValue, getDisplayValue, getEditorTypeConfig, getEditPendingCSSText, getEmptyDisplayValue, getEmptyValueIcon, getEndRow, getErrorIconHeight, getErrorIconProperties, getErrorIconSrc, getErrorIconWidth, getErrorMessageWidth, getErrors, getExportFormat, getFetchMissingValues, getFieldName, getFilterLocally, getForeignDisplayField, getForm, getFormat, getFormItemAutoChild, getFormula, getFullDataPath, getGlobalTabIndex, getGridColNum, getGridRowNum, getHeight, getHeightAsString, getHidden, getHint, getHintStyle, getHoverAlign, getHoverDelay, getHoverFocusKey, getHoverHeight, getHoverHeightAsString, getHoverOpacity, getHoverPersist, getHoverStyle, getHoverVAlign, getHoverWidth, getHoverWidthAsString, getIcon, getIconBaseStyle, getIconHeight, getIconHSpace, getIconPageRect, getIconPrompt, getIconRect, getIcons, getIconTabPosition, getIconVAlign, getIconWidth, getID, getImageURLPrefix, getImageURLSuffix, getImplicitSave, getImplicitSaveOnBlur, getInputFormat, getLeft, getLinearColSpan, getLinearColSpanAsString, getLinearEndRow, getLinearEndRowAsString, getLinearStartRow, getLinearStartRowAsString, getLinearWidth, getLinearWidthAsString, getListGrid, getLoadingDisplayValue, getLocateItemBy, getMinHintWidth, getMultiple, getMultipleValueSeparator, getName, getNullOriginalValueText, getOperator, getOptionCriteria, getOptionDataSource, getOptionDataSourceAsString, getOptionFilterContext, getOptionOperationId, getOptionTextMatchStyle, getOriginalValueMessage, getPageLeft, getPageRect, getPageTop, getPaletteDefaults, getPicker, getPickerIcon, getPickerIcon, getPickerIconHeight, getPickerIconName, getPickerIconProperties, getPickerIconSrc, getPickerIconStyle, getPickerIconTabPosition, getPickerIconWidth, getPixelHeight, getPixelWidth, getPrintReadOnlyTextBoxStyle, getPrintTextBoxStyle, getPrintTitleStyle, getPrompt, getReadOnlyCanSelectText, getReadOnlyControlStyle, getReadOnlyDisplay, getReadOnlyHover, getReadOnlyTextBoxStyle, getReadOnlyWhen, getRect, getRedrawOnChange, getRejectInvalidValueOnChange, getRequired, getRequiredMessage, getRequiredWhen, getRowSpan, getSaveOnEnter, getScClassName, getSelectedRecord, getSelectOnClick, getSelectOnFocus, getShowClippedTitleOnHover, getShowClippedValueOnHover, getShowDeletions, getShowDisabled, getShowDisabledIconsOnFocus, getShowDisabledPickerIconOnFocus, getShowErrorIcon, getShowErrorIconInline, getShowErrorStyle, getShowErrorText, getShowFocused, getShowFocusedErrorState, getShowFocusedIcons, getShowFocusedPickerIcon, getShowHint, getShowIcons, getShowIconsOnFocus, getShowImageAsURL, getShowOldValueInHover, getShowOver, getShowOverIcons, getShowPending, getShowPickerIcon, getShowPickerIconOnFocus, getShowRTL, getShowTitle, getShowValueIconOnly, getStartRow, getStaticHeight, getStopOnError, getStoreDisplayValues, getSupportsCutPasteEvents, getSuppressValueIcon, getSynchronousValidation, getTabIndex, getTextAlign, getTextFormula, getTimeFormatter, getTitle, getTitleAlign, getTitleColSpan, getTitleOrientation, getTitleStyle, getTitleVAlign, getTooltip, getTop, getType, getUpdateControlOnOver, getUpdatePickerIconOnOver, getUpdateTextBoxOnOver, getUseAdvancedCriteria, getUseDisabledHintStyleForReadOnly, getUseLocalDisplayFieldValue, getValidateOnChange, getValidateOnExit, getValidOperators, getVAlign, getValueAsFloat, getValueAsInteger, getValueAsLong, getValueAsRecordList, getValueDeselectedCSSText, getValueField, getValueFieldName, getValueIconHeight, getValueIconLeftPadding, getValueIconRightPadding, getValueIconSize, getValueIconWidth, getValueMap, getValueMapAsArray, getVisible, getVisibleHeight, getVisibleTitleWidth, getVisibleWhen, getVisibleWidth, getWarnOnEditorTypeConversion, getWarnOnEditorTypeConversionDefault, getWidth, getWidthAsString, getWrapHintText, getWrapStaticValue, getWrapTitle, handleWarnOnEditorTypeConversion, hasErrors, hide, hideIcon, invalidateDisplayValueCache, isAssignableFrom, isConfigOnly, isCreated, isCutEvent, isDisabled, isDrawn, isFocused, isInGrid, isPasteEvent, isVisible, linkToInstanceUponCreate, mapDisplayToValue, mapValueToDisplay, mapValueToDisplay, mapValueToDisplay, redraw, redraw, removeIcon, selectedRecordChanged, setAccessKey, setAlign, setAllowExpressions, setAlwaysFetchMissingValues, setAlwaysShowControlBox, setAriaRole, setAriaState, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAutoChildConstructor, setAutoChildProperties, setAutoChildProperties, setAutoChildProperties, setAutoChildVisibility, setAutoComplete, setAutoCompleteKeywords, setBrowserInputType, setBrowserSpellCheck, setCanEdit, setCanEditCriterionPredicate, setCanEditOpaqueValues, setCanHover, setCellHeight, setCellStyle, setChangeOnKeypress, setClipStaticValue, setClipTitle, setColSpan, setColSpan, setConfigOnly, setControlStyle, setCriteriaField, setCriterion, setCriterionSetter, setCustomStateGetter, setDataPath, setDecimalPad, setDecimalPrecision, setDefaultIconSrc, setDefaultOperator, setDefaultProperties, setDefaultValue, setDefaultValue, setDefaultValue, setDefaultValue, setDefaultValue, setDefaultValue, setDefaultValue, setDisabled, setDisabledHover, setDisableIconsOnReadOnly, setDisplayField, setDisplayFormat, setDisplayFormat, setEditorProperties, setEditorType, setEditorType, setEditorType, setEditorValueFormatter, setEditorValueParser, setEditPendingCSSText, setEmptyDisplayValue, setEmptyValueIcon, setEndRow, setErrorFormatter, setErrorIconHeight, setErrorIconProperties, setErrorIconSrc, setErrorIconWidth, setErrorMessageWidth, setErrorOrientation, setErrors, setErrors, setExportFormat, setFetchMissingValues, setFilterLocally, setForeignDisplayField, setFormat, setFormula, setGlobalTabIndex, setHeight, setHeight, setHidden, setHint, setHintStyle, setHoverAlign, setHoverDelay, setHoverFocusKey, setHoverHeight, setHoverHeight, setHoverOpacity, setHoverPersist, setHoverStyle, setHoverVAlign, setHoverWidth, setHoverWidth, setIconBaseStyle, setIconDisabled, setIconHeight, setIconHSpace, setIconPrompt, setIcons, setIconShowOnFocus, setIconVAlign, setIconWidth, setID, setImageURLPrefix, setImageURLSuffix, setImplicitSave, setImplicitSaveOnBlur, setInitHandler, setInputFormat, setInputTransformer, setItemHoverFormatter, setItemTitleHoverFormatter, setItemValueHoverFormatter, setJavaScriptObject, setLeft, setLinearColSpan, setLinearColSpan, setLinearEndRow, setLinearEndRow, setLinearStartRow, setLinearStartRow, setLinearWidth, setLinearWidth, setLoadingDisplayValue, setLocateItemBy, setMinHintWidth, setMultiple, setMultipleValueSeparator, setName, setNullOriginalValueText, setNullProperty, setOperator, setOptionCriteria, setOptionDataSource, setOptionDataSource, setOptionFilterContext, setOptionOperationId, setOptionTextMatchStyle, setOriginalValueMessage, setPickerIconHeight, setPickerIconName, setPickerIconProperties, setPickerIconSrc, setPickerIconStyle, setPickerIconWidth, setPrintReadOnlyTextBoxStyle, setPrintTextBoxStyle, setPrintTitleStyle, setPrompt, setProperty, setProperty, setProperty, setProperty, setProperty, setReadOnlyCanSelectText, setReadOnlyControlStyle, setReadOnlyDisplay, setReadOnlyHover, setReadOnlyTextBoxStyle, setReadOnlyWhen, setRedrawOnChange, setRejectInvalidValueOnChange, setRequired, setRequiredMessage, setRequiredWhen, setRowSpan, setSaveOnEnter, setScClassName, setSelectOnClick, setSelectOnFocus, setShowClippedTitleOnHover, setShowClippedValueOnHover, setShowDeletions, setShowDisabled, setShowDisabledIconsOnFocus, setShowDisabledPickerIconOnFocus, setShowErrorIcon, setShowErrorIconInline, setShowErrorStyle, setShowErrorText, setShowFocused, setShowFocusedErrorState, setShowFocusedIcons, setShowFocusedPickerIcon, setShowHint, setShowIcons, setShowIconsOnFocus, setShowIfCondition, setShowImageAsURL, setShowOldValueInHover, setShowOver, setShowOverIcons, setShowPending, setShowPickerIcon, setShowPickerIconOnFocus, setShowRTL, setShowTitle, setShowValueIconOnly, setStartRow, setStateCustomizer, setStaticHeight, setStopOnError, setStoreDisplayValues, setSupportsCutPasteEvents, setSuppressValueIcon, setSynchronousValidation, setTabIndex, setTextAlign, setTextFormula, setTimeFormatter, setTitle, setTitleAlign, setTitleColSpan, setTitleHoverFormatter, setTitleOrientation, setTitleStyle, setTitleVAlign, setTooltip, setTop, setType, setUpdateControlOnOver, setUpdatePickerIconOnOver, setUpdateTextBoxOnOver, setUseAdvancedCriteria, setUseDisabledHintStyleForReadOnly, setUseLocalDisplayFieldValue, setUseObjectFactoryForTypeFallback, setValidateOnChange, setValidateOnExit, setValidators, setValidOperators, setVAlign, setValue, setValue, setValue, setValue, setValue, setValue, setValueDeselectedCSSText, setValueField, setValueFormatter, setValueHoverFormatter, setValueIconHeight, setValueIconLeftPadding, setValueIconMapper, setValueIconRightPadding, setValueIcons, setValueIconSize, setValueIconWidth, setValueMap, setValueMap, setVisible, setVisibleWhen, setWarnOnEditorTypeConversion, setWarnOnEditorTypeConversionDefault, setWidth, setWidth, setWrapHintText, setWrapStaticValue, setWrapTitle, shouldApplyHeightToTextBox, shouldFetchMissingValue, shouldSaveOnEnter, shouldStopKeyPressBubbling, show, showIcon, showPicker, stopHover, storeValue, storeValue, updateState, validate, valueClipped
Methods inherited from class com.smartgwt.client.data.Field
getCanExport, getExportTitle, getSortByField, setCanExport, setExportTitle, setSortByField
Methods inherited from class com.smartgwt.client.core.RefDataClass
getRef, getRef, internalSetID
Methods inherited from class com.smartgwt.client.core.DataClass
applyFactoryProperties, doAddHandler, fireEvent, getAttributeAsDoubleArray, getAttributeAsElement, getAttributeAsIntArray, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsStringArray, getAttributes, getHandlerCount, isFactoryCreated, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject, setFactoryCreated
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
-
Constructor Details
-
MiniDateRangeItem
public MiniDateRangeItem() -
MiniDateRangeItem
-
MiniDateRangeItem
-
MiniDateRangeItem
-
-
Method Details
-
getOrCreateRef
-
changeAutoChildDefaults
Changes the defaults for Canvas AutoChildren namedautoChildName
.- Parameters:
autoChildName
- name of an AutoChild to customize the defaults for.defaults
- Canvas defaults to apply. These defaults override any existing properties without destroying or wiping out non-overridden properties. For usage tips on this param, seeSGWTProperties
.- See Also:
-
changeAutoChildDefaults
Changes the defaults for FormItem AutoChildren namedautoChildName
.- Parameters:
autoChildName
- name of an AutoChild to customize the defaults for.defaults
- FormItem defaults to apply. These defaults override any existing properties without destroying or wiping out non-overridden properties. For usage tips on this param, seeSGWTProperties
.- See Also:
-
changePickerIconDefaults
-
setAllowRelativeDates
Whether theDateRangeDialog
opened when thepickerIcon
is clicked should displayRelativeDateItem
s orDateItem
s.- Parameters:
allowRelativeDates
- New allowRelativeDates value. Default value is true- Returns:
MiniDateRangeItem
instance, for chaining setter calls
-
getAllowRelativeDates
Whether theDateRangeDialog
opened when thepickerIcon
is clicked should displayRelativeDateItem
s orDateItem
s.- Returns:
- Current allowRelativeDates value. Default value is true
-
setAutoValidate
If this attribute is set to true, the pop up date range dialog will automatically validate the user-entered "to" and "from" values on"OK"
-click, and refuse to dismiss if these items contain invalid values.
If this method is called after the component has been drawn/initialized: Setter forautoValidate
- Parameters:
autoValidate
- New auto-validate setting. Default value is true- Returns:
MiniDateRangeItem
instance, for chaining setter calls
-
getAutoValidate
If this attribute is set to true, the pop up date range dialog will automatically validate the user-entered "to" and "from" values on"OK"
-click, and refuse to dismiss if these items contain invalid values.- Returns:
- Current autoValidate value. Default value is true
-
setCanFocus
MiniDateRangeItems are marked as canFocus:true, and set up with properties such that focus will always go to the icon to launch the dateRange dialog. Set canFocus to false to suppress this behavior.- Overrides:
setCanFocus
in classFormItem
- Parameters:
canFocus
- New canFocus value. Default value is true- Returns:
MiniDateRangeItem
instance, for chaining setter calls- See Also:
-
getCanFocus
MiniDateRangeItems are marked as canFocus:true, and set up with properties such that focus will always go to the icon to launch the dateRange dialog. Set canFocus to false to suppress this behavior.- Overrides:
getCanFocus
in classFormItem
- Returns:
- Current canFocus value. Default value is true
- See Also:
-
setCanTabToIcons
MiniDateRangeItems rely on their icon being able to receive focus for normal user interaction as they have no other focusable element.canTabToIcons
is overridden to achieve this even if the property has been set tofalse
at theform level
.Note : This is an advanced setting
- Overrides:
setCanTabToIcons
in classFormItem
- Parameters:
canTabToIcons
- New canTabToIcons value. Default value is true- Returns:
MiniDateRangeItem
instance, for chaining setter calls
-
getCanTabToIcons
MiniDateRangeItems rely on their icon being able to receive focus for normal user interaction as they have no other focusable element.canTabToIcons
is overridden to achieve this even if the property has been set tofalse
at theform level
.- Overrides:
getCanTabToIcons
in classFormItem
- Returns:
- Current canTabToIcons value. Default value is true
-
setDateDisplayFormat
Format for displaying dates to the user.If this attribute is unset, the display value is formatted intelligently according to the dates involved. For example, if both dates appear in the same month, the value will be formatted as
Month date1 - date2, Year
and, if in different months of the same year,
Month1 date1 - Month2 date2, Year
.If either date-value is unset, the display-value is formatted according to
fromDateOnlyPrefix
andtoDateOnlyPrefix
.- Parameters:
dateDisplayFormat
- New dateDisplayFormat value. Default value is null- Returns:
MiniDateRangeItem
instance, for chaining setter calls
-
getDateDisplayFormat
Format for displaying dates to the user.If this attribute is unset, the display value is formatted intelligently according to the dates involved. For example, if both dates appear in the same month, the value will be formatted as
Month date1 - date2, Year
and, if in different months of the same year,
Month1 date1 - Month2 date2, Year
.If either date-value is unset, the display-value is formatted according to
fromDateOnlyPrefix
andtoDateOnlyPrefix
.- Returns:
- Current dateDisplayFormat value. Default value is null
-
setFromDateOnlyPrefix
The text to prepend to the formatted date when only afromDate
is supplied.- Parameters:
fromDateOnlyPrefix
- New fromDateOnlyPrefix value. Default value is "Since"- Returns:
MiniDateRangeItem
instance, for chaining setter calls
-
getFromDateOnlyPrefix
The text to prepend to the formatted date when only afromDate
is supplied.- Returns:
- Current fromDateOnlyPrefix value. Default value is "Since"
-
setPickerIcon
Icon that launches aDateChooser
for choosing an absolute date.- Parameters:
pickerIcon
- New pickerIcon value. Default value is null- Returns:
MiniDateRangeItem
instance, for chaining setter calls
-
getPickerIcon
Icon that launches aDateChooser
for choosing an absolute date.- Returns:
- Current pickerIcon value. Default value is null
-
setPickerIconPrompt
The prompt to show when the mouse is hovered over thepickerIcon
.- Overrides:
setPickerIconPrompt
in classFormItem
- Parameters:
pickerIconPrompt
- New pickerIconPrompt value. Default value is "Show Date Chooser"- Returns:
MiniDateRangeItem
instance, for chaining setter calls- See Also:
-
getPickerIconPrompt
The prompt to show when the mouse is hovered over thepickerIcon
.- Overrides:
getPickerIconPrompt
in classFormItem
- Returns:
- Current pickerIconPrompt value. Default value is "Show Date Chooser"
- See Also:
-
getRangeDialog
Pop-upDateRangeDialog
for entering a date range.This component is an AutoChild named "rangeDialog". For an overview of how to use and configure AutoChildren, see
Using AutoChildren
.- Returns:
- Current rangeDialog value. Default value is null
-
setShouldSaveValue
Allow miniDateRangeItems' values to show up in the form's values array, or ifDynamicForm.getValuesAsCriteria()
is called, for the criterion to be included in the returned AdvancedCriteria object- Overrides:
setShouldSaveValue
in classFormItem
- Parameters:
shouldSaveValue
- New shouldSaveValue value. Default value is true- Returns:
MiniDateRangeItem
instance, for chaining setter calls
-
getShouldSaveValue
Allow miniDateRangeItems' values to show up in the form's values array, or ifDynamicForm.getValuesAsCriteria()
is called, for the criterion to be included in the returned AdvancedCriteria object- Overrides:
getShouldSaveValue
in classFormItem
- Returns:
- Current shouldSaveValue value. Default value is true
-
setTextBoxStyle
Base CSS class name for a form item's text box element.See
FormItemStyling
for an overview of formItem styling, and theCompoundFormItem_skinning
discussion for special skinning considerations.If the
textBoxStyle
is changed at runtime,updateState()
must be called to update the visual state of this item.- Overrides:
setTextBoxStyle
in classStaticTextItem
- Parameters:
textBoxStyle
- New textBoxStyle value. Default value is "textItem"- Returns:
MiniDateRangeItem
instance, for chaining setter calls- See Also:
-
getTextBoxStyle
Base CSS class name for a form item's text box element.See
FormItemStyling
for an overview of formItem styling, and theCompoundFormItem_skinning
discussion for special skinning considerations.If the
textBoxStyle
is changed at runtime,updateState()
must be called to update the visual state of this item.- Overrides:
getTextBoxStyle
in classStaticTextItem
- Returns:
- Current textBoxStyle value. Default value is "textItem"
- See Also:
-
setToDateOnlyPrefix
The text to prepend to the formatted date when only atoDate
is supplied.- Parameters:
toDateOnlyPrefix
- New toDateOnlyPrefix value. Default value is "Before"- Returns:
MiniDateRangeItem
instance, for chaining setter calls
-
getToDateOnlyPrefix
The text to prepend to the formatted date when only atoDate
is supplied.- Returns:
- Current toDateOnlyPrefix value. Default value is "Before"
-
hasAdvancedCriteria
Overridden to return true: dateRangeItems always generate AdvancedCriteria.- Overrides:
hasAdvancedCriteria
in classFormItem
- Returns:
- true
- See Also:
-
setDefaultProperties
Class level method to set the default properties of this class. If set, then all existing and subsequently created instances of this class will automatically have default properties corresponding to the properties of the class instance passed to this function. This is a powerful feature that eliminates the need for users to create a separate hierarchy of subclasses that only alter the default properties of this class. Can also be used for skinning / styling purposes.Note: This method is intended for setting default attributes only and will affect all instances of the underlying class (including those automatically generated in JavaScript). This method should not be used to apply standard EventHandlers or override methods for a class - use a custom subclass instead. Calling this method after instances have been created can result in undefined behavior, since it bypasses any setters and a class instance may have already examined a particular property and not be expecting any changes through this route.
- Parameters:
miniDateRangeItemProperties
- properties that should be used as new defaults when instances of this class are created- See Also:
-
setFromDate
Initial value for the "from" date. Sets thefromDate
for this DateRangeItem.- Parameters:
fromDate
- the date from which this item should start it's range. Default value is today
-
getFromDate
Initial value for the "from" date.- Returns:
- java.util.Date
-
setToDate
Initial value for the "to" date. Sets thetoDate
for this DateRangeItem.- Parameters:
toDate
- the date at which this item should end it's range. Default value is today
-
getToDate
Initial value for the "to" date.- Returns:
- java.util.Date
-
getValue
Retrieves the current value of this dateRangeItem. The return value is aDateRange
object that excludes start and end values if they aren't set. -
setValue
Sets the value for this dateRangeItem. The value parameter is aDateRange
object that optionally includes both start and end values.- Parameters:
value
- the new value for this item
-
setCriterionGetter
The defaultgetCriterion()
implementation returns the Criterion entered in the fields shown in therangeDialog
.If both dates are entered, a Criterion with an "and"
operator
and both "greaterOrEqual" and "lessOrEqual" sub-criteria will be returned. If either date is omitted, only the "greaterOrEqual" (from date) or "lessOrEqual" (to date) Criterion is returned.- Overrides:
setCriterionGetter
in classFormItem
- Parameters:
getter
- provides a method to get a criterion object based on this field's current edited value(s).- See Also:
-