com.google.gwt.user.client.ui
Class TextBoxBase

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.FocusWidget
              extended by com.google.gwt.user.client.ui.ValueBoxBase<java.lang.String>
                  extended by com.google.gwt.user.client.ui.TextBoxBase
All Implemented Interfaces:
HasAllFocusHandlers, HasAllKeyHandlers, HasAllMouseHandlers, HasBlurHandlers, HasChangeHandlers, HasClickHandlers, HasFocusHandlers, HasKeyDownHandlers, HasKeyPressHandlers, HasKeyUpHandlers, HasMouseDownHandlers, HasMouseMoveHandlers, HasMouseOutHandlers, HasMouseOverHandlers, HasMouseUpHandlers, HasMouseWheelHandlers, HasValueChangeHandlers<java.lang.String>, HasHandlers, AutoDirectionHandler.Target, HasDirection, HasDirectionEstimator, EventListener, Focusable, HasFocus, HasName, HasText, HasValue<java.lang.String>, SourcesChangeEvents, SourcesClickEvents, SourcesFocusEvents, SourcesKeyboardEvents, SourcesMouseEvents, TakesValue<java.lang.String>
Direct Known Subclasses:
TextArea, TextBox

public class TextBoxBase
extends ValueBoxBase<java.lang.String>

Legacy abstract base class for all text entry widgets.


Nested Class Summary
static class TextBoxBase.TextAlignConstant
          Text alignment constant, used in ValueBoxBase.setTextAlignment(TextBoxBase.TextAlignConstant).
 
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.i18n.client.HasDirection
HasDirection.Direction
 
Field Summary
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.
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Method Summary
 java.lang.String getValue()
          Overridden to return "" from an empty text box.
 
Methods inherited from class com.google.gwt.user.client.ui.ValueBoxBase
addChangeHandler, addChangeListener, addValueChangeHandler, cancelKey, getCursorPos, getDirection, getDirectionEstimator, getName, getSelectedText, getSelectionLength, getText, getValueOrThrow, isReadOnly, onBrowserEvent, removeChangeListener, selectAll, setCursorPos, setDirection, setDirectionEstimator, setDirectionEstimator, setKey, setName, setReadOnly, setSelectionRange, setText, setTextAlignment, setValue, setValue
 
Methods inherited from class com.google.gwt.user.client.ui.FocusWidget
addBlurHandler, addClickHandler, addClickListener, addFocusHandler, addFocusListener, addKeyboardListener, addKeyDownHandler, addKeyPressHandler, addKeyUpHandler, addMouseDownHandler, addMouseListener, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseUpHandler, addMouseWheelHandler, addMouseWheelListener, getTabIndex, isEnabled, removeClickListener, removeFocusListener, removeKeyboardListener, removeMouseListener, removeMouseWheelListener, setAccessKey, setEnabled, setFocus, setTabIndex
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
fireEvent, getLayoutData, getParent, isAttached, removeFromParent, setLayoutData, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
equals, 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
 

Field Detail

ALIGN_CENTER

public static final TextBoxBase.TextAlignConstant ALIGN_CENTER
Center the text.


ALIGN_JUSTIFY

public static final TextBoxBase.TextAlignConstant ALIGN_JUSTIFY
Justify the text.


ALIGN_LEFT

public static final TextBoxBase.TextAlignConstant ALIGN_LEFT
Align the text to the left edge.


ALIGN_RIGHT

public static final TextBoxBase.TextAlignConstant ALIGN_RIGHT
Align the text to the right.

Method Detail

getValue

public java.lang.String getValue()
Overridden to return "" from an empty text box.

Specified by:
getValue in interface HasValue<java.lang.String>
Specified by:
getValue in interface TakesValue<java.lang.String>
Overrides:
getValue in class ValueBoxBase<java.lang.String>
Returns:
the object's value