public class TextArea extends ValueBaseField<String>
Field.FieldStyles
impl
forceInvalidText, hasFocus, name, originalValue, parseError, preventMark, validationTask
valueUpdater
adjustSize, allowTextSelection, cacheSizes, disableContextMenu, disabled, disabledStyle, ensureVisibilityOnSizing, height, hidden, lastSize, layer, left, mask, maskMessage, monitorWindowResize, pageX, pageY, resizeHandler, shim, tabIndex, toolTip, toolTipConfig, top, width, windowResizeDelay, windowResizeTask
Constructor and Description |
---|
TextArea()
Creates a new TextArea
|
TextArea(TextAreaInputCell cell)
Creates a new text area with the specified cell.
|
Modifier and Type | Method and Description |
---|---|
int |
getCursorPos()
Gets the cursor position.
|
TextAreaInputCell.Resizable |
getResizable()
Returns the resizable value.
|
int |
getSelectionLength()
Gets the selection length
|
boolean |
isPreventScrollbars()
Returns true if scroll bars are disabled.
|
protected void |
onRedraw() |
void |
setPreventScrollbars(boolean preventScrollbars)
True to prevent scrollbars from appearing regardless of how much text is in
the field (equivalent to setting overflow: hidden, defaults to false.
|
void |
setResizable(TextAreaInputCell.Resizable resizable)
Sets whether the field can be resized (defaults to NONE).
|
addChangeHandler, addKeyDownHandler, addKeyPressHandler, addKeyUpHandler, addParseErrorHandler, clear, doAutoValidate, getCell, getCurrentValue, getDirection, getDirectionEstimator, getEmptyText, getFocusEl, getImpl, getInputEl, getPropertyEditor, getSelectedText, getText, getValueOrThrow, isAllowBlank, isClearValueOnParseError, isCurrentValid, isCurrentValid, isReadOnly, isSelectOnFocus, onCellParseError, select, selectAll, setAllowBlank, setClearValueOnParseError, setCursorPos, setDirection, setDirectionEstimator, setDirectionEstimator, setEmptyText, setId, setPropertyEditor, setReadOnly, setSelectionRange, setSelectOnFocus, setTabIndex, setText, setValue, validateCurrent
addInvalidHandler, addValidator, addValidHandler, addValueChangeHandler, clearInvalid, finishEditing, flush, forceInvalid, getErrors, getErrorSupport, getName, getOriginalValue, getValidateOnBlur, getValidationDelay, getValidators, isAutoValidate, isEditing, isValid, isValid, markInvalid, markInvalid, onBlur, onBrowserEvent, onDetach, onDisable, onEnable, onFocus, onKeyDown, onKeyPress, onKeyUp, onLogicalBlur, onLogicalFocus, onNavigationKey, onPropertyChange, removeValidator, reset, setAutoValidate, setDelegate, setErrors, setErrorSupport, setName, setOriginalValue, setValidateOnBlur, setValidationDelay, setValue, showErrors, validate, validate, validateValue
createContext, getElement, getKey, getKeyProvider, getValue, onAfterFirstAttach, onResize, redraw, redraw, setKeyProvider, setValue
addBeforeHideHandler, addBeforeShowContextMenuHandler, addBeforeShowHandler, addBlurHandler, addDisableHandler, addEnableHandler, addFocusHandler, addHideHandler, addMoveHandler, addResizeHandler, addShowContextMenuHandler, addShowHandler, addStyleDependentName, addStyleOnOver, adjustPosition, adjustSize, applyState, assertAfterRender, assertPreRender, blur, clearSizeCache, disable, disableContextMenu, disableEvents, enable, enableEvents, fireCancellableEvent, fireEvent, focus, getData, getFocusSupport, getHideMode, getId, getItemId, getOffsetHeight, getOffsetWidth, getPositionEl, getShadow, getShadowPosition, getStateId, getTabIndex, getToolTip, hide, hideShadow, hideToolTip, isAllowTextSelection, isAutoHeight, isAutoWidth, isDeferHeight, isEnabled, isMonitorWindowResize, isRendered, isStateful, isVisible, isVisible, mask, mask, notifyHide, notifyShow, onAttach, onHide, onHideContextMenu, onLoad, onPosition, onRightClick, onShow, onShowContextMenu, onUnload, onWindowResize, removeStyleDependentName, removeStyleOnOver, removeToolTip, setAllowTextSelection, setBorders, setBounds, setBounds, setContextMenu, setData, setDeferHeight, setEnabled, setHeight, setHeight, setHideMode, setItemId, setMonitorWindowResize, setPagePosition, setPixelSize, setPosition, setShadow, setShadowPosition, setSize, setStateful, setStateId, setStyleDependentName, setToolTip, setToolTipConfig, setVisible, setWidth, setWidth, show, sync, syncSize, unmask
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addBlurHandler
public TextArea()
public TextArea(TextAreaInputCell cell)
cell
- a text area input cell that renders the text areapublic int getCursorPos()
getCursorPos
in class ValueBaseField<String>
public TextAreaInputCell.Resizable getResizable()
public int getSelectionLength()
getSelectionLength
in class ValueBaseField<String>
public boolean isPreventScrollbars()
protected void onRedraw()
onRedraw
in class ValueBaseField<String>
public void setPreventScrollbars(boolean preventScrollbars)
preventScrollbars
- true to disable scroll barspublic void setResizable(TextAreaInputCell.Resizable resizable)
resizable
- the resizable valueCopyright © 2018. All rights reserved.