|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.FocusWidget
com.google.gwt.user.client.ui.ValueBoxBase<T>
org.gwtbootstrap3.client.ui.base.ValueBoxBase<T>
public class ValueBoxBase<T>
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.ValueBoxBase |
|---|
ValueBoxBase.TextAlignment |
| 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.editor.client.Editor |
|---|
Editor.Ignore, Editor.Path |
| 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 |
| Fields inherited from interface org.gwtbootstrap3.client.ui.base.HasPlaceholder |
|---|
PLACEHOLDER |
| Fields inherited from interface org.gwtbootstrap3.client.ui.base.HasAutoComplete |
|---|
AUTO_COMPLETE, OFF, ON |
| Constructor Summary | |
|---|---|
protected |
ValueBoxBase(Element elem,
Renderer<T> renderer,
Parser<T> parser)
Creates a value box that wraps the given browser element handle. |
| Method Summary | |
|---|---|
void |
addValidator(Validator<T> validator)
Adds the validator. |
boolean |
getAllowBlank()
|
String |
getAutoComplete()
Get the auto complete attribute from the widget |
ErrorHandler |
getErrorHandler()
Gets the error handler. |
ErrorHandlerType |
getErrorHandlerType()
Gets the error handler type. |
String |
getId()
Gets the ID of the widget |
String |
getPlaceholder()
|
InputSize |
getSize()
Get the size of the widget |
boolean |
getValidateOnBlur()
Gets the validate on blur. |
void |
reset()
Reset the form element to blank and clear error messages. |
void |
setAllowBlank(boolean allowBlank)
|
void |
setAutoComplete(boolean autoComplete)
Sets the auto complete property on the widget |
void |
setErrorHandler(ErrorHandler handler)
Sets the error handler. |
void |
setErrorHandlerType(ErrorHandlerType type)
Sets the error handler type. |
void |
setHiddenOn(DeviceSize deviceSize)
Sets the devices that the element is hidden on |
void |
setId(String id)
Sets the ID on the widget |
void |
setMaxLength(int maxLength)
|
void |
setPlaceholder(String placeHolder)
|
void |
setSize(InputSize size)
Set the size of the widget |
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,
boolean fireEvents)
|
void |
setVisibleOn(DeviceSize deviceSize)
Sets the devices that the element is visible on |
void |
showErrors(List<EditorError> errors)
|
boolean |
validate()
Validate the field's value using the supplied validators. |
boolean |
validate(boolean show)
Validate the field's value using the supplied validators. |
| Methods inherited from class com.google.gwt.user.client.ui.ValueBoxBase |
|---|
addChangeHandler, addValueChangeHandler, asEditor, cancelKey, getCursorPos, getDirection, getDirectionEstimator, getImpl, getName, getSelectedText, getSelectionLength, getText, getValue, getValueOrThrow, isReadOnly, onBrowserEvent, onLoad, removeChangeListener, selectAll, setAlignment, setCursorPos, setDirection, setDirectionEstimator, setDirectionEstimator, setKey, setName, setReadOnly, setSelectionRange, setText, setValue |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onDetach, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.google.gwt.event.dom.client.HasKeyUpHandlers |
|---|
addKeyUpHandler |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Constructor Detail |
|---|
protected ValueBoxBase(Element elem,
Renderer<T> renderer,
Parser<T> parser)
elem - the browser element to wrap| Method Detail |
|---|
public void setMaxLength(int maxLength)
public void setPlaceholder(String placeHolder)
setPlaceholder in interface HasPlaceholderpublic String getPlaceholder()
getPlaceholder in interface HasPlaceholderpublic void setAutoComplete(boolean autoComplete)
HasAutoComplete
setAutoComplete in interface HasAutoCompleteautoComplete - auto complete setting for the widgetpublic String getAutoComplete()
HasAutoComplete
getAutoComplete in interface HasAutoCompletepublic void setId(String id)
HasId
setId in interface HasIdid - String desired IDpublic String getId()
HasId
getId in interface HasIdpublic void setVisibleOn(DeviceSize deviceSize)
HasResponsiveness
setVisibleOn in interface HasResponsivenessdeviceSize - device sizeDeviceSizepublic void setHiddenOn(DeviceSize deviceSize)
HasResponsiveness
setHiddenOn in interface HasResponsivenessdeviceSize - device sizesDeviceSizepublic void setSize(InputSize size)
HasSize
setSize in interface HasSize<InputSize>size - T size of the widgetpublic InputSize getSize()
HasSize
getSize in interface HasSize<InputSize>
public void setValue(T value,
boolean fireEvents)
setValue in interface HasValue<T>setValue in class ValueBoxBase<T>public void showErrors(List<EditorError> errors)
showErrors in interface HasEditorErrors<T>public ErrorHandler getErrorHandler()
getErrorHandler in interface HasErrorHandlerpublic void setErrorHandler(ErrorHandler handler)
setErrorHandler in interface HasErrorHandlerhandler - the new error handlerpublic ErrorHandlerType getErrorHandlerType()
getErrorHandlerType in interface HasErrorHandlerpublic void setErrorHandlerType(ErrorHandlerType type)
setErrorHandlerType in interface HasErrorHandlertype - the new error handler typepublic void setAllowBlank(boolean allowBlank)
setAllowBlank in interface HasBlankValidator<T>allowBlank - the new allow blankpublic boolean getAllowBlank()
getAllowBlank in interface HasBlankValidator<T>public void addValidator(Validator<T> validator)
HasValidators
addValidator in interface HasValidators<T>validator - the validatorpublic boolean getValidateOnBlur()
HasValidators
getValidateOnBlur in interface HasValidators<T>public void setValidateOnBlur(boolean validateOnBlur)
HasValidators
setValidateOnBlur in interface HasValidators<T>validateOnBlur - the new validate on blurpublic void setValidators(Validator<T>... validators)
HasValidators
setValidators in interface HasValidators<T>validators - the new validatorspublic boolean validate()
HasValidators
validate in interface HasValidators<T>public boolean validate(boolean show)
HasValidators
validate in interface HasValidators<T>show - the error to the user.
public void reset()
HasValidators
reset in interface HasValidators<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||