VALUE - is the generic type of the value.public abstract class InputBox<VALUE> extends com.google.gwt.user.client.ui.ValueBoxBase<VALUE> implements AttributeWriteDataList, AttributeWriteMaximumTextLength, AttributeWriteHtmlId
InputBox extends ValueBoxBase for HTML5 input widgets.com.google.gwt.user.client.ui.ValueBoxBase.TextAlignmentHTML_ATTRIBUTE_ID, ID_SEPARATOR, PROPERTY_ID| Constructor and Description |
|---|
InputBox(com.google.gwt.dom.client.InputElement element,
com.google.gwt.text.shared.Renderer<VALUE> renderer,
com.google.gwt.text.shared.Parser<VALUE> parser)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getId()
This method gets the unique identifier of this object.
|
protected com.google.gwt.dom.client.InputElement |
getInputElement() |
int |
getMaximumTextLength()
This method gets the maximum text length of this object.
|
void |
setDataList(DataList dataList) |
void |
setId(String id)
This method set the
ID of this object. |
void |
setMaximumTextLength(int length)
This method sets the
maximum text length of this object. |
addChangeHandler, addValueChangeHandler, asEditor, cancelKey, getCursorPos, getDirection, getDirectionEstimator, getImpl, getName, getSelectedText, getSelectionLength, getText, getValue, getValueOrThrow, isReadOnly, onBrowserEvent, onLoad, 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, toStringpublic InputBox(com.google.gwt.dom.client.InputElement element,
com.google.gwt.text.shared.Renderer<VALUE> renderer,
com.google.gwt.text.shared.Parser<VALUE> parser)
element - - see getInputElement().renderer - is the Renderer for the <VALUE>.parser - is the Parser for the <VALUE>.public void setDataList(DataList dataList)
setDataList in interface AttributeWriteDataListdataList - is the DataList to set.protected com.google.gwt.dom.client.InputElement getInputElement()
element as InputElement.public int getMaximumTextLength()
Integer.MAX_VALUE if no
maximum is defined.getMaximumTextLength in interface AttributeReadMaximumTextLengthpublic void setMaximumTextLength(int length)
maximum text length of this object. setMaximumTextLength in interface AttributeWriteMaximumTextLengthlength - is the new maximum text length to set. Use
Integer.MAX_VALUE to unset.public String getId()
[a-zA-Z][a-zA-Z0-9_$]*.
Invalid IDs (e.g. containing colon, hash or period) are not accepted to prevent you from later having
problems with CSS selectors.getId in interface AttributeReadHtmlIdgetId in interface AttributeReadId<String>AttributeReadHtmlId.ID_SEPARATORpublic void setId(String id)
ID of this object. Use this method to give the object a meaningful
identifier after creation. AttributeReadHtmlId.getId() for the syntax constraints of IDs.setId in interface AttributeWriteHtmlIdsetId in interface AttributeWriteId<String>id - is the new ID for the object.Copyright © 2001–2016 mmm-Team. All rights reserved.