public class TextBoxBase extends ValueBoxBase<String> implements SourcesChangeEvents
The names of the static members of TextBoxBase
, as well as simple
alignment names (left
, center
, right
,
justify
), can be used as values for a textAlignment
attribute.
For example,
<g:TextBox textAlignment='ALIGN_RIGHT'/> <g:TextBox textAlignment='right'/>
Modifier and Type | Class and Description |
---|---|
static class |
TextBoxBase.TextAlignConstant
Deprecated.
|
ValueBoxBase.TextAlignment
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
HasDirection.Direction
Modifier and Type | Field and Description |
---|---|
static TextBoxBase.TextAlignConstant |
ALIGN_CENTER
Center the text.
|
static TextBoxBase.TextAlignConstant |
ALIGN_JUSTIFY
Justify the text.
|
static TextBoxBase.TextAlignConstant |
ALIGN_LEFT
Align the text to the left edge.
|
static TextBoxBase.TextAlignConstant |
ALIGN_RIGHT
Align the text to the right.
|
DEBUG_ID_PREFIX
Modifier | Constructor and Description |
---|---|
protected |
TextBoxBase(Element elem)
Creates a text box that wraps the given browser element handle.
|
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(ChangeListener listener)
Deprecated.
|
String |
getValue()
Overridden to return "" from an empty text box.
|
void |
setTextAlignment(TextBoxBase.TextAlignConstant align)
Deprecated.
|
addChangeHandler, addValueChangeHandler, asEditor, cancelKey, getCursorPos, getDirection, getDirectionEstimator, getImpl, getName, getSelectedText, getSelectionLength, getText, getValueOrThrow, isReadOnly, onBrowserEvent, onLoad, removeChangeListener, selectAll, setAlignment, setCursorPos, setDirection, setDirectionEstimator, setDirectionEstimator, setKey, setName, setReadOnly, setSelectionRange, setText, setValue, setValue
addBlurHandler, 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, setTabIndex
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, 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
removeChangeListener
addKeyUpHandler
fireEvent
public static final TextBoxBase.TextAlignConstant ALIGN_CENTER
public static final TextBoxBase.TextAlignConstant ALIGN_JUSTIFY
public static final TextBoxBase.TextAlignConstant ALIGN_LEFT
public static final TextBoxBase.TextAlignConstant ALIGN_RIGHT
protected TextBoxBase(Element elem)
elem
- the browser element to wrap@Deprecated public void addChangeListener(ChangeListener listener)
ValueBoxBase.addChangeHandler(com.google.gwt.event.dom.client.ChangeHandler)
insteadSourcesChangeEvents
addChangeListener
in interface SourcesChangeEvents
listener
- the listener interface to addpublic String getValue()
getValue
in interface TakesValue<String>
getValue
in interface HasValue<String>
getValue
in class ValueBoxBase<String>
TakesValue.setValue(V)
@Deprecated public void setTextAlignment(TextBoxBase.TextAlignConstant align)
ValueBoxBase.setAlignment(TextAlignment)
ValueBoxBase.setAlignment(TextAlignment)
.Copyright © 2018. All rights reserved.