public class MaterialValueBox<T> extends MaterialWidget implements com.google.gwt.event.dom.client.HasChangeHandlers, com.google.gwt.user.client.ui.HasName, com.google.gwt.i18n.shared.HasDirectionEstimator, com.google.gwt.user.client.ui.HasValue<T>, com.google.gwt.user.client.ui.HasText, com.google.gwt.i18n.client.AutoDirectionHandler.Target, com.google.gwt.editor.client.IsEditor<com.google.gwt.editor.ui.client.adapters.ValueBoxEditor<T>>, com.google.gwt.event.dom.client.HasKeyUpHandlers, com.google.gwt.event.dom.client.HasClickHandlers, com.google.gwt.event.dom.client.HasDoubleClickHandlers, com.google.gwt.event.dom.client.HasAllDragAndDropHandlers, com.google.gwt.event.dom.client.HasAllFocusHandlers, HasIcon, com.google.gwt.event.dom.client.HasAllGestureHandlers, com.google.gwt.event.dom.client.HasAllKeyHandlers, com.google.gwt.event.dom.client.HasAllMouseHandlers, com.google.gwt.event.dom.client.HasAllTouchHandlers, HasError, HasInputType, HasPlaceholder, HasCounter, com.google.gwt.editor.client.HasEditorErrors<T>, HasErrorHandler, HasValidators<T>, HasBlankValidator
<m:MaterialTextBox placeholder="First Name" />
| Modifier and Type | Class and Description |
|---|---|
class |
MaterialValueBox.MaterialValueBoxEditor<V> |
MaterialWidget.Featurecom.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabledcom.google.gwt.i18n.client.HasDirection.Directioncom.google.gwt.editor.client.Editor.Ignore, com.google.gwt.editor.client.Editor.Path| Modifier and Type | Field and Description |
|---|---|
protected com.google.gwt.user.client.ui.ValueBoxBase<T> |
valueBoxBase |
TYPE| Modifier | Constructor and Description |
|---|---|
protected |
MaterialValueBox() |
|
MaterialValueBox(com.google.gwt.user.client.ui.ValueBoxBase<T> tValueBox) |
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.event.shared.HandlerRegistration |
addBlurHandler(com.google.gwt.event.dom.client.BlurHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addChangeHandler(com.google.gwt.event.dom.client.ChangeHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addClickHandler(com.google.gwt.event.dom.client.ClickHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addDoubleClickHandler(com.google.gwt.event.dom.client.DoubleClickHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addDragEndHandler(com.google.gwt.event.dom.client.DragEndHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addDragEnterHandler(com.google.gwt.event.dom.client.DragEnterHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addDragHandler(com.google.gwt.event.dom.client.DragHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addDragLeaveHandler(com.google.gwt.event.dom.client.DragLeaveHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addDragOverHandler(com.google.gwt.event.dom.client.DragOverHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addDragStartHandler(com.google.gwt.event.dom.client.DragStartHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addDropHandler(com.google.gwt.event.dom.client.DropHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addFocusHandler(com.google.gwt.event.dom.client.FocusHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addGestureChangeHandler(com.google.gwt.event.dom.client.GestureChangeHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addGestureEndHandler(com.google.gwt.event.dom.client.GestureEndHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addGestureStartHandler(com.google.gwt.event.dom.client.GestureStartHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addKeyDownHandler(com.google.gwt.event.dom.client.KeyDownHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addKeyPressHandler(com.google.gwt.event.dom.client.KeyPressHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addKeyUpHandler(com.google.gwt.event.dom.client.KeyUpHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addMouseDownHandler(com.google.gwt.event.dom.client.MouseDownHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addMouseMoveHandler(com.google.gwt.event.dom.client.MouseMoveHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addMouseOutHandler(com.google.gwt.event.dom.client.MouseOutHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addMouseOverHandler(com.google.gwt.event.dom.client.MouseOverHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addMouseUpHandler(com.google.gwt.event.dom.client.MouseUpHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addMouseWheelHandler(com.google.gwt.event.dom.client.MouseWheelHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addTouchCancelHandler(com.google.gwt.event.dom.client.TouchCancelHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addTouchEndHandler(com.google.gwt.event.dom.client.TouchEndHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addTouchMoveHandler(com.google.gwt.event.dom.client.TouchMoveHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addTouchStartHandler(com.google.gwt.event.dom.client.TouchStartHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addValidationChangedHandler(ValidationChangedEvent.ValidationChangedHandler handler)
Adds a validation changed handler.
|
void |
addValidator(Validator<T> validator)
Adds the validator.
|
void |
addValueBox(com.google.gwt.user.client.ui.ValueBoxBase<T> widget)
Deprecated.
|
com.google.gwt.event.shared.HandlerRegistration |
addValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<T> handler) |
com.google.gwt.editor.ui.client.adapters.ValueBoxEditor<T> |
asEditor() |
com.google.gwt.user.client.ui.ValueBoxBase<T> |
asValueBoxBase() |
void |
clear()
Resets the textbox by removing its content and resetting visual state.
|
void |
clearErrorOrSuccess() |
com.google.gwt.i18n.client.HasDirection.Direction |
getDirection() |
com.google.gwt.i18n.shared.DirectionEstimator |
getDirectionEstimator() |
ErrorHandler |
getErrorHandler()
Gets the error handler.
|
ErrorHandlerType |
getErrorHandlerType()
Gets the error handler type.
|
MaterialIcon |
getIcon()
Get the icon widget.
|
int |
getLength()
Get the length of characters
|
String |
getName() |
String |
getPlaceholder() |
String |
getSelectedText() |
int |
getSelectionLength() |
int |
getTabIndex() |
String |
getText() |
InputType |
getType() |
T |
getValue() |
void |
initValueBox(com.google.gwt.user.client.ui.ValueBoxBase<T> tValueBox) |
boolean |
isAllowBlank() |
boolean |
isIconPrefix()
Is the icon prefix in the container.
|
boolean |
isReadOnly() |
boolean |
isValidateOnBlur()
Gets the validate on blur.
|
void |
onLoad() |
void |
removeErrorModifiers() |
boolean |
removeValidator(Validator<T> validator)
Removes the validator.
|
void |
reset()
Reset the form element to blank and clear error messages.
|
void |
setAccessKey(char key) |
void |
setAlignment(com.google.gwt.user.client.ui.ValueBoxBase.TextAlignment align) |
void |
setAllowBlank(boolean allowBlank) |
void |
setCursorPos(int pos) |
void |
setDirection(com.google.gwt.i18n.client.HasDirection.Direction direction) |
void |
setDirectionEstimator(boolean enabled) |
void |
setDirectionEstimator(com.google.gwt.i18n.shared.DirectionEstimator directionEstimator) |
void |
setEnabled(boolean enabled) |
void |
setError(String error)
Errors occur when an app fails to complete what is expected, such as:
- The app does not understand user input
- The system or app fails
- A user intends to run incompatible operations concurrently
|
void |
setErrorHandler(ErrorHandler errorHandler)
Sets the error handler.
|
void |
setErrorHandlerType(ErrorHandlerType errorHandlerType)
Sets the error handler type.
|
void |
setFocus(boolean focused) |
void |
setHelperText(String helperText) |
void |
setIconColor(String iconColor)
Sets the color of the icon.
|
void |
setIconFontSize(double size,
com.google.gwt.dom.client.Style.Unit unit)
Set the font size of the icon.
|
void |
setIconPosition(IconPosition position)
Set the position of the icon.
|
void |
setIconPrefix(boolean prefix)
Make the icon prefix in its container.
|
void |
setIconSize(IconSize size)
Size of icon.
|
void |
setIconType(IconType iconType)
Set Material Design icon.
|
void |
setLength(int length)
Sets the length of character
|
void |
setName(String name) |
void |
setPlaceholder(String placeholder) |
void |
setReadOnly(boolean readOnly) |
void |
setSelectionRange(int pos,
int length) |
void |
setSuccess(String success) |
void |
setTabIndex(int tabIndex) |
void |
setText(String text) |
void |
setType(InputType type) |
void |
setValidateOnBlur(boolean validateOnBlur)
Sets the validate on blur.
|
void |
setValidators(Validator<T>... validators)
The validators used to validate this object.
|
void |
setValue(T value) |
void |
setValue(T value,
boolean fireEvents) |
void |
showErrors(List<com.google.gwt.editor.client.EditorError> errors) |
protected void |
updateLabelActiveStyle()
Updates the style of the field label according to the field value if the
field value is empty - null or "" - removes the label 'active' style else
will add the 'active' style to the field label.
|
boolean |
validate()
Validate the field's value using the supplied validators.
|
boolean |
validate(boolean show)
Validate the field's value using the supplied validators.
|
add, add, clearActiveClass, enableFeature, getBackgroundColor, getCenterOn, getCenterOnMixin, getCircleMixin, getColorsMixin, getDataAttribute, getDepth, getEnabledMixin, getFlexboxMixin, getFloat, getFloatMixin, getFocusableMixin, getFontSize, getFontSizeMixin, getFontWeight, getFontWeightMixin, getGridMixin, getHideOn, getHideOnMixin, getHoverableMixin, getId, getIdMixin, getInitialClasses, getOpacity, getScrollspy, getScrollspyMixin, getSeparatorMixin, getShadow, getShadowMixin, getShowOn, getShowOnMixin, getTextAlign, getTextAlignMixin, getTextColor, getTooltip, getTooltipDelayMs, getTooltipMixin, getTooltipPosition, getTruncateMixin, getWaves, getWavesMixin, getWidth, getWidth, insert, insert, isCircle, isEnabled, isFeatureEnabled, isHoverable, isSeparator, setBackgroundColor, setBottom, setCenterOn, setCircle, setDataAttribute, setDepth, setDisplay, setFlex, setFlexAlignContent, setFlexAlignItems, setFlexAlignSelf, setFlexBasis, setFlexDirection, setFlexGrow, setFlexJustifyContent, setFlexOrder, setFlexShrink, setFlexWrap, setFloat, setFontSize, setFontSize, setFontWeight, setGrid, setGwtDisplay, setHideOn, setHoverable, setId, setInitialClasses, setLayoutPosition, setLeft, setMargin, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setOffset, setOpacity, setOverflow, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setRight, setScrollspy, setSeparator, setShadow, setShowOn, setTextAlign, setTextColor, setTooltip, setTooltipDelayMs, setTooltipPosition, setTop, setTruncate, setVisibility, setWaves, stopTouchStartEvent, stopTouchStartEventadd, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, iterator, remove, removeadd, adopt, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, 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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsetVisibleforEach, spliterator@Editor.Ignore protected com.google.gwt.user.client.ui.ValueBoxBase<T> valueBoxBase
protected MaterialValueBox()
public MaterialValueBox(com.google.gwt.user.client.ui.ValueBoxBase<T> tValueBox)
public void initValueBox(com.google.gwt.user.client.ui.ValueBoxBase<T> tValueBox)
@Deprecated @UiChild(limit=1) public void addValueBox(com.google.gwt.user.client.ui.ValueBoxBase<T> widget)
public void onLoad()
onLoad in class MaterialWidgetpublic void clear()
clear in interface com.google.gwt.user.client.ui.HasWidgetsclear in class com.google.gwt.user.client.ui.Panelpublic void removeErrorModifiers()
public String getText()
getText in interface com.google.gwt.i18n.client.AutoDirectionHandler.TargetgetText in interface com.google.gwt.user.client.ui.HasTextpublic void setText(String text)
setText in interface com.google.gwt.i18n.client.AutoDirectionHandler.TargetsetText in interface com.google.gwt.user.client.ui.HasTextpublic String getPlaceholder()
getPlaceholder in interface HasPlaceholderpublic void setPlaceholder(String placeholder)
setPlaceholder in interface HasPlaceholderpublic InputType getType()
getType in interface HasInputTypepublic void setType(InputType type)
setType in interface HasInputTypepublic com.google.gwt.event.shared.HandlerRegistration addValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<T> handler)
addValueChangeHandler in interface com.google.gwt.event.logical.shared.HasValueChangeHandlers<T>public void setValue(T value, boolean fireEvents)
setValue in interface com.google.gwt.user.client.ui.HasValue<T>public void setDirection(com.google.gwt.i18n.client.HasDirection.Direction direction)
setDirection in interface com.google.gwt.i18n.client.HasDirectionpublic com.google.gwt.i18n.client.HasDirection.Direction getDirection()
getDirection in interface com.google.gwt.i18n.client.HasDirectionpublic com.google.gwt.editor.ui.client.adapters.ValueBoxEditor<T> asEditor()
asEditor in interface com.google.gwt.editor.client.IsEditor<com.google.gwt.editor.ui.client.adapters.ValueBoxEditor<T>>public com.google.gwt.i18n.shared.DirectionEstimator getDirectionEstimator()
getDirectionEstimator in interface com.google.gwt.i18n.shared.HasDirectionEstimatorpublic void setDirectionEstimator(boolean enabled)
setDirectionEstimator in interface com.google.gwt.i18n.shared.HasDirectionEstimatorpublic void setDirectionEstimator(com.google.gwt.i18n.shared.DirectionEstimator directionEstimator)
setDirectionEstimator in interface com.google.gwt.i18n.shared.HasDirectionEstimatorpublic void setName(String name)
setName in interface com.google.gwt.user.client.ui.HasNamepublic String getName()
getName in interface com.google.gwt.user.client.ui.HasNamepublic com.google.gwt.event.shared.HandlerRegistration addKeyUpHandler(com.google.gwt.event.dom.client.KeyUpHandler handler)
addKeyUpHandler in interface com.google.gwt.event.dom.client.HasKeyUpHandlerspublic com.google.gwt.event.shared.HandlerRegistration addChangeHandler(com.google.gwt.event.dom.client.ChangeHandler handler)
addChangeHandler in interface com.google.gwt.event.dom.client.HasChangeHandlerspublic com.google.gwt.event.shared.HandlerRegistration addDragEndHandler(com.google.gwt.event.dom.client.DragEndHandler handler)
addDragEndHandler in interface com.google.gwt.event.dom.client.HasDragEndHandlerspublic com.google.gwt.event.shared.HandlerRegistration addDragEnterHandler(com.google.gwt.event.dom.client.DragEnterHandler handler)
addDragEnterHandler in interface com.google.gwt.event.dom.client.HasDragEnterHandlerspublic com.google.gwt.event.shared.HandlerRegistration addDragLeaveHandler(com.google.gwt.event.dom.client.DragLeaveHandler handler)
addDragLeaveHandler in interface com.google.gwt.event.dom.client.HasDragLeaveHandlerspublic com.google.gwt.event.shared.HandlerRegistration addDragHandler(com.google.gwt.event.dom.client.DragHandler handler)
addDragHandler in interface com.google.gwt.event.dom.client.HasDragHandlerspublic com.google.gwt.event.shared.HandlerRegistration addDragOverHandler(com.google.gwt.event.dom.client.DragOverHandler handler)
addDragOverHandler in interface com.google.gwt.event.dom.client.HasDragOverHandlerspublic com.google.gwt.event.shared.HandlerRegistration addDragStartHandler(com.google.gwt.event.dom.client.DragStartHandler handler)
addDragStartHandler in interface com.google.gwt.event.dom.client.HasDragStartHandlerspublic com.google.gwt.event.shared.HandlerRegistration addDropHandler(com.google.gwt.event.dom.client.DropHandler handler)
addDropHandler in interface com.google.gwt.event.dom.client.HasDropHandlerspublic com.google.gwt.event.shared.HandlerRegistration addFocusHandler(com.google.gwt.event.dom.client.FocusHandler handler)
addFocusHandler in interface com.google.gwt.event.dom.client.HasFocusHandlerspublic com.google.gwt.event.shared.HandlerRegistration addBlurHandler(com.google.gwt.event.dom.client.BlurHandler handler)
addBlurHandler in interface com.google.gwt.event.dom.client.HasBlurHandlerspublic com.google.gwt.event.shared.HandlerRegistration addGestureStartHandler(com.google.gwt.event.dom.client.GestureStartHandler handler)
addGestureStartHandler in interface com.google.gwt.event.dom.client.HasGestureStartHandlerspublic com.google.gwt.event.shared.HandlerRegistration addGestureChangeHandler(com.google.gwt.event.dom.client.GestureChangeHandler handler)
addGestureChangeHandler in interface com.google.gwt.event.dom.client.HasGestureChangeHandlerspublic com.google.gwt.event.shared.HandlerRegistration addGestureEndHandler(com.google.gwt.event.dom.client.GestureEndHandler handler)
addGestureEndHandler in interface com.google.gwt.event.dom.client.HasGestureEndHandlerspublic com.google.gwt.event.shared.HandlerRegistration addKeyDownHandler(com.google.gwt.event.dom.client.KeyDownHandler handler)
addKeyDownHandler in interface com.google.gwt.event.dom.client.HasKeyDownHandlerspublic com.google.gwt.event.shared.HandlerRegistration addKeyPressHandler(com.google.gwt.event.dom.client.KeyPressHandler handler)
addKeyPressHandler in interface com.google.gwt.event.dom.client.HasKeyPressHandlerspublic com.google.gwt.event.shared.HandlerRegistration addMouseDownHandler(com.google.gwt.event.dom.client.MouseDownHandler handler)
addMouseDownHandler in interface com.google.gwt.event.dom.client.HasMouseDownHandlerspublic com.google.gwt.event.shared.HandlerRegistration addMouseUpHandler(com.google.gwt.event.dom.client.MouseUpHandler handler)
addMouseUpHandler in interface com.google.gwt.event.dom.client.HasMouseUpHandlerspublic com.google.gwt.event.shared.HandlerRegistration addMouseOutHandler(com.google.gwt.event.dom.client.MouseOutHandler handler)
addMouseOutHandler in interface com.google.gwt.event.dom.client.HasMouseOutHandlerspublic com.google.gwt.event.shared.HandlerRegistration addMouseOverHandler(com.google.gwt.event.dom.client.MouseOverHandler handler)
addMouseOverHandler in interface com.google.gwt.event.dom.client.HasMouseOverHandlerspublic com.google.gwt.event.shared.HandlerRegistration addMouseMoveHandler(com.google.gwt.event.dom.client.MouseMoveHandler handler)
addMouseMoveHandler in interface com.google.gwt.event.dom.client.HasMouseMoveHandlerspublic com.google.gwt.event.shared.HandlerRegistration addMouseWheelHandler(com.google.gwt.event.dom.client.MouseWheelHandler handler)
addMouseWheelHandler in interface com.google.gwt.event.dom.client.HasMouseWheelHandlerspublic com.google.gwt.event.shared.HandlerRegistration addTouchStartHandler(com.google.gwt.event.dom.client.TouchStartHandler handler)
addTouchStartHandler in interface com.google.gwt.event.dom.client.HasTouchStartHandlerspublic com.google.gwt.event.shared.HandlerRegistration addTouchMoveHandler(com.google.gwt.event.dom.client.TouchMoveHandler handler)
addTouchMoveHandler in interface com.google.gwt.event.dom.client.HasTouchMoveHandlerspublic com.google.gwt.event.shared.HandlerRegistration addTouchEndHandler(com.google.gwt.event.dom.client.TouchEndHandler handler)
addTouchEndHandler in interface com.google.gwt.event.dom.client.HasTouchEndHandlerspublic com.google.gwt.event.shared.HandlerRegistration addTouchCancelHandler(com.google.gwt.event.dom.client.TouchCancelHandler handler)
addTouchCancelHandler in interface com.google.gwt.event.dom.client.HasTouchCancelHandlerspublic com.google.gwt.event.shared.HandlerRegistration addDoubleClickHandler(com.google.gwt.event.dom.client.DoubleClickHandler handler)
addDoubleClickHandler in interface com.google.gwt.event.dom.client.HasDoubleClickHandlerspublic com.google.gwt.event.shared.HandlerRegistration addClickHandler(com.google.gwt.event.dom.client.ClickHandler handler)
addClickHandler in interface com.google.gwt.event.dom.client.HasClickHandlerspublic void setError(String error)
HasErrorpublic void setSuccess(String success)
setSuccess in interface HasErrorpublic void setHelperText(String helperText)
setHelperText in interface HasErrorpublic void clearErrorOrSuccess()
clearErrorOrSuccess in interface HasErrorpublic MaterialIcon getIcon()
HasIconpublic void setIconType(IconType iconType)
HasIconhttps://www.google.com/design/icons/setIconType in interface HasIconpublic void setIconPosition(IconPosition position)
HasIconsetIconPosition in interface HasIconpublic void setIconSize(IconSize size)
HasIconsetIconSize in interface HasIconpublic void setIconFontSize(double size, com.google.gwt.dom.client.Style.Unit unit)
HasIconsetIconFontSize in interface HasIconpublic void setIconColor(String iconColor)
HasIconsetIconColor in interface HasIconpublic void setIconPrefix(boolean prefix)
HasIconsetIconPrefix in interface HasIconpublic boolean isIconPrefix()
HasIconisIconPrefix in interface HasIconpublic void setLength(int length)
HasCountersetLength in interface HasCounterpublic int getLength()
HasCountergetLength in interface HasCounter@Editor.Ignore public com.google.gwt.user.client.ui.ValueBoxBase<T> asValueBoxBase()
public void showErrors(List<com.google.gwt.editor.client.EditorError> errors)
showErrors in interface com.google.gwt.editor.client.HasEditorErrors<T>public int getTabIndex()
getTabIndex in interface com.google.gwt.user.client.ui.FocusablegetTabIndex in class MaterialWidgetpublic void setAccessKey(char key)
setAccessKey in interface com.google.gwt.user.client.ui.FocusablesetAccessKey in class MaterialWidgetpublic void setFocus(boolean focused)
setFocus in interface com.google.gwt.user.client.ui.FocusablesetFocus in class MaterialWidgetprotected void updateLabelActiveStyle()
public String getSelectedText()
public int getSelectionLength()
public void setSelectionRange(int pos, int length)
public void setReadOnly(boolean readOnly)
public boolean isReadOnly()
public void setCursorPos(int pos)
public void setAlignment(com.google.gwt.user.client.ui.ValueBoxBase.TextAlignment align)
public void setTabIndex(int tabIndex)
setTabIndex in interface com.google.gwt.user.client.ui.FocusablesetTabIndex in class MaterialWidgetpublic void setEnabled(boolean enabled)
setEnabled in interface com.google.gwt.user.client.ui.HasEnabledsetEnabled in class MaterialWidgetpublic boolean isAllowBlank()
isAllowBlank in interface HasBlankValidatorpublic void setAllowBlank(boolean allowBlank)
setAllowBlank in interface HasBlankValidatorallowBlank - the new allow blankpublic ErrorHandler getErrorHandler()
HasErrorHandlergetErrorHandler in interface HasErrorHandlerpublic void setErrorHandler(ErrorHandler errorHandler)
HasErrorHandlersetErrorHandler in interface HasErrorHandlererrorHandler - the new error handlerpublic ErrorHandlerType getErrorHandlerType()
HasErrorHandlergetErrorHandlerType in interface HasErrorHandlerpublic void setErrorHandlerType(ErrorHandlerType errorHandlerType)
HasErrorHandlersetErrorHandlerType in interface HasErrorHandlererrorHandlerType - the new error handler typepublic void addValidator(Validator<T> validator)
HasValidatorsaddValidator in interface HasValidators<T>validator - the validatorpublic boolean isValidateOnBlur()
HasValidatorsisValidateOnBlur in interface HasValidators<T>public boolean removeValidator(Validator<T> validator)
HasValidatorsremoveValidator in interface HasValidators<T>validator - the validatorpublic void reset()
HasValidatorsreset in interface HasValidators<T>public void setValidateOnBlur(boolean validateOnBlur)
HasValidatorssetValidateOnBlur in interface HasValidators<T>validateOnBlur - the new validate on blurpublic void setValidators(Validator<T>... validators)
HasValidatorssetValidators in interface HasValidators<T>validators - the new validatorspublic boolean validate()
HasValidatorsvalidate in interface HasValidators<T>public boolean validate(boolean show)
HasValidatorsvalidate in interface HasValidators<T>show - the error to the user.public com.google.gwt.event.shared.HandlerRegistration addValidationChangedHandler(ValidationChangedEvent.ValidationChangedHandler handler)
ValidationChangedEvent.HasValidationChangedHandlersaddValidationChangedHandler in interface ValidationChangedEvent.HasValidationChangedHandlershandler - the handlerCopyright © 2016. All rights reserved.