T
- a sub-type of TextBox
to be usedpublic class SingleLineTextField<T extends com.google.gwt.user.client.ui.TextBox> extends TextfieldBase<T>
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
com.google.gwt.i18n.client.HasDirection.Direction
Constructor and Description |
---|
SingleLineTextField(String inputLabel,
T inputBox)
Setup a single line input field and a label.
|
SingleLineTextField(T inputBox)
Setup a single line input field.
|
Modifier and Type | Method and Description |
---|---|
protected com.google.gwt.user.client.ui.InlineLabel |
getErrorLabel()
The
TextfieldBase contains an InlineLabel under the hood to
display the hint inside the text box when it is empty. |
void |
removeValidator()
Stop validating the text field.
|
void |
setValidator(TextValidator inputValidator) |
addBlurHandler, addChangeHandler, addClickHandler, addDoubleClickHandler, addDragEndHandler, addDragEnterHandler, addDragHandler, addDragLeaveHandler, addDragOverHandler, addDragStartHandler, addDropHandler, addFocusHandler, addGestureChangeHandler, addGestureEndHandler, addGestureStartHandler, addKeyDownHandler, addKeyPressHandler, addKeyUpHandler, addMouseDownHandler, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseUpHandler, addMouseWheelHandler, addTouchCancelHandler, addTouchEndHandler, addTouchMoveHandler, addTouchStartHandler, addValueChangeHandler, asEditor, asTextBoxBase, cancelKey, getCursorPos, getDirection, getDirectionEstimator, getLabel, getMaxLength, getName, getSelectedText, getSelectionLength, getTabIndex, getText, getValue, getValueOrThrow, getVisibleLength, isEnabled, isReadOnly, isUpgraded, onBrowserEvent, onLoad, selectAll, setAccessKey, setAlignment, setCursorPos, setDirection, setDirectionEstimator, setDirectionEstimator, setEnabled, setFloat, setFocus, setLabel, setMaxLength, setName, setReadOnly, setSelectionRange, setTabIndex, setText, setValue, setValue, setVisibleLength, upgrade
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove
add, adopt, doAttachChildren, doDetachChildren, orphan, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onDetach, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public SingleLineTextField(T inputBox)
inputBox
- the input Widget to wrappublic final void setValidator(TextValidator inputValidator)
inputValidator
- the validation setup to be applied on the input textpublic final void removeValidator()
protected final com.google.gwt.user.client.ui.InlineLabel getErrorLabel()
TextfieldBase
contains an InlineLabel
under the hood to
display the hint inside the text box when it is empty.Copyright © 2016 com.github.ilyes4j. All rights reserved.