Class AbstractTimeField<FIELD extends AbstractTimeField,VALUE>
- java.lang.Object
-
- org.teamapps.ux.component.AbstractComponent
-
- org.teamapps.ux.component.field.AbstractField<VALUE>
-
- org.teamapps.ux.component.field.datetime.AbstractTimeField<FIELD,VALUE>
-
- All Implemented Interfaces:
Component,TextInputHandlingField
- Direct Known Subclasses:
InstantTimeField,LocalTimeField
public abstract class AbstractTimeField<FIELD extends AbstractTimeField,VALUE> extends AbstractField<VALUE> implements TextInputHandlingField
-
-
Field Summary
Fields Modifier and Type Field Description Event<SpecialKey>onSpecialKeyPressedEvent<java.lang.String>onTextInput-
Fields inherited from class org.teamapps.ux.component.field.AbstractField
onValueChanged, onVisibilityChanged
-
Fields inherited from class org.teamapps.ux.component.AbstractComponent
onDestroyed, onRendered
-
-
Constructor Summary
Constructors Constructor Description AbstractTimeField()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoDestroy()Override this method to release resources whenever this component gets destroyedjava.lang.StringgetTimeFormat()voidhandleUiEvent(org.teamapps.dto.UiEvent event)booleanisShowClearButton()booleanisShowDropDownButton()voidmapAbstractTimeFieldUiValues(org.teamapps.dto.AbstractUiTimeField uiTimeField)Event<SpecialKey>onSpecialKeyPressed()Event<java.lang.String>onTextInput()voidsetShowClearButton(boolean showClearButton)voidsetShowDropDownButton(boolean showDropDownButton)voidsetTimeFormat(java.lang.String timeFormat)-
Methods inherited from class org.teamapps.ux.component.field.AbstractField
addFieldMessage, applyValueFromUi, convertUiValueToUxValue, convertUxValueToUiValue, focus, getEditingMode, getFieldMessages, getValue, isVisible, mapAbstractFieldAttributesToUiField, removeFieldMessage, removeFieldMessages, removeValidationMessages, setAndLockValue, setEditingMode, setFieldMessages, setValidationMessage, setValue, setVisible
-
Methods inherited from class org.teamapps.ux.component.AbstractComponent
createUiComponent, createUiComponentReference, destroy, getId, getParent, getSessionContext, isDestroyed, isEffectivelyVisible, isRendered, mapAbstractUiComponentProperties, queueCommandIfRendered, render, reRenderIfRendered, setCssStyle, setMargin, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setParent, setShadow, toString, unrender
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.teamapps.ux.component.Component
setCssStyle
-
Methods inherited from interface org.teamapps.ux.component.field.TextInputHandlingField
defaultHandleTextInputEvent
-
-
-
-
Field Detail
-
onTextInput
public final Event<java.lang.String> onTextInput
-
onSpecialKeyPressed
public final Event<SpecialKey> onSpecialKeyPressed
-
-
Method Detail
-
handleUiEvent
public void handleUiEvent(org.teamapps.dto.UiEvent event)
- Specified by:
handleUiEventin interfaceComponent- Overrides:
handleUiEventin classAbstractField<VALUE>
-
doDestroy
protected void doDestroy()
Description copied from class:AbstractComponentOverride this method to release resources whenever this component gets destroyed- Specified by:
doDestroyin classAbstractField<VALUE>
-
mapAbstractTimeFieldUiValues
public void mapAbstractTimeFieldUiValues(org.teamapps.dto.AbstractUiTimeField uiTimeField)
-
isShowDropDownButton
public boolean isShowDropDownButton()
-
setShowDropDownButton
public void setShowDropDownButton(boolean showDropDownButton)
-
getTimeFormat
public java.lang.String getTimeFormat()
-
setTimeFormat
public void setTimeFormat(java.lang.String timeFormat)
-
isShowClearButton
public boolean isShowClearButton()
-
setShowClearButton
public void setShowClearButton(boolean showClearButton)
-
onTextInput
public Event<java.lang.String> onTextInput()
- Specified by:
onTextInputin interfaceTextInputHandlingField
-
onSpecialKeyPressed
public Event<SpecialKey> onSpecialKeyPressed()
- Specified by:
onSpecialKeyPressedin interfaceTextInputHandlingField
-
-