public class ExpandingTextField extends TextField
The expanding text field have all the feature you would expect from a
TextField
. The expanding text field have an extra icon button on the
left side. When the focus is not on the expanding text field, only the icon
button is visible. When the icon button acquires the focus, the
TextField
part shows up and disappears as soon as the focus leaves
the expanding field.
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
com.google.gwt.i18n.client.HasDirection.Direction
Constructor and Description |
---|
ExpandingTextField(String icon)
While inheriting all the features of a
TextField , the
ExpandingTextField has a slightly different DOM structure than the
TextField it is inheriting from. |
getErrorLabel, removeValidator, setValidator
addBlurHandler, addChangeHandler, addClickHandler, addDoubleClickHandler, addDragEndHandler, addDragEnterHandler, addDragHandler, addDragLeaveHandler, addDragOverHandler, addDragStartHandler, addDropHandler, addFocusHandler, addGestureChangeHandler, addGestureEndHandler, addGestureStartHandler, addKeyDownHandler, addKeyPressHandler, addKeyUpHandler, addMouseDownHandler, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseUpHandler, addMouseWheelHandler, addTouchCancelHandler, addTouchEndHandler, addTouchMoveHandler, addTouchStartHandler, addValueChangeHandler, asEditor, asTextBoxBase, cancelKey, getCursorPos, getDirection, getDirectionEstimator, getLabel, getMaxLength, getName, getSelectedText, getSelectionLength, getTabIndex, getText, getValue, getValueOrThrow, getVisibleLength, isEnabled, isReadOnly, isUpgraded, onBrowserEvent, onLoad, selectAll, setAccessKey, setAlignment, setCursorPos, setDirection, setDirectionEstimator, setDirectionEstimator, setEnabled, setFloat, setFocus, setLabel, setMaxLength, setName, setReadOnly, setSelectionRange, setTabIndex, setText, setValue, setValue, setVisibleLength, upgrade
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove
add, adopt, doAttachChildren, doDetachChildren, orphan, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public ExpandingTextField(String icon)
TextField
, the
ExpandingTextField
has a slightly different DOM structure than the
TextField
it is inheriting from. Setting up an instance of an
expanding text field implies making some changes to the DOM structure of
the text field to make it suitable for the expanding text field.icon
- a material icon code for the action labelCopyright © 2016 com.github.ilyes4j. All rights reserved.