public class MaskedTextBox extends com.google.gwt.user.client.ui.Composite implements HasFormatter, com.google.gwt.i18n.client.HasDirection, com.google.gwt.event.dom.client.HasChangeHandlers, com.google.gwt.event.logical.shared.HasValueChangeHandlers<String>, com.google.gwt.event.dom.client.HasClickHandlers, com.google.gwt.event.dom.client.HasAllFocusHandlers, com.google.gwt.event.dom.client.HasAllKeyHandlers, com.google.gwt.event.dom.client.HasAllMouseHandlers, com.google.gwt.user.client.ui.HasName, HasPasteHandlers, com.google.gwt.event.dom.client.HasDoubleClickHandlers, com.google.gwt.user.client.ui.HasEnabled, com.google.gwt.user.client.ui.Focusable, com.google.gwt.user.client.ui.HasText
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_STYLE_NAME |
protected com.google.gwt.user.client.ui.TextBox |
textBox |
| Modifier | Constructor and Description |
|---|---|
|
MaskedTextBox()
Constructor
|
|
MaskedTextBox(Formatter formatter)
Constructor
|
protected |
MaskedTextBox(com.google.gwt.user.client.ui.TextBox textBox) |
| 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 |
addFocusHandler(com.google.gwt.event.dom.client.FocusHandler 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 |
addPasteHandler(PasteHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<String> handler) |
protected static String |
generateNewId()
Creates a sequential id
|
com.google.gwt.i18n.client.HasDirection.Direction |
getDirection() |
Formatter |
getFormatter() |
int |
getMaxLength() |
String |
getName() |
int |
getTabIndex() |
String |
getText() |
Object |
getUnformattedValue() |
String |
getValue() |
boolean |
isClearIfNotValid() |
boolean |
isEnabled() |
boolean |
isReadOnly() |
void |
setAccessKey(char key) |
void |
setClearIfNotValid(boolean clearIfNotValid) |
void |
setDirection(com.google.gwt.i18n.client.HasDirection.Direction direction) |
void |
setEnabled(boolean enabled) |
void |
setFocus(boolean focused) |
void |
setFormatter(Formatter formatter)
Sets a formatter for widget.
|
void |
setFormatter(Formatter formatter,
boolean applyMask)
Sets a formatter for widget.
|
void |
setMaxLength(int length) |
void |
setName(String name) |
void |
setReadOnly(boolean readOnly) |
void |
setTabIndex(int index) |
void |
setText(String text) |
void |
setUnformattedValue(Object value) |
void |
setUnformattedValue(Object value,
boolean fireEnvents) |
void |
setValue(Object value) |
static MaskedTextBox |
wrap(com.google.gwt.dom.client.Element element,
Formatter formatter) |
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, 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, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringpublic static final String DEFAULT_STYLE_NAME
protected com.google.gwt.user.client.ui.TextBox textBox
public MaskedTextBox()
public MaskedTextBox(Formatter formatter)
formatter - protected MaskedTextBox(com.google.gwt.user.client.ui.TextBox textBox)
textBox - formatter - public static MaskedTextBox wrap(com.google.gwt.dom.client.Element element, Formatter formatter)
element - formatter - public Formatter getFormatter()
getFormatter in interface HasFormatterpublic void setFormatter(Formatter formatter)
formatter - public void setFormatter(Formatter formatter, boolean applyMask)
formatter - applyMask - public int getMaxLength()
public void setMaxLength(int length)
length - public Object getUnformattedValue()
getUnformattedValue in interface HasFormatterpublic String getValue()
public String getText()
getText in interface com.google.gwt.user.client.ui.HasTextpublic void setValue(Object value)
public void setUnformattedValue(Object value, boolean fireEnvents)
value - public void setUnformattedValue(Object value)
setUnformattedValue in interface HasFormattervalue - protected static String generateNewId()
public com.google.gwt.i18n.client.HasDirection.Direction getDirection()
getDirection in interface com.google.gwt.i18n.client.HasDirectionpublic void setDirection(com.google.gwt.i18n.client.HasDirection.Direction direction)
setDirection in interface com.google.gwt.i18n.client.HasDirectionpublic 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 addValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<String> handler)
addValueChangeHandler in interface com.google.gwt.event.logical.shared.HasValueChangeHandlers<String>public 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 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 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 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 boolean isReadOnly()
public void setReadOnly(boolean readOnly)
public String getName()
getName in interface com.google.gwt.user.client.ui.HasNamepublic void setName(String name)
setName in interface com.google.gwt.user.client.ui.HasNamepublic int getTabIndex()
getTabIndex in interface com.google.gwt.user.client.ui.Focusablepublic boolean isEnabled()
isEnabled in interface com.google.gwt.user.client.ui.HasEnabledpublic void setEnabled(boolean enabled)
setEnabled in interface com.google.gwt.user.client.ui.HasEnabledpublic void setFocus(boolean focused)
setFocus in interface com.google.gwt.user.client.ui.Focusablepublic void setTabIndex(int index)
setTabIndex in interface com.google.gwt.user.client.ui.Focusablepublic void setAccessKey(char key)
setAccessKey in interface com.google.gwt.user.client.ui.Focusablepublic com.google.gwt.event.shared.HandlerRegistration addPasteHandler(PasteHandler handler)
addPasteHandler in interface HasPasteHandlerspublic 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 boolean isClearIfNotValid()
public void setClearIfNotValid(boolean clearIfNotValid)
clearIfNotValid - the clearIfNotValid to setpublic void setText(String text)
setText in interface com.google.gwt.user.client.ui.HasTextCopyright © 2014. All rights reserved.