public class TextAreaInputCell extends ValueBaseInputCell<String>
Modifier and Type | Class and Description |
---|---|
static class |
TextAreaInputCell.Resizable |
static interface |
TextAreaInputCell.TextAreaAppearance |
static class |
TextAreaInputCell.TextAreaCellOptions |
ValueBaseInputCell.ValueBaseFieldAppearance
FieldCell.FieldAppearance, FieldCell.FieldAppearanceOptions, FieldCell.FieldViewData
Cell.Context
Constructor and Description |
---|
TextAreaInputCell() |
TextAreaInputCell(TextAreaInputCell.TextAreaAppearance appearance) |
Modifier and Type | Method and Description |
---|---|
void |
finishEditing(Element parent,
String value,
Object key,
ValueUpdater<String> valueUpdater) |
TextAreaInputCell.TextAreaAppearance |
getAppearance()
Returns the cell's appearance.
|
int |
getCursorPos(XElement parent)
Gets the current position of the cursor (this also serves as the beginning of the text selection).
|
TextAreaInputCell.Resizable |
getResizable()
Returns the resizable value.
|
boolean |
isPreventScrollbars()
Returns true if scroll bars are disabled.
|
void |
onBrowserEvent(Cell.Context context,
Element parent,
String value,
NativeEvent event,
ValueUpdater<String> valueUpdater) |
void |
render(Cell.Context context,
String value,
SafeHtmlBuilder sb) |
void |
setPreventScrollbars(XElement parent,
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(XElement parent,
TextAreaInputCell.Resizable resizable)
Sets whether the field can be resized (defaults to NONE).
|
void |
setSize(XElement parent,
int width,
int height)
Sets the size of the cell without requiring a redraw.
|
addParseErrorHandler, disable, enable, getEmptyText, getFocusElement, getInputElement, getName, getPropertyEditor, getText, isAllowBlank, isClearValueOnParseError, isSelectOnFocus, onEmpty, resetFocus, select, selectAll, setAllowBlank, setClearValueOnParseError, setCursorPos, setEmptyText, setName, setPropertyEditor, setSelectOnFocus, setText
getHeight, getWidth, handlesSelection, isDisabled, isReadOnly, onValid, redrawOnResize, setHeight, setReadOnly, setSize, setWidth
addHandler, fireEvent, isDisableEvents, setDisableEvents
isEditing
clearViewData, getViewData, setViewData
dependsOnSelection, getConsumedEvents, setValue
public TextAreaInputCell()
public TextAreaInputCell(TextAreaInputCell.TextAreaAppearance appearance)
public void finishEditing(Element parent, String value, Object key, ValueUpdater<String> valueUpdater)
finishEditing
in class FieldCell<String>
public TextAreaInputCell.TextAreaAppearance getAppearance()
ValueBaseInputCell
getAppearance
in class ValueBaseInputCell<String>
public TextAreaInputCell.Resizable getResizable()
public boolean isPreventScrollbars()
public void onBrowserEvent(Cell.Context context, Element parent, String value, NativeEvent event, ValueUpdater<String> valueUpdater)
onBrowserEvent
in interface Cell<String>
onBrowserEvent
in class FieldCell<String>
public void render(Cell.Context context, String value, SafeHtmlBuilder sb)
public void setPreventScrollbars(XElement parent, boolean preventScrollbars)
preventScrollbars
- true to disable scroll barspublic void setResizable(XElement parent, TextAreaInputCell.Resizable resizable)
parent
- the parent elementresizable
- the resizable valuepublic void setSize(XElement parent, int width, int height)
ResizableCell
CellComponent
when ResizableCell.redrawOnResize()
returns false.setSize
in interface ResizableCell
setSize
in class FieldCell<String>
parent
- the parent elementwidth
- the widthheight
- the heightpublic int getCursorPos(XElement parent)
ValueBaseInputCell
getCursorPos
in class ValueBaseInputCell<String>
parent
- the parentCopyright © 2015. All rights reserved.