public class PasswordTextBox
extends com.google.gwt.user.client.ui.TextBoxBase
com.google.gwt.user.client.ui.TextBoxBase.TextAlignConstantcom.google.gwt.user.client.ui.ValueBoxBase.TextAlignment| Constructor and Description |
|---|
PasswordTextBox()
Textbox for password input.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addErrorOuptut(IErrorOutputElement errorOutputToAdd)
Add an error output element where error messages are displayed
|
void |
addValidator(IValidator<String> validatorToAdd)
Adds a validator to this Ui-Widget
|
void |
clearValidation()
Clears the component of all validation results.
|
void |
onBlur(com.google.gwt.event.dom.client.BlurEvent event) |
void |
onFocus(com.google.gwt.event.dom.client.FocusEvent event) |
void |
onInitialLoad()
When the widget is loaded first time.
|
protected void |
onLoad() |
void |
onTransitionEnd()
When an transition containing this widget ends.
|
void |
removeAllValidators()
Will remove all registered validators.
|
void |
setMaxLength(int length)
Sets the maximum allowable length of the text box.
|
void |
setPlaceholder(String placeholder)
Sets a Placehoder text
|
void |
setSecondaryStyle(String style)
Will set the secondary style.
|
boolean |
validate()
Validates the current content of the widget with the underlying validators.
|
addChangeListener, getValue, setTextAlignmentaddChangeHandler, addValueChangeHandler, asEditor, cancelKey, getCursorPos, getDirection, getDirectionEstimator, getImpl, getName, getSelectedText, getSelectionLength, getText, getValueOrThrow, isReadOnly, onBrowserEvent, removeChangeListener, selectAll, setAlignment, setCursorPos, setDirection, setDirectionEstimator, setDirectionEstimator, setKey, setName, setReadOnly, setSelectionRange, setText, setValue, setValueaddBlurHandler, addClickHandler, addClickListener, addDoubleClickHandler, addDragEndHandler, addDragEnterHandler, addDragHandler, addDragLeaveHandler, addDragOverHandler, addDragStartHandler, addDropHandler, addFocusHandler, addFocusListener, addGestureChangeHandler, addGestureEndHandler, addGestureStartHandler, addKeyboardListener, addKeyDownHandler, addKeyPressHandler, addKeyUpHandler, addMouseDownHandler, addMouseListener, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseUpHandler, addMouseWheelHandler, addMouseWheelListener, addTouchCancelHandler, addTouchEndHandler, addTouchMoveHandler, addTouchStartHandler, getFocusImpl, getTabIndex, isEnabled, onAttach, removeClickListener, removeFocusListener, removeKeyboardListener, removeMouseListener, removeMouseWheelListener, setAccessKey, setEnabled, setFocus, setTabIndexaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, 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, waitpublic PasswordTextBox()
public void setPlaceholder(String placeholder)
placeholder - Placeholderpublic void addValidator(IValidator<String> validatorToAdd)
validatorToAdd - the validtors to addpublic void addErrorOuptut(IErrorOutputElement errorOutputToAdd)
errorOutputToAdd - the error output element to addpublic void removeAllValidators()
public boolean validate()
IHasValidatorvalidate in interface IHasValidatorpublic void clearValidation()
IHasValidatorclearValidation in interface IHasValidatorprotected void onLoad()
onLoad in class com.google.gwt.user.client.ui.ValueBoxBase<String>public void onFocus(com.google.gwt.event.dom.client.FocusEvent event)
onFocus in interface com.google.gwt.event.dom.client.FocusHandlerpublic void onBlur(com.google.gwt.event.dom.client.BlurEvent event)
onBlur in interface com.google.gwt.event.dom.client.BlurHandlerpublic void onInitialLoad()
IsSWMMobileWidgetonInitialLoad in interface IsSWMMobileWidgetpublic void onTransitionEnd()
IsSWMMobileWidgetonTransitionEnd in interface IsSWMMobileWidgetpublic void setSecondaryStyle(String style)
IsSWMMobileWidgetsetSecondaryStyle in interface IsSWMMobileWidgetstyle - the style to set.public void setMaxLength(int length)
length - the maximum length, in charactersCopyright © 2011–2015 SWM. All rights reserved.