com.sencha.gxt.widget.core.client.form
Class TimeField

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.sencha.gxt.widget.core.client.Component
              extended by com.sencha.gxt.widget.core.client.cell.CellComponent<T>
                  extended by com.sencha.gxt.widget.core.client.form.Field<T>
                      extended by com.sencha.gxt.widget.core.client.form.ValueBaseField<T>
                          extended by com.sencha.gxt.widget.core.client.form.TriggerField<T>
                              extended by com.sencha.gxt.widget.core.client.form.ComboBox<Date>
                                  extended by com.sencha.gxt.widget.core.client.form.TimeField
All Implemented Interfaces:
Editor<Date>, HasEditorDelegate<Date>, HasEditorErrors<Date>, LeafValueEditor<Date>, ValueAwareEditor<Date>, HasChangeHandlers, HasKeyDownHandlers, HasKeyPressHandlers, HasKeyUpHandlers, HasAttachHandlers, HasBeforeSelectionHandlers<Date>, HasResizeHandlers, HasSelectionHandlers<Date>, HasValueChangeHandlers<Date>, HasHandlers, AutoDirectionHandler.Target, HasDirection, HasDirectionEstimator, EventListener, TakesValue<Date>, HasName, HasText, HasValue<Date>, HasVisibility, IsWidget, HasKeyProvider<Date>, BeforeHideEvent.HasBeforeHideHandlers, BeforeQueryEvent.HasBeforeQueryHandlers<Date>, BeforeShowContextMenuEvent.HasBeforeShowContextMenuHandler, BeforeShowEvent.HasBeforeShowHandlers, BlurEvent.HasBlurHandlers, CollapseEvent.HasCollapseHandlers, DisableEvent.HasDisableHandlers, EnableEvent.HasEnableHandlers, ExpandEvent.HasExpandHandlers, FocusEvent.HasFocusHandlers, HideEvent.HasHideHandlers, InvalidEvent.HasInvalidHandlers, MoveEvent.HasMoveHandlers, ParseErrorEvent.HasParseErrorHandlers, ShowContextMenuEvent.HasShowContextMenuHandler, ShowEvent.HasShowHandlers, TriggerClickEvent.HasTriggerClickHandlers, ValidEvent.HasValidHandlers, IsField<Date>, HasFocusSupport, HasItemId

public class TimeField
extends ComboBox<Date>

Provides a time input field with a time dropdown and automatic time validation.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.sencha.gxt.widget.core.client.form.Field
Field.FieldStyles
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
 
Nested classes/interfaces inherited from interface com.google.gwt.i18n.client.HasDirection
HasDirection.Direction
 
Field Summary
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
TimeField()
          Creates a new time field.
TimeField(TimeFieldCell cell)
          Creates a new time field.
 
Method Summary
 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.
 void setFormat(DateTimeFormat format)
          Sets the date time format used to format each entry (defaults to DateTimeFormat.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).
 
Methods inherited from class com.sencha.gxt.widget.core.client.form.ComboBox
addBeforeQueryHandler, addBeforeSelectionHandler, addCollapseHandler, addExpandHandler, addSelectionHandler, clear, collapse, doQuery, expand, getAllQuery, getLabelProvider, getListView, getLoader, getMinChars, getMinListWidth, getPageSize, getStore, getTriggerAction, getTypeAheadDelay, isExpanded, isForceSelection, isTypeAhead, select, select, setAllQuery, setExpanded, setForceSelection, setLoader, setMinChars, setMinListWidth, setPageSize, setStore, setTriggerAction, setTypeAhead, setTypeAheadDelay
 
Methods inherited from class com.sencha.gxt.widget.core.client.form.TriggerField
addTriggerClickHandler, isEditable, isMonitorTab, setEditable, setHideTrigger, setMonitorTab
 
Methods inherited from class com.sencha.gxt.widget.core.client.form.ValueBaseField
addChangeHandler, addKeyDownHandler, addKeyPressHandler, addKeyUpHandler, addParseErrorHandler, getCurrentValue, getCursorPos, getDirection, getDirectionEstimator, getEmptyText, getPropertyEditor, getSelectedText, getSelectionLength, getText, getValueOrThrow, isAllowBlank, isCurrentValid, isCurrentValid, isSelectOnFocus, select, selectAll, setAllowBlank, setCursorPos, setDirection, setDirectionEstimator, setDirectionEstimator, setEmptyText, setId, setPropertyEditor, setReadOnly, setSelectionRange, setSelectOnFocus, setText, setValue, validateCurrent
 
