|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.FocusWidget
com.google.gwt.user.client.ui.ValueBoxBase<T>
com.google.gwt.user.client.ui.ValueBox<T>
T - the value typepublic class ValueBox<T>
Experimental API: This class is still under rapid development, and is very likely to be deleted. Use it at your own risk.
A text box able to parse its displayed value.
| Nested Class Summary |
|---|
| 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 |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Method Summary | ||
|---|---|---|
HasDirection.Direction |
getDirection()
Gets the directionality of the widget. |
|
int |
getMaxLength()
Gets the maximum allowable length. |
|
int |
getVisibleLength()
Gets the number of visible characters. |
|
void |
setDirection(HasDirection.Direction direction)
Sets the directionality for a widget. |
|
void |
setMaxLength(int length)
Sets the maximum allowable length. |
|
void |
setVisibleLength(int length)
Sets the number of visible characters. |
|
static
|
wrap(Element element,
Renderer<T> renderer,
Parser<T> parser)
Creates a ValueBox widget that wraps an existing <input type='text'> element. |
|
| Methods inherited from class com.google.gwt.user.client.ui.ValueBoxBase |
|---|
addChangeHandler, addChangeListener, addValueChangeHandler, cancelKey, getCursorPos, getDirectionEstimator, getName, getSelectedText, getSelectionLength, getText, getValue, getValueOrThrow, isReadOnly, onBrowserEvent, removeChangeListener, selectAll, setCursorPos, setDirectionEstimator, setDirectionEstimator, setKey, setName, setReadOnly, setSelectionRange, setText, setTextAlignment, setValue, setValue |
| 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 |
| Method Detail |
|---|
public static <T> ValueBox<T> wrap(Element element,
Renderer<T> renderer,
Parser<T> parser)
RootPanel.detachNow(Widget).
element - the element to be wrappedpublic HasDirection.Direction getDirection()
HasDirection
getDirection in interface HasDirectiongetDirection in class ValueBoxBase<T>RTL if the directionality is right-to-left,
LTR if the directionality is left-to-right, or
DEFAULT if the directionality is not explicitly specifiedpublic int getMaxLength()
public int getVisibleLength()
public void setDirection(HasDirection.Direction direction)
HasDirection
setDirection in interface HasDirectionsetDirection in class ValueBoxBase<T>direction - RTL if the directionality should be set to right-to-left,
LTR if the directionality should be set to left-to-right
DEFAULT if the directionality should not be explicitly setpublic void setMaxLength(int length)
length - the maximum length, in characterspublic void setVisibleLength(int length)
length - the number of visible characters
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||