public class LimitedTextArea extends VerticalPanel implements HasText, HasAllKeyHandlers, HasChangeHandlers
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabledHasHorizontalAlignment.AutoHorizontalAlignmentConstant, HasHorizontalAlignment.HorizontalAlignmentConstantHasVerticalAlignment.VerticalAlignmentConstantInsertPanel.ForIsWidgetHasWidgets.ForIsWidgetDEBUG_ID_PREFIXALIGN_CENTER, ALIGN_DEFAULT, ALIGN_JUSTIFY, ALIGN_LEFT, ALIGN_LOCALE_END, ALIGN_LOCALE_START, ALIGN_RIGHTALIGN_BOTTOM, ALIGN_MIDDLE, ALIGN_TOP| Constructor and Description |
|---|
LimitedTextArea(int maxChars,
int width,
int height) |
| Modifier and Type | Method and Description |
|---|---|
HandlerRegistration |
addChangeHandler(ChangeHandler handler) |
HandlerRegistration |
addKeyDownHandler(KeyDownHandler handler) |
HandlerRegistration |
addKeyPressHandler(KeyPressHandler handler) |
HandlerRegistration |
addKeyUpHandler(KeyUpHandler handler) |
String |
getText() |
TextArea |
getTextArea()
Returns the text area being limited.
|
void |
setText(String text) |
add, getHorizontalAlignment, getVerticalAlignment, insert, insert, remove, setHorizontalAlignment, setVerticalAlignmentgetSpacing, setBorderWidth, setCellHeight, setCellHeight, setCellHorizontalAlignment, setCellHorizontalAlignment, setCellVerticalAlignment, setCellVerticalAlignment, setCellWidth, setCellWidth, setSpacinggetWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, iterator, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, fireEvent, getLayoutData, getParent, isAttached, onBrowserEvent, removeFromParent, setLayoutData, sinkEventsaddStyleDependentName, 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, sinkBitlessEvent, toString, unsinkEventsequals, getClass, hashCode, notify, notifyAll, wait, wait, waitfireEventaddgetWidgetIndexgetWidget, getWidgetCount, getWidgetIndex, removepublic TextArea getTextArea()
ValueBoxBase.setText(java.lang.String) directly on this
area. Use setText(java.lang.String).public HandlerRegistration addKeyDownHandler(KeyDownHandler handler)
addKeyDownHandler in interface HasKeyDownHandlerspublic HandlerRegistration addKeyUpHandler(KeyUpHandler handler)
addKeyUpHandler in interface HasKeyUpHandlerspublic HandlerRegistration addKeyPressHandler(KeyPressHandler handler)
addKeyPressHandler in interface HasKeyPressHandlerspublic HandlerRegistration addChangeHandler(ChangeHandler handler)
addChangeHandler in interface HasChangeHandlersCopyright © 2013. All Rights Reserved.