public class TimeItem extends TextItem
timeFormatter
allows you to set the display
format for this field. See also
String for system-wide settings.
TimeItem automatically accepts both 12 and 24 hour time as well as partial times and a variety of possible time value separators. Examples:
11:34:45 AM => 11:34:45 1:3:5 AM => 01:30:50 1:3p => 13:30:00 11 34 am => 11:34:00 11-34 => 11:34:00 113445 => 11:34:45 13445 => 01:34:45 1134 => 11:34:00 134 => 01:34:00
Values entered by the user are stored as JavaScript Date
objects in local time.
The day, month and year values of this Date
object are not relevant and should
be ignored.
By default, when used in a SearchForm
or as a field in a ListGrid
's
filter editor
, TimeItems will automatically
generate
AdvancedCriteria - for example, entering "11:00" into the item will generate a
betweenInclusive Criterion that selects all times between
11:00:00 and 11:59:59. If the form is databound and the DataSource is marked as being
allowAdvancedCriteria
:false, the criteria generated
will be simple, checking for data with logical time values equal to the displayed value.
id
Constructor and Description |
---|
TimeItem() |
TimeItem(com.google.gwt.core.client.JavaScriptObject jsObj) |
TimeItem(java.lang.String name) |
TimeItem(java.lang.String name,
java.lang.String title) |
Modifier and Type | Method and Description |
---|---|
static void |
changeAutoChildDefaults(java.lang.String autoChildName,
Canvas defaults)
Changes the defaults for Canvas AutoChildren named
autoChildName . |
static void |
changeAutoChildDefaults(java.lang.String autoChildName,
FormItem defaults)
Changes the defaults for FormItem AutoChildren named
autoChildName . |
static void |
changePickerIconDefaults(FormItemIcon defaults) |
void |
deselectValue()
If
useTextField is true, falls through to
standard FormItem.deselectValue implementation on
this items freeform text entry field. |
void |
deselectValue(java.lang.Boolean start)
If
useTextField is true, falls through to
standard FormItem.deselectValue implementation on
this items freeform text entry field. |
SelectItem |
getAmpmItem()
Select item to hold the AM/PM value for the timeItem when
useTextField is false. |
SelectItem |
getAmpmItemProperties()
Custom properties to apply to this timeItem's generated
AM/PM picker . |
java.lang.String |
getAmpmItemTitle()
Title to show for the
AM/PM picker . |
TimeDisplayFormat |
getDisplayFormat()
Deprecated.
|
int |
getDuration()
When
useTextField is set to false, this method
returns the value of the time expressed as a duration in the timeUnit
provided. |
int |
getDuration(TimeUnit timeUnit)
When
useTextField is set to false, this method
returns the value of the time expressed as a duration in the timeUnit
provided. |
java.lang.String |
getEnteredValue()
Returns the raw text value typed into this items text field if
useTextField is true (otherwise returns the result of
this.getValue()). |
java.lang.Integer |
getHourIncrement()
When
useTextField is false and hourValues is unset, this attribute specifies the
increment to use when generating entries for the hour picker. |
SelectItem |
getHourItem()
Select item to hold the hours portion of the time or
duration when useTextField is false. |
java.lang.String |
getHourItemPrompt()
The hover prompt to show for the
hour picker . |
SelectItem |
getHourItemProperties()
Custom properties to apply to this timeItem's generated
hour picker . |
java.lang.String |
getHourItemTitle()
Title to show for the
hour picker . |
java.lang.Integer |
getHourMaxValue()
When
useTextField is false and hourValues is unset, this attribute specifies the
maximum value present in the hour picker. |
java.lang.Integer |
getHourMinValue()
When
useTextField is false and hourValues is unset, this attribute specifies the
minimum value present in the hour picker. |
java.lang.Integer[] |
getHourValues()
An array of values to make available in the
hour
picker when useTextField is false. |
java.lang.String |
getInvalidTimeStringMessage()
Validation error message to display if the user enters an invalid time string.
|
java.lang.String |
getMask()
Internal-use only for a TimeItem.
|
java.lang.Boolean |
getMaskOverwriteMode()
Internal-use only for a TimeItem.
|
java.lang.Boolean |
getMaskSaveLiterals()
Internal-use only for a TimeItem.
|
java.lang.Integer |
getMillisecondIncrement()
When
useTextField is false and millisecondValues is unset, this attribute
specifies the increment to use when generating entries for the millisecond picker. |
SelectItem |
getMillisecondItem()
Select item to hold the milliseconds portion of the time or
duration when useTextField is false. |
java.lang.String |
getMillisecondItemPrompt()
The hover prompt to show for the
millisecond
picker . |
SelectItem |
getMillisecondItemProperties()
Custom properties to apply to this timeItem's generated
millisecond picker . |
java.lang.String |
getMillisecondItemTitle()
Title to show for the
millisecond picker . |
java.lang.Integer |
getMillisecondMaxValue()
When
useTextField is false and millisecondValues is unset, this attribute
specifies the maximum value present in the millisecond picker. |
java.lang.Integer |
getMillisecondMinValue()
When
useTextField is false and millisecondValues is unset, this attribute
specifies the minimum value present in the millisecond picker. |
java.lang.Integer[] |
getMillisecondValues()
An array of values to make available in the
millisecond picker when useTextField is false. |
java.lang.Integer |
getMinuteIncrement()
When
useTextField is false and minuteValues is unset, this attribute specifies the
increment to use when generating entries for the minute picker. |
SelectItem |
getMinuteItem()
Select item to hold the minutes portion of the time or
duration when useTextField is false. |
java.lang.String |
getMinuteItemPrompt()
The hover prompt to show for the
minute picker . |
SelectItem |
getMinuteItemProperties()
Custom properties to apply to this timeItem's generated
minute picker . |
java.lang.String |
getMinuteItemTitle()
Title to show for the
minute picker . |
java.lang.Integer |
getMinuteMaxValue()
When
useTextField is false and minuteValues is unset, this attribute specifies the
maximum value present in the minute picker. |
java.lang.Integer |
getMinuteMinValue()
When
useTextField is false and minuteValues is unset, this attribute specifies the
minimum value present in the minute picker. |
java.lang.Integer[] |
getMinuteValues()
An array of values to make available in the
minute
picker when useTextField is false. |
static TimeItem |
getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj) |
java.lang.Integer |
getSecondIncrement()
When
useTextField is false and secondValues is unset, this attribute specifies the
increment to use when generating entries for the second picker. |
SelectItem |
getSecondItem()
Select item to hold the seconds portion of the time or
duration when useTextField is false. |
java.lang.String |
getSecondItemPrompt()
The hover prompt to show for the
second picker . |
SelectItem |
getSecondItemProperties()
Custom properties to apply to this timeItem's generated
seconds picker . |
java.lang.String |
getSecondItemTitle()
Title to show for the
second picker . |
java.lang.Integer |
getSecondMaxValue()
When
useTextField is false and secondValues is unset, this attribute specifies the
maximum value present in the second picker. |
java.lang.Integer |
getSecondMinValue()
When
useTextField is false and secondValues is unset, this attribute specifies the
minimum value present in the second picker. |
java.lang.Integer[] |
getSecondValues()
An array of values to make available in the
second
picker when useTextField is false. |
int[] |
getSelectionRange()
If
useTextField is true, falls through to
standard com.smartgwt.client.widgets.form.fields.FormItem#getSelectionRange implementation on this item's
freeform text entry field. |
java.lang.Boolean |
getShowHourItem()
Controls whether to display the
hourItem when
useTextField is false. |
java.lang.Boolean |
getShowMillisecondItem()
Controls whether to display the
millisecondItem when useTextField is false. |
java.lang.Boolean |
getShowMinuteItem()
Controls whether to display the
minuteItem when
useTextField is false. |
java.lang.Boolean |
getShowSecondItem()
Controls whether to display the
secondItem when
useTextField is false. |
Alignment |
getTextAlign()
If
useTextField is true , this
property governs the alignment of text within the text field. |
java.lang.String |
getTextBoxStyle()
Base CSS class for this item's text box.
|
TextItem |
getTextField()
Text field to hold the entire time in "type in" format, if
useTextField is true. |
TextItem |
getTextFieldProperties()
Custom properties to apply to the
text field
generated for this timeItem when useTextField
is true. |
TimeDisplayFormat |
getTimeFormatter()
What format should this item's time string be presented in? If unset the format will be derived from
timeFormatter or the system-side |
java.lang.Boolean |
getUse24HourTime()
Whether to enforce 24-hour time in the UI.
|
java.lang.Boolean |
getUseMask()
If true, a data entry mask will be enabled in the field based on the
timeFormatter . |
java.lang.Boolean |
getUseTextField()
Should we show the time in a text field, or as a number of SelectItems?
|
void |
selectValue()
If
useTextField is true, falls through to
standard FormItem.selectValue implementation on
this items freeform text entry field. |
void |
setAmpmItemProperties(SelectItem ampmItemProperties)
Custom properties to apply to this timeItem's generated
AM/PM picker . |
void |
setAmpmItemTitle(java.lang.String ampmItemTitle)
Title to show for the
AM/PM picker . |
static void |
setDefaultProperties(TimeItem timeItemProperties)
Class level method to set the default properties of this class.
|
void |
setDisplayFormat(TimeDisplayFormat timeFormatter)
Deprecated.
Use
getTimeFormatter() instead. |
void |
setDisplayFormat(TimeFormatter timeFormatter)
Deprecated.
Use
setDisplayFormat(TimeDisplayFormat) instead. |
void |
setHourIncrement(java.lang.Integer hourIncrement)
When
useTextField is false and hourValues is unset, this attribute specifies the
increment to use when generating entries for the hour picker. |
void |
setHourItemPrompt(java.lang.String hourItemPrompt)
The hover prompt to show for the
hour picker . |
void |
setHourItemProperties(SelectItem hourItemProperties)
Custom properties to apply to this timeItem's generated
hour picker . |
void |
setHourItemTitle(java.lang.String hourItemTitle)
Title to show for the
hour picker . |
void |
setHourMaxValue(java.lang.Integer hourMaxValue)
When
useTextField is false and hourValues is unset, this attribute specifies the
maximum value present in the hour picker. |
void |
setHourMinValue(java.lang.Integer hourMinValue)
When
useTextField is false and hourValues is unset, this attribute specifies the
minimum value present in the hour picker. |
void |
setHours(int hours)
Set the hour value of this TimeItem.
|
void |
setHourValues(java.lang.Integer... hourValues)
An array of values to make available in the
hour
picker when useTextField is false. |
void |
setInvalidTimeStringMessage(java.lang.String invalidTimeStringMessage)
Validation error message to display if the user enters an invalid time string.
|
void |
setJavaScriptObject(com.google.gwt.core.client.JavaScriptObject jsObj) |
void |
setMask(java.lang.String mask)
Internal-use only for a TimeItem.
|
void |
setMaskOverwriteMode(java.lang.Boolean maskOverwriteMode)
Internal-use only for a TimeItem.
|
void |
setMaskSaveLiterals(java.lang.Boolean maskSaveLiterals)
Internal-use only for a TimeItem.
|
void |
setMillisecondIncrement(java.lang.Integer millisecondIncrement)
When
useTextField is false and millisecondValues is unset, this attribute
specifies the increment to use when generating entries for the millisecond picker. |
void |
setMillisecondItemPrompt(java.lang.String millisecondItemPrompt)
The hover prompt to show for the
millisecond
picker . |
void |
setMillisecondItemProperties(SelectItem millisecondItemProperties)
Custom properties to apply to this timeItem's generated
millisecond picker . |
void |
setMillisecondItemTitle(java.lang.String millisecondItemTitle)
Title to show for the
millisecond picker . |
void |
setMillisecondMaxValue(java.lang.Integer millisecondMaxValue)
When
useTextField is false and millisecondValues is unset, this attribute
specifies the maximum value present in the millisecond picker. |
void |
setMillisecondMinValue(java.lang.Integer millisecondMinValue)
When
useTextField is false and millisecondValues is unset, this attribute
specifies the minimum value present in the millisecond picker. |
void |
setMilliseconds(int milliseconds)
Set the milliseconds value of this TimeItem.
|
void |
setMillisecondValues(java.lang.Integer... millisecondValues)
An array of values to make available in the
millisecond picker when useTextField is false. |
void |
setMinuteIncrement(java.lang.Integer minuteIncrement)
When
useTextField is false and minuteValues is unset, this attribute specifies the
increment to use when generating entries for the minute picker. |
void |
setMinuteItemPrompt(java.lang.String minuteItemPrompt)
The hover prompt to show for the
minute picker . |
void |
setMinuteItemProperties(SelectItem minuteItemProperties)
Custom properties to apply to this timeItem's generated
minute picker . |
void |
setMinuteItemTitle(java.lang.String minuteItemTitle)
Title to show for the
minute picker . |
void |
setMinuteMaxValue(java.lang.Integer minuteMaxValue)
When
useTextField is false and minuteValues is unset, this attribute specifies the
maximum value present in the minute picker. |
void |
setMinuteMinValue(java.lang.Integer minuteMinValue)
When
useTextField is false and minuteValues is unset, this attribute specifies the
minimum value present in the minute picker. |
void |
setMinutes(int minutes)
Set the minute value of this TimeItem.
|
void |
setMinuteValues(java.lang.Integer... minuteValues)
An array of values to make available in the
minute
picker when useTextField is false. |
void |
setSecondIncrement(java.lang.Integer secondIncrement)
When
useTextField is false and secondValues is unset, this attribute specifies the
increment to use when generating entries for the second picker. |
void |
setSecondItemPrompt(java.lang.String secondItemPrompt)
The hover prompt to show for the
second picker . |
void |
setSecondItemProperties(SelectItem secondItemProperties)
Custom properties to apply to this timeItem's generated
seconds picker . |
void |
setSecondItemTitle(java.lang.String secondItemTitle)
Title to show for the
second picker . |
void |
setSecondMaxValue(java.lang.Integer secondMaxValue)
When
useTextField is false and secondValues is unset, this attribute specifies the
maximum value present in the second picker. |
void |
setSecondMinValue(java.lang.Integer secondMinValue)
When
useTextField is false and secondValues is unset, this attribute specifies the
minimum value present in the second picker. |
void |
setSeconds(int seconds)
Set the seconds value of this TimeItem.
|
void |
setSecondValues(java.lang.Integer... secondValues)
An array of values to make available in the
second
picker when useTextField is false. |
void |
setSelectionRange(int start,
int end)
If
useTextField is true, falls through to
standard FormItem.setSelectionRange
implementation on this items freeform text entry field. |
void |
setShowHourItem(java.lang.Boolean showHourItem)
Controls whether to display the
hourItem when
useTextField is false. |
void |
setShowMillisecondItem(java.lang.Boolean showMillisecondItem)
Controls whether to display the
millisecondItem when useTextField is false. |
void |
setShowMinuteItem(java.lang.Boolean showMinuteItem)
Controls whether to display the
minuteItem when
useTextField is false. |
void |
setShowSecondItem(java.lang.Boolean showSecondItem)
Controls whether to display the
secondItem when
useTextField is false. |
void |
setTextAlign(Alignment textAlign)
If
useTextField is true , this
property governs the alignment of text within the text field. |
void |
setTextBoxStyle(java.lang.String textBoxStyle)
Base CSS class for this item's text box.
|
void |
setTextFieldProperties(TextItem textFieldProperties)
Custom properties to apply to the
text field
generated for this timeItem when useTextField
is true. |
void |
setTimeFormatter(TimeDisplayFormat timeFormatter)
What format should this item's time string be presented in? If unset the format will be derived from
timeFormatter or the system-side |
void |
setUse24HourTime(java.lang.Boolean use24HourTime)
Whether to enforce 24-hour time in the UI.
|
void |
setUseMask(java.lang.Boolean useMask)
If true, a data entry mask will be enabled in the field based on the
timeFormatter . |
void |
setUseTextField(java.lang.Boolean useTextField)
Should we show the time in a text field, or as a number of SelectItems?
|
getBrowserAutoCapitalize, getBrowserAutoCorrect, getBrowserInputType, getChangeOnKeypress, getCharacterCasing, getFormatOnBlur, getFormatOnFocusChange, getHeight, getHint, getKeyPressFilter, getLength, getMaskPadChar, getMaskPromptChar, getPrintFullText, getSaveOnEnter, getSelectOnClick, getSelectOnFocus, getShowHintInField, getValueAsString, getWidth, setBrowserAutoCapitalize, setBrowserAutoCorrect, setBrowserInputType, setChangeOnKeypress, setCharacterCasing, setDefaultProperties, setFormatOnBlur, setFormatOnFocusChange, setHeight, setKeyPressFilter, setLength, setMaskPadChar, setMaskPromptChar, setPrintFullText, setSaveOnEnter, setSelectOnClick, setSelectOnFocus, setShowHintInField, setWidth
_getValue, addBlurHandler, addChangedHandler, addChangeHandler, addClickHandler, addDoubleClickHandler, addEditorEnterHandler, addEditorExitHandler, addFocusHandler, addIconClickHandler, addIconKeyPressHandler, addItemHoverHandler, addKeyDownHandler, addKeyPressHandler, addKeyUpHandler, addPickerIconClickHandler, addTitleClickHandler, addTitleDoubleClickHandler, addTitleHoverHandler, addValueHoverHandler, asSGWTComponent, blurItem, canEditCriterion, clearValue, disable, enable, focusInItem, getAccessKey, getAlign, getAllowExpressions, getAlwaysFetchMissingValues, getApplyHeightToTextBox, getAriaRole, getAttribute, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsFloat, getAttributeAsInt, getAttributeAsJavaScriptObject, getAttributeAsString, getBrowserSpellCheck, getCanEdit, getCanFocus, getCanvasAutoChild, getCellHeight, getCellStyle, getClassName, getClipStaticValue, getClipTitle, getConfig, getContainerWidget, getCriteriaField, getCriterion, getCriterion, getDataPath, getDateFormatter, getDecimalPad, getDecimalPrecision, getDefaultIconSrc, getDisabled, getDisableIconsOnReadOnly, getDisplayField, getDisplayFieldName, getDisplayValue, getDisplayValue, getEditorTypeConfig, getEditPendingCSSText, getEmptyDisplayValue, getEmptyValueIcon, getEndRow, getErrorIconHeight, getErrorIconSrc, getErrorIconWidth, getErrorMessageWidth, getFetchMissingValues, getFieldName, getFilterLocally, getForm, getFormItemAutoChild, getFullDataPath, getGlobalTabIndex, getHintStyle, getHoverAlign, getHoverDelay, getHoverHeight, getHoverOpacity, getHoverStyle, getHoverVAlign, getHoverWidth, getIcon, getIconHeight, getIconHSpace, getIconPageRect, getIconPrompt, getIconRect, getIconVAlign, getIconWidth, getImageURLPrefix, getImageURLSuffix, getImplicitSave, getImplicitSaveOnBlur, getInputFormat, getLeft, getLocateItemBy, getMultipleValueSeparator, getName, getOperator, getOptionCriteria, getOptionFilterContext, getOptionOperationId, getPageLeft, getPageRect, getPageTop, getPicker, getPickerIconHeight, getPickerIconName, getPickerIconPrompt, getPickerIconProperties, getPickerIconSrc, getPickerIconStyle, getPickerIconWidth, getPrintTextBoxStyle, getPrintTitleStyle, getPrompt, getReadOnlyDisplay, getReadOnlyTextBoxStyle, getRect, getRedrawOnChange, getRejectInvalidValueOnChange, getRequired, getRequiredMessage, getRowSpan, getSelectedRecord, getShouldSaveValue, getShowClippedTitleOnHover, getShowClippedValueOnHover, getShowDisabled, getShowErrorIcon, getShowErrorStyle, getShowErrorText, getShowFocused, getShowFocusedErrorState, getShowFocusedIcons, getShowFocusedPickerIcon, getShowHint, getShowIcons, getShowOverIcons, getShowPickerIcon, getShowRTL, getShowTitle, getShowValueIconOnly, getStartRow, getStopOnError, getSuppressValueIcon, getSynchronousValidation, getTabIndex, getTitle, getTitleAlign, getTitleColSpan, getTitleOrientation, getTitleStyle, getTitleVAlign, getTooltip, getTop, getType, getValidateOnChange, getValidateOnExit, getValidOperators, getVAlign, getValue, getValueAsRecordList, getValueField, getValueFieldName, getValueIconHeight, getValueIconLeftPadding, getValueIconRightPadding, getValueIconSize, getValueIconWidth, getVisible, getVisibleHeight, getVisibleWidth, getWrapTitle, hasAdvancedCriteria, hide, hideIcon, invalidateDisplayValueCache, isCreated, isDisabled, isDrawn, isVisible, redraw, setAccessKey, setAlign, setAllowExpressions, setAlwaysFetchMissingValues, setApplyHeightToTextBox, setAriaRole, setAriaState, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAutoChildConstructor, setAutoChildProperties, setAutoChildProperties, setAutoChildVisibility, setBrowserSpellCheck, setCanEdit, setCanEditCriterionPredicate, setCanFocus, setCellHeight, setCellStyle, setClipStaticValue, setClipTitle, setColSpan, setColSpan, setCriteriaField, setCriterion, setCriterionGetter, setCriterionSetter, setDataPath, setDateFormatter, setDecimalPad, setDecimalPrecision, setDefaultIconSrc, setDefaultProperties, setDefaultValue, setDefaultValue, setDefaultValue, setDefaultValue, setDefaultValue, setDefaultValue, setDefaultValue, setDisabled, setDisableIconsOnReadOnly, setDisplayField, setDisplayFormat, setEditorProperties, setEditorType, setEditorType, setEditorType, setEditorValueFormatter, setEditorValueParser, setEditPendingCSSText, setEmptyDisplayValue, setEmptyValueIcon, setEndRow, setErrorFormatter, setErrorIconHeight, setErrorIconSrc, setErrorIconWidth, setErrorMessageWidth, setErrorOrientation, setFetchMissingValues, setFilterLocally, setGlobalTabIndex, setHeight, setHint, setHintStyle, setHoverAlign, setHoverDelay, setHoverHeight, setHoverOpacity, setHoverStyle, setHoverVAlign, setHoverWidth, setIconHeight, setIconHSpace, setIconPrompt, setIcons, setIconVAlign, setIconWidth, setImageURLPrefix, setImageURLSuffix, setImplicitSave, setImplicitSaveOnBlur, setInitHandler, setInputFormat, setInputTransformer, setItemHoverFormatter, setItemTitleHoverFormatter, setItemValueHoverFormatter, setLeft, setLocateItemBy, setMultipleValueSeparator, setName, setOperator, setOptionCriteria, setOptionDataSource, setOptionFilterContext, setOptionOperationId, setPickerIconHeight, setPickerIconName, setPickerIconPrompt, setPickerIconProperties, setPickerIconSrc, setPickerIconStyle, setPickerIconWidth, setPrintTextBoxStyle, setPrintTitleStyle, setPrompt, setProperty, setProperty, setProperty, setProperty, setProperty, setReadOnlyDisplay, setReadOnlyTextBoxStyle, setRedrawOnChange, setRejectInvalidValueOnChange, setRequired, setRequiredMessage, setRowSpan, setShouldSaveValue, setShowClippedTitleOnHover, setShowClippedValueOnHover, setShowDisabled, setShowErrorIcon, setShowErrorStyle, setShowErrorText, setShowFocused, setShowFocusedErrorState, setShowFocusedIcons, setShowFocusedPickerIcon, setShowHint, setShowIcons, setShowIfCondition, setShowOverIcons, setShowPickerIcon, setShowRTL, setShowTitle, setShowValueIconOnly, setStartRow, setStopOnError, setSuppressValueIcon, setSynchronousValidation, setTabIndex, setTitle, setTitleAlign, setTitleColSpan, setTitleHoverFormatter, setTitleOrientation, setTitleStyle, setTitleVAlign, setTooltip, setTop, setType, setValidateOnChange, setValidateOnExit, setValidators, setValidOperators, setVAlign, setValue, setValue, setValue, setValue, setValue, setValue, setValueField, setValueFormatter, setValueHoverFormatter, setValueIconHeight, setValueIconLeftPadding, setValueIconMapper, setValueIconRightPadding, setValueIcons, setValueIconSize, setValueIconWidth, setValueMap, setValueMap, setVisible, setWidth, setWrapTitle, shouldApplyHeightToTextBox, shouldFetchMissingValue, shouldSaveOnEnter, show, showIcon, showPicker, stopHover, updateState, validate, valueClipped
getRef, getRef, internalSetID
doAddHandler, fireEvent, getAttributeAsDoubleArray, getAttributeAsIntArray, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsStringArray, getAttributes, getHandlerCount, getJsObj, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject
public TimeItem()
public TimeItem(com.google.gwt.core.client.JavaScriptObject jsObj)
public TimeItem(java.lang.String name)
public TimeItem(java.lang.String name, java.lang.String title)
public static TimeItem getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public void setJavaScriptObject(com.google.gwt.core.client.JavaScriptObject jsObj)
setJavaScriptObject
in class TextItem
public static void changeAutoChildDefaults(java.lang.String autoChildName, Canvas defaults)
autoChildName
.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.AutoChildUsage
public static void changeAutoChildDefaults(java.lang.String autoChildName, FormItem defaults)
autoChildName
.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.AutoChildUsage
public static void changePickerIconDefaults(FormItemIcon defaults)
public SelectItem getAmpmItem()
useTextField
is false.
For an overview of how to use and configure AutoChildren, see Using AutoChildren
.
public void setAmpmItemProperties(SelectItem ampmItemProperties)
AM/PM picker
.
Note : This is an advanced setting
ampmItemProperties
- ampmItemProperties Default value is nullpublic SelectItem getAmpmItemProperties()
AM/PM picker
.public void setAmpmItemTitle(java.lang.String ampmItemTitle)
AM/PM picker
.ampmItemTitle
- . See String
. Default value is "AM/PM"public java.lang.String getAmpmItemTitle()
AM/PM picker
.String
public void setHourIncrement(java.lang.Integer hourIncrement)
useTextField
is false and hourValues
is unset, this attribute specifies the
increment to use when generating entries for the hour picker. For example, if this attribute is set to 5, the hour
picker will contain only every fifth value between the hourMinValue
and hourMaxValue
.hourIncrement
- hourIncrement Default value is nullpublic java.lang.Integer getHourIncrement()
useTextField
is false and hourValues
is unset, this attribute specifies the
increment to use when generating entries for the hour picker. For example, if this attribute is set to 5, the hour
picker will contain only every fifth value between the hourMinValue
and hourMaxValue
.public SelectItem getHourItem()
duration
when useTextField
is false.
For an overview of how to use and configure AutoChildren, see Using AutoChildren
.
public void setHourItemPrompt(java.lang.String hourItemPrompt)
hour picker
.hourItemPrompt
- . See String
. Default value is "Choose hours"public java.lang.String getHourItemPrompt()
hour picker
.String
public void setHourItemProperties(SelectItem hourItemProperties)
hour picker
.
Note : This is an advanced setting
hourItemProperties
- hourItemProperties Default value is nullpublic SelectItem getHourItemProperties()
hour picker
.public void setHourItemTitle(java.lang.String hourItemTitle)
hour picker
.hourItemTitle
- . See String
. Default value is "Hour"public java.lang.String getHourItemTitle()
hour picker
.String
public void setHourMaxValue(java.lang.Integer hourMaxValue)
useTextField
is false and hourValues
is unset, this attribute specifies the
maximum value present in the hour picker. Used for specifying a limited set of valid Hour values, or when using the
TimeItem to record duration, rather than time per-se. The default is 11 or 23, according to the value of use24HourTime
and timeFormatter
.
See also hourMinValue
and hourIncrement
.
hourMaxValue
- hourMaxValue Default value is nullpublic java.lang.Integer getHourMaxValue()
useTextField
is false and hourValues
is unset, this attribute specifies the
maximum value present in the hour picker. Used for specifying a limited set of valid Hour values, or when using the
TimeItem to record duration, rather than time per-se. The default is 11 or 23, according to the value of use24HourTime
and timeFormatter
.
See also hourMinValue
and hourIncrement
.
public void setHourMinValue(java.lang.Integer hourMinValue)
useTextField
is false and hourValues
is unset, this attribute specifies the
minimum value present in the hour picker. Used for specifying a limited set of valid Hour values, or when using the TimeItem to record duration, rather than time per-se. The default is zero in all cases.
See also hourMaxValue
and hourIncrement
.
hourMinValue
- hourMinValue Default value is nullpublic java.lang.Integer getHourMinValue()
useTextField
is false and hourValues
is unset, this attribute specifies the
minimum value present in the hour picker. Used for specifying a limited set of valid Hour values, or when using the TimeItem to record duration, rather than time per-se. The default is zero in all cases.
See also hourMaxValue
and hourIncrement
.
public void setHourValues(java.lang.Integer... hourValues)
hour
picker
when useTextField
is false. Used for specifying a limited set of valid Hour values, or when using the TimeItem to record duration, rather than time per-se.
See hourMinValue
, hourMaxValue
and hourIncrement
for another method of controlling the
content in the hour picker.
If this method is called after the component has been drawn/initialized:
Sets the array of valid hour values
to use when useTextField
is false.
Used for limiting available valid Hour values, or when using the TimeItem to record duration, rather than time per-se.
See hourMinValue
, hourMaxValue
and hourIncrement
for another method of controlling the content in the hour picker.
hourValues
- array of available Hour values. Default value is nullpublic java.lang.Integer[] getHourValues()
hour
picker
when useTextField
is false. Used for specifying a limited set of valid Hour values, or when using the TimeItem to record duration, rather than time per-se.
See hourMinValue
, hourMaxValue
and hourIncrement
for another method of controlling the
content in the hour picker.
hourValues
or generated according to hourMinValue
, hourMaxValue
and hourIncrement
.public void setInvalidTimeStringMessage(java.lang.String invalidTimeStringMessage)
invalidTimeStringMessage
- . See String
. Default value is "Invalid time"public java.lang.String getInvalidTimeStringMessage()
String
public void setMask(java.lang.String mask)
Note : This is an advanced setting
setMask
in class TextItem
mask
- . See String
. Default value is nullsetUseMask(java.lang.Boolean)
public java.lang.String getMask()
getMask
in class TextItem
String
getUseMask()
public void setMaskOverwriteMode(java.lang.Boolean maskOverwriteMode)
Note : This is an advanced setting
setMaskOverwriteMode
in class TextItem
maskOverwriteMode
- maskOverwriteMode Default value is nullsetUseMask(java.lang.Boolean)
public java.lang.Boolean getMaskOverwriteMode()
getMaskOverwriteMode
in class TextItem
getUseMask()
public void setMaskSaveLiterals(java.lang.Boolean maskSaveLiterals)
Note : This is an advanced setting
setMaskSaveLiterals
in class TextItem
maskSaveLiterals
- maskSaveLiterals Default value is nullsetUseMask(java.lang.Boolean)
public java.lang.Boolean getMaskSaveLiterals()
getMaskSaveLiterals
in class TextItem
getUseMask()
public void setMillisecondIncrement(java.lang.Integer millisecondIncrement)
useTextField
is false and millisecondValues
is unset, this attribute
specifies the increment to use when generating entries for the millisecond picker. For example, if this attribute is
set to 5, the millisecond picker will contain only every fifth value between the millisecondMinValue
and millisecondMaxValue
.millisecondIncrement
- millisecondIncrement Default value is nullpublic java.lang.Integer getMillisecondIncrement()
useTextField
is false and millisecondValues
is unset, this attribute
specifies the increment to use when generating entries for the millisecond picker. For example, if this attribute is
set to 5, the millisecond picker will contain only every fifth value between the millisecondMinValue
and millisecondMaxValue
.public SelectItem getMillisecondItem()
duration
when useTextField
is false.
For an overview of how to use and configure AutoChildren, see Using AutoChildren
.
public void setMillisecondItemPrompt(java.lang.String millisecondItemPrompt)
millisecond
picker
.millisecondItemPrompt
- . See String
. Default value is "Choose milliseconds"public java.lang.String getMillisecondItemPrompt()
millisecond
picker
.String
public void setMillisecondItemProperties(SelectItem millisecondItemProperties)
millisecond picker
.
Note : This is an advanced setting
millisecondItemProperties
- millisecondItemProperties Default value is nullpublic SelectItem getMillisecondItemProperties()
millisecond picker
.public void setMillisecondItemTitle(java.lang.String millisecondItemTitle)
millisecond picker
.millisecondItemTitle
- . See String
. Default value is "Ms"public java.lang.String getMillisecondItemTitle()
millisecond picker
.String
public void setMillisecondMaxValue(java.lang.Integer millisecondMaxValue)
useTextField
is false and millisecondValues
is unset, this attribute
specifies the maximum value present in the millisecond picker. Used for specifying a limited set of valid Millisecond values, or when using the TimeItem to record duration, rather than time per-se. The default is 999.
See also millisecondMinValue
and millisecondIncrement
.
millisecondMaxValue
- millisecondMaxValue Default value is nullpublic java.lang.Integer getMillisecondMaxValue()
useTextField
is false and millisecondValues
is unset, this attribute
specifies the maximum value present in the millisecond picker. Used for specifying a limited set of valid Millisecond values, or when using the TimeItem to record duration, rather than time per-se. The default is 999.
See also millisecondMinValue
and millisecondIncrement
.
public void setMillisecondMinValue(java.lang.Integer millisecondMinValue)
useTextField
is false and millisecondValues
is unset, this attribute
specifies the minimum value present in the millisecond picker. Used for specifying a limited set of valid Millisecond values, or when using the TimeItem to record duration, rather than time per-se. The default is zero in all cases.
See also millisecondMaxValue
and millisecondIncrement
.
millisecondMinValue
- millisecondMinValue Default value is nullpublic java.lang.Integer getMillisecondMinValue()
useTextField
is false and millisecondValues
is unset, this attribute
specifies the minimum value present in the millisecond picker. Used for specifying a limited set of valid Millisecond values, or when using the TimeItem to record duration, rather than time per-se. The default is zero in all cases.
See also millisecondMaxValue
and millisecondIncrement
.
public void setMillisecondValues(java.lang.Integer... millisecondValues)
millisecond picker
when useTextField
is false.
Used for specifying a limited set of valid Millisecond values, or when using the TimeItem to record duration, rather than time per-se.
See millisecondMinValue
, millisecondMaxValue
and millisecondIncrement
for another method of controlling the content in the millisecond picker.
If this method is called after the component has been drawn/initialized:
Sets the array of valid millisecond values
to use when useTextField
is false.
Used for limiting available valid Millisecond values, or when using the TimeItem to record duration, rather than time per-se.
See millisecondMinValue
, millisecondMaxValue
and millisecondIncrement
for another method of controlling the content in the millisecond picker.
millisecondValues
- array of available Millisecond values. Default value is nullpublic java.lang.Integer[] getMillisecondValues()
millisecond picker
when useTextField
is false.
Used for specifying a limited set of valid Millisecond values, or when using the TimeItem to record duration, rather than time per-se.
See millisecondMinValue
, millisecondMaxValue
and millisecondIncrement
for another method of controlling the content in the millisecond picker.
millisecondValues
or generated according to
millisecondMinValue
, millisecondMaxValue
and millisecondIncrement
.public void setMinuteIncrement(java.lang.Integer minuteIncrement)
useTextField
is false and minuteValues
is unset, this attribute specifies the
increment to use when generating entries for the minute picker. For example, if this attribute is set to 5, the minute
picker will contain only every fifth value between the minuteMinValue
and minuteMaxValue
.minuteIncrement
- minuteIncrement Default value is nullpublic java.lang.Integer getMinuteIncrement()
useTextField
is false and minuteValues
is unset, this attribute specifies the
increment to use when generating entries for the minute picker. For example, if this attribute is set to 5, the minute
picker will contain only every fifth value between the minuteMinValue
and minuteMaxValue
.public SelectItem getMinuteItem()
duration
when useTextField
is false.
For an overview of how to use and configure AutoChildren, see Using AutoChildren
.
public void setMinuteItemPrompt(java.lang.String minuteItemPrompt)
minute picker
.minuteItemPrompt
- . See String
. Default value is "Choose minutes"public java.lang.String getMinuteItemPrompt()
minute picker
.String
public void setMinuteItemProperties(SelectItem minuteItemProperties)
minute picker
.
Note : This is an advanced setting
minuteItemProperties
- minuteItemProperties Default value is nullpublic SelectItem getMinuteItemProperties()
minute picker
.public void setMinuteItemTitle(java.lang.String minuteItemTitle)
minute picker
.minuteItemTitle
- . See String
. Default value is "Min"public java.lang.String getMinuteItemTitle()
minute picker
.String
public void setMinuteMaxValue(java.lang.Integer minuteMaxValue)
useTextField
is false and minuteValues
is unset, this attribute specifies the
maximum value present in the minute picker. Used for specifying a limited set of valid Minute values, or when using the TimeItem to record duration, rather than time per-se. The default 59.
See also minuteMinValue
and minuteIncrement
.
minuteMaxValue
- minuteMaxValue Default value is nullpublic java.lang.Integer getMinuteMaxValue()
useTextField
is false and minuteValues
is unset, this attribute specifies the
maximum value present in the minute picker. Used for specifying a limited set of valid Minute values, or when using the TimeItem to record duration, rather than time per-se. The default 59.
See also minuteMinValue
and minuteIncrement
.
public void setMinuteMinValue(java.lang.Integer minuteMinValue)
useTextField
is false and minuteValues
is unset, this attribute specifies the
minimum value present in the minute picker. Used for specifying a limited set of valid Minute values, or when using the TimeItem to record duration, rather than time per-se. The default is zero in all cases.
See also minuteMaxValue
and minuteIncrement
.
minuteMinValue
- minuteMinValue Default value is nullpublic java.lang.Integer getMinuteMinValue()
useTextField
is false and minuteValues
is unset, this attribute specifies the
minimum value present in the minute picker. Used for specifying a limited set of valid Minute values, or when using the TimeItem to record duration, rather than time per-se. The default is zero in all cases.
See also minuteMaxValue
and minuteIncrement
.
public void setMinuteValues(java.lang.Integer... minuteValues)
minute
picker
when useTextField
is false. Used for specifying a limited set of valid Minute values, or when using the TimeItem to record duration, rather than time per-se.
See minuteMinValue
, minuteMaxValue
and minuteIncrement
for another method of controlling
the content in the minute picker.
If this method is called after the component has been drawn/initialized:
Sets the array of valid minute values
to use when useTextField
is false.
Used for limiting available valid Minute values, or when using the TimeItem to record duration, rather than time per-se.
See minuteMinValue
, minuteMaxValue
and minuteIncrement
for another method of controlling the content in the minute picker.
minuteValues
- array of available Minute values. Default value is nullpublic java.lang.Integer[] getMinuteValues()
minute
picker
when useTextField
is false. Used for specifying a limited set of valid Minute values, or when using the TimeItem to record duration, rather than time per-se.
See minuteMinValue
, minuteMaxValue
and minuteIncrement
for another method of controlling
the content in the minute picker.
minuteValues
or generated according to minuteMinValue
, minuteMaxValue
and minuteIncrement
.public void setSecondIncrement(java.lang.Integer secondIncrement)
useTextField
is false and secondValues
is unset, this attribute specifies the
increment to use when generating entries for the second picker. For example, if this attribute is set to 5, the second
picker will contain only every fifth value between the secondMinValue
and secondMaxValue
.secondIncrement
- secondIncrement Default value is nullpublic java.lang.Integer getSecondIncrement()
useTextField
is false and secondValues
is unset, this attribute specifies the
increment to use when generating entries for the second picker. For example, if this attribute is set to 5, the second
picker will contain only every fifth value between the secondMinValue
and secondMaxValue
.public SelectItem getSecondItem()
duration
when useTextField
is false.
For an overview of how to use and configure AutoChildren, see Using AutoChildren
.
public void setSecondItemPrompt(java.lang.String secondItemPrompt)
second picker
.secondItemPrompt
- . See String
. Default value is "Choose seconds"public java.lang.String getSecondItemPrompt()
second picker
.String
public void setSecondItemProperties(SelectItem secondItemProperties)
seconds picker
.
Note : This is an advanced setting
secondItemProperties
- secondItemProperties Default value is nullpublic SelectItem getSecondItemProperties()
seconds picker
.public void setSecondItemTitle(java.lang.String secondItemTitle)
second picker
.secondItemTitle
- . See String
. Default value is "Sec"public java.lang.String getSecondItemTitle()
second picker
.String
public void setSecondMaxValue(java.lang.Integer secondMaxValue)
useTextField
is false and secondValues
is unset, this attribute specifies the
maximum value present in the second picker. Used for specifying a limited set of valid Second values, or when using the TimeItem to record duration, rather than time per-se. The default is 59.
See also secondMinValue
and secondIncrement
.
secondMaxValue
- secondMaxValue Default value is nullpublic java.lang.Integer getSecondMaxValue()
useTextField
is false and secondValues
is unset, this attribute specifies the
maximum value present in the second picker. Used for specifying a limited set of valid Second values, or when using the TimeItem to record duration, rather than time per-se. The default is 59.
See also secondMinValue
and secondIncrement
.
public void setSecondMinValue(java.lang.Integer secondMinValue)
useTextField
is false and secondValues
is unset, this attribute specifies the
minimum value present in the second picker. Used for specifying a limited set of valid Second values, or when using the TimeItem to record duration, rather than time per-se. The default is zero in all cases.
See also secondMaxValue
and secondIncrement
.
secondMinValue
- secondMinValue Default value is nullpublic java.lang.Integer getSecondMinValue()
useTextField
is false and secondValues
is unset, this attribute specifies the
minimum value present in the second picker. Used for specifying a limited set of valid Second values, or when using the TimeItem to record duration, rather than time per-se. The default is zero in all cases.
See also secondMaxValue
and secondIncrement
.
public void setSecondValues(java.lang.Integer... secondValues)
second
picker
when useTextField
is false. Used for specifying a limited set of valid Second values, or when using the TimeItem to record duration, rather than time per-se.
See secondMinValue
, secondMaxValue
and secondIncrement
for another method of controlling
the content in the second picker.
If this method is called after the component has been drawn/initialized:
Sets the array of valid second values
to use when useTextField
is false.
Used for limiting available valid Second values, or when using the TimeItem to record duration, rather than time per-se.
See secondMinValue
, secondMaxValue
and secondIncrement
for another method of controlling the content in the second picker.
secondValues
- array of available Second values. Default value is nullpublic java.lang.Integer[] getSecondValues()
second
picker
when useTextField
is false. Used for specifying a limited set of valid Second values, or when using the TimeItem to record duration, rather than time per-se.
See secondMinValue
, secondMaxValue
and secondIncrement
for another method of controlling
the content in the second picker.
secondValues
or generated according to secondMinValue
, secondMaxValue
and secondIncrement
.public void setShowHourItem(java.lang.Boolean showHourItem)
hourItem
when
useTextField
is false.showHourItem
- showHourItem Default value is truepublic java.lang.Boolean getShowHourItem()
hourItem
when
useTextField
is false.public void setShowMillisecondItem(java.lang.Boolean showMillisecondItem)
millisecondItem
when useTextField
is false.showMillisecondItem
- showMillisecondItem Default value is falsepublic java.lang.Boolean getShowMillisecondItem()
millisecondItem
when useTextField
is false.public void setShowMinuteItem(java.lang.Boolean showMinuteItem)
minuteItem
when
useTextField
is false.showMinuteItem
- showMinuteItem Default value is truepublic java.lang.Boolean getShowMinuteItem()
minuteItem
when
useTextField
is false.public void setShowSecondItem(java.lang.Boolean showSecondItem)
secondItem
when
useTextField
is false.showSecondItem
- showSecondItem Default value is truepublic java.lang.Boolean getShowSecondItem()
secondItem
when
useTextField
is false.public void setTextAlign(Alignment textAlign)
useTextField
is true
, this
property governs the alignment of text within the text field. Defaults to "left"
by default or
"right"
if the page is in rtl mode
.setTextAlign
in class FormItem
textAlign
- textAlign Default value is variesAppearance overview and related methods
public Alignment getTextAlign()
useTextField
is true
, this
property governs the alignment of text within the text field. Defaults to "left"
by default or
"right"
if the page is in rtl mode
.getTextAlign
in class FormItem
Appearance overview and related methods
public void setTextBoxStyle(java.lang.String textBoxStyle)
textField
if useTextField
is set to true
.setTextBoxStyle
in class TextItem
textBoxStyle
- . See CSSStyleName
. Default value is nullAppearance overview and related methods
public java.lang.String getTextBoxStyle()
textField
if useTextField
is set to true
.getTextBoxStyle
in class TextItem
CSSStyleName
Appearance overview and related methods
public TextItem getTextField()
useTextField
is true.
For an overview of how to use and configure AutoChildren, see Using AutoChildren
.
public void setTextFieldProperties(TextItem textFieldProperties)
text field
generated for this timeItem when useTextField
is true.
Note : This is an advanced setting
textFieldProperties
- textFieldProperties Default value is nullpublic TextItem getTextFieldProperties()
text field
generated for this timeItem when useTextField
is true.public void setTimeFormatter(TimeDisplayFormat timeFormatter)
timeFormatter
or the system-sidesetTimeFormatter
in class FormItem
timeFormatter
- timeFormatter Default value is "toShort24HourTime"Appearance overview and related methods
public TimeDisplayFormat getTimeFormatter()
timeFormatter
or the system-sidegetTimeFormatter
in class FormItem
Appearance overview and related methods
public void setUse24HourTime(java.lang.Boolean use24HourTime)
use24HourTime
- use24HourTime Default value is nullpublic java.lang.Boolean getUse24HourTime()
public void setUseMask(java.lang.Boolean useMask)
timeFormatter
. Note that if a non-padded timeFormatter
is specified, it will be changed to the
corresponding padded version (ex. "toShort24HourTime" will be changed to "toShortPadded24HourTime").
Note : This is an advanced setting
useMask
- useMask Default value is nullpublic java.lang.Boolean getUseMask()
timeFormatter
. Note that if a non-padded timeFormatter
is specified, it will be changed to the
corresponding padded version (ex. "toShort24HourTime" will be changed to "toShortPadded24HourTime").
public void setUseTextField(java.lang.Boolean useTextField)
useTextField
- useTextField Default value is truepublic java.lang.Boolean getUseTextField()
public void deselectValue()
useTextField
is true, falls through to
standard FormItem.deselectValue
implementation on
this items freeform text entry field. Otherwise has no effect.deselectValue
in class TextItem
public void deselectValue(java.lang.Boolean start)
useTextField
is true, falls through to
standard FormItem.deselectValue
implementation on
this items freeform text entry field. Otherwise has no effect.deselectValue
in class TextItem
start
- If this parameter is passed, new cursor insertion position will be moved to the start, rather than the end of this
item's value.public int getDuration()
useTextField
is set to false, this method
returns the value of the time expressed as a duration in the timeUnit
provided. If no timeUnit is passed, the default is the smallest unit for which a picker is visible.public int getDuration(TimeUnit timeUnit)
useTextField
is set to false, this method
returns the value of the time expressed as a duration in the timeUnit
provided. If no timeUnit is passed, the default is the smallest unit for which a picker is visible.timeUnit
- the unit of the return valuepublic java.lang.String getEnteredValue()
useTextField
is true (otherwise returns the result of
this.getValue()).getEnteredValue
in class TextItem
public void selectValue()
useTextField
is true, falls through to
standard FormItem.selectValue
implementation on
this items freeform text entry field. Otherwise has no effect.selectValue
in class TextItem
public void setHours(int hours)
hours
- new hours value for this TimeItem.public void setMilliseconds(int milliseconds)
milliseconds
- new milliseconds value for this TimeItem.public void setMinutes(int minutes)
minutes
- new minutes value for this TimeItem.public void setSeconds(int seconds)
seconds
- new seconds value for this TimeItem.public void setSelectionRange(int start, int end)
useTextField
is true, falls through to
standard FormItem.setSelectionRange
implementation on this items freeform text entry field. Otherwise has no effect.setSelectionRange
in class TextItem
start
- character index for start of new selectionend
- character index for end of new selectionpublic static void setDefaultProperties(TimeItem timeItemProperties)
Note: This method is intended for setting default attributes only and will effect 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.
timeItemProperties
- properties that should be used as new defaults when instances of this class are createdpublic void setDisplayFormat(TimeFormatter timeFormatter)
setDisplayFormat(TimeDisplayFormat)
instead.setDisplayFormat
in class FormItem
timeFormatter
- displayFormat Default value is "toShort24HourTime"FormItem.setInputFormat(java.lang.String)
,
FormItem.setDateFormatter(com.smartgwt.client.types.DateDisplayFormat)
,
FormItem.setTimeFormatter(com.smartgwt.client.types.TimeDisplayFormat)
@Deprecated public void setDisplayFormat(TimeDisplayFormat timeFormatter)
getTimeFormatter()
instead.TimeDisplayFormat
- displayFormat Default value is "toShort24HourTime"@Deprecated public TimeDisplayFormat getDisplayFormat()
setTimeFormatter(com.smartgwt.client.types.TimeDisplayFormat)
instead.public int[] getSelectionRange()
useTextField
is true, falls through to
standard com.smartgwt.client.widgets.form.fields.FormItem#getSelectionRange
implementation on this item's
freeform text entry field. Otherwise has no effect.getSelectionRange
in class TextItem