public class TimeField extends ComboBox<Date>
Field.FieldStyles
autoComplete
impl
forceInvalidText, hasFocus, name, originalValue, parseError, preventMark, validationTask
valueUpdater
adjustSize, allowTextSelection, cacheSizes, disableContextMenu, disabled, disabledStyle, ensureVisibilityOnSizing, height, hidden, lastSize, layer, left, mask, maskMessage, monitorWindowResize, pageX, pageY, resizeHandler, shim, tabIndex, toolTip, toolTipConfig, top, width, windowResizeDelay, windowResizeTask
Constructor and Description |
---|
TimeField()
Creates a new time field.
|
TimeField(TimeFieldCell cell)
Creates a new time field.
|
Modifier and Type | Method and Description |
---|---|
TimeFieldCell |
getCell()
Get the
Cell wrapped by this widget. |
DateTimeFormat |
getFormat()
Returns the date time format.
|
int |
getIncrement()
Returns the number of minutes between each time value.
|
Date |
getMaxValue()
Returns the field's max value.
|
Date |
getMinValue()
Returns the fields minimum value.
|
protected void |
onCellParseError(ParseErrorEvent event) |
void |
setFormat(DateTimeFormat format)
Sets the date time format used to format each entry (defaults to
PredefinedFormat#TIME_SHORT ). |
void |
setIncrement(int increment)
Sets the number of minutes between each time value in the list (defaults to
15).
|
void |
setMaxValue(Date value)
Sets the field's max value.
|
void |
setMinValue(Date value)
The minimum allowed time (no default value).
|
addBeforeQueryHandler, addBeforeSelectionHandler, addCollapseHandler, addExpandHandler, addSelectionHandler, clear, collapse, doQuery, expand, getAllQuery, getLabelProvider, getListView, getLoader, getMaxHeight, getMinChars, getMinListWidth, getPageSize, getQueryDelay, getStore, getTriggerAction, getTypeAheadDelay, isExpanded, isForceSelection, isTypeAhead, isUseQueryCache, onAfterFirstAttach, onDetach, select, select, setAllQuery, setExpanded, setForceSelection, setLoader, setLoadingHtml, setLoadingText, setMaxHeight, setMinChars, setMinListWidth, setPageSize, setQueryDelay, setStore, setTriggerAction, setTypeAhead, setTypeAheadDelay, setUseQueryCache
addTriggerClickHandler, isEditable, isFinishEditOnEnter, isMonitorTab, onBlur, setEditable, setFinishEditOnEnter, setHideTrigger, setMonitorTab
addChangeHandler, addKeyDownHandler, addKeyPressHandler, addKeyUpHandler, addParseErrorHandler, doAutoValidate, getCurrentValue, getCursorPos, getDirection, getDirectionEstimator, getEmptyText, getFocusEl, getImpl, getInputEl, getPropertyEditor, getSelectedText, getSelectionLength, getText, getValueOrThrow, isAllowBlank, isClearValueOnParseError, isCurrentValid, isCurrentValid, isReadOnly, isSelectOnFocus, onRedraw, select, selectAll, setAllowBlank, setClearValueOnParseError, setCursorPos, setDirection, setDirectionEstimator, setDirectionEstimator, setEmptyText, setId, setPropertyEditor, setReadOnly, setSelectionRange, setSelectOnFocus, setTabIndex, setText, setValue, validateCurrent
addInvalidHandler, addValidator, addValidHandler, addValueChangeHandler, clearInvalid, finishEditing, flush, forceInvalid, getErrors, getErrorSupport, getName, getOriginalValue, getValidateOnBlur, getValidationDelay, getValidators, isAutoValidate, isEditing, isValid, isValid, markInvalid, markInvalid, onBrowserEvent, onDisable, onEnable, onFocus, onKeyDown, onKeyPress, onKeyUp, onLogicalBlur, onLogicalFocus, onNavigationKey, onPropertyChange, removeValidator, reset, setAutoValidate, setDelegate, setErrors, setErrorSupport, setName, setOriginalValue, setValidateOnBlur, setValidationDelay, setValue, showErrors, validate, validate, validateValue
createContext, getElement, getKey, getKeyProvider, getValue, onResize, redraw, redraw, setKeyProvider, setValue
addBeforeHideHandler, addBeforeShowContextMenuHandler, addBeforeShowHandler, addBlurHandler, addDisableHandler, addEnableHandler, addFocusHandler, addHideHandler, addMoveHandler, addResizeHandler, addShowContextMenuHandler, addShowHandler, addStyleDependentName, addStyleOnOver, adjustPosition, adjustSize, applyState, assertAfterRender, assertPreRender, blur, clearSizeCache, disable, disableContextMenu, disableEvents, enable, enableEvents, fireCancellableEvent, fireEvent, focus, getData, getFocusSupport, getHideMode, getId, getItemId, getOffsetHeight, getOffsetWidth, getPositionEl, getShadow, getShadowPosition, getStateId, getTabIndex, getToolTip, hide, hideShadow, hideToolTip, isAllowTextSelection, isAutoHeight, isAutoWidth, isDeferHeight, isEnabled, isMonitorWindowResize, isRendered, isStateful, isVisible, isVisible, mask, mask, notifyHide, notifyShow, onAttach, onHide, onHideContextMenu, onLoad, onPosition, onRightClick, onShow, onShowContextMenu, onUnload, onWindowResize, removeStyleDependentName, removeStyleOnOver, removeToolTip, setAllowTextSelection, setBorders, setBounds, setBounds, setContextMenu, setData, setDeferHeight, setEnabled, setHeight, setHeight, setHideMode, setItemId, setMonitorWindowResize, setPagePosition, setPixelSize, setPosition, setShadow, setShadowPosition, setSize, setStateful, setStateId, setStyleDependentName, setToolTip, setToolTipConfig, setVisible, setWidth, setWidth, show, sync, syncSize, unmask
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addBlurHandler
public TimeField()
public TimeField(TimeFieldCell cell)
cell
- the time field cellpublic TimeFieldCell getCell()
CellComponent
Cell
wrapped by this widget.public DateTimeFormat getFormat()
public int getIncrement()
public Date getMaxValue()
public Date getMinValue()
public void setFormat(DateTimeFormat format)
PredefinedFormat#TIME_SHORT
).format
- the date time formatpublic void setIncrement(int increment)
increment
- the incrementpublic void setMaxValue(Date value)
value
- the max valuepublic void setMinValue(Date value)
value
- the minimum dateprotected void onCellParseError(ParseErrorEvent event)
onCellParseError
in class ComboBox<Date>
Copyright © 2018. All rights reserved.