Methods inherited from class com.sencha.gxt.widget.core.client.form.Field
addInvalidHandler, addValidator, addValidHandler, addValueChangeHandler, clearInvalid, finishEditing, flush, forceInvalid, getErrorSupport, getName, getValidateOnBlur, getValidationDelay, getValidators, isAutoValidate, isEditing, isReadOnly, isValid, isValid, markInvalid, onBrowserEvent, onPropertyChange, removeValidator, reset, setAutoValidate, setDelegate, setErrorSupport, setName, setOriginalValue, setValidateOnBlur, setValidationDelay, setValue, showErrors, validate, validate
 
Methods inherited from class com.sencha.gxt.widget.core.client.cell.CellComponent
getElement, getKeyProvider, getValue, redraw, setValue
 
Methods inherited from class com.sencha.gxt.widget.core.client.Component
addBeforeHideHandler, addBeforeShowContextMenuHandler, addBeforeShowHandler, addBlurHandler, addDisableHandler, addEnableHandler, addFocusHandler, addHideHandler, addMoveHandler, addResizeHandler, addShowContextMenuHandler, addShowHandler, addStyleOnOver, clearSizeCache, disable, disableEvents, enable, enableEvents, fireEvent, focus, getData, getFocusSupport, getHideMode, getId, getItemId, getOffsetHeight, getOffsetWidth, getShadow, getStateId, getToolTip, hide, hideToolTip, isAllowTextSelection, isAutoHeight, isAutoWidth, isDeferHeight, isEnabled, isRendered, isStateful, isVisible, isVisible, mask, mask, removeToolTip, setAllowTextSelection, setBorders, setBounds, setBounds, setContextMenu, setData, setDeferHeight, setEnabled, setHeight, setHeight, setHideMode, setItemId, setPagePosition, setPixelSize, setPosition, setShadow, setSize, setStateful, setStateId, setTabIndex, setToolTip, setToolTipConfig, setVisible, setWidth, setWidth, show, sync, syncSize, unmask
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, getLayoutData, getParent, isAttached, removeFromParent, setLayoutData, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, removeStyleName, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, sinkBitlessEvent, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
 
Methods inherited from interface com.google.gwt.user.client.ui.IsWidget
asWidget
 
Methods inherited from interface com.google.gwt.user.client.TakesValue
getValue
 
Methods inherited from interface com.google.gwt.user.client.ui.HasValue
getValue, setValue
 

Constructor Detail

TimeField

public TimeField()
Creates a new time field.


TimeField

public TimeField(TimeFieldCell cell)
Creates a new time field.

Parameters:
cell - the time field cell
Method Detail

getCell

public TimeFieldCell getCell()
Description copied from class: CellComponent
Get the Cell wrapped by this widget.

Overrides:
getCell in class ComboBox<Date>
Returns:
the Cell being wrapped

getFormat

public DateTimeFormat getFormat()
Returns the date time format.

Returns:
the date time format

getIncrement

public int getIncrement()
Returns the number of minutes between each time value.

Returns:
the increment

getMaxValue

public Date getMaxValue()
Returns the field's max value.

Returns:
the max value

getMinValue

public Date getMinValue()
Returns the fields minimum value.

Returns:
the min value

setFormat

public void setFormat(DateTimeFormat format)
Sets the date time format used to format each entry (defaults to DateTimeFormat.PredefinedFormat.TIME_SHORT).

Parameters:
format - the date time format

setIncrement

public void setIncrement(int increment)
Sets the number of minutes between each time value in the list (defaults to 15).

Parameters:
increment - the increment

setMaxValue

public void setMaxValue(Date value)
Sets the field's max value.

Parameters:
value - the max value

setMinValue

public void setMinValue(Date value)
The minimum allowed time (no default value).

Parameters:
value - the minimum date


Copyright © 2012. All Rights Reserved.