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
allowBlank, finishEditOnBlur, impl, name, propertyEditor
focusContext, height, lastContext, lastParent, lastValue, lastValueUpdater, width
Constructor and Description |
---|
TextAreaInputCell() |
TextAreaInputCell(TextAreaInputCell.TextAreaAppearance appearance) |
Modifier and Type | Method and Description |
---|---|
void |
finishEditing(Element parent,
String value,
Object key,
<any> 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(Context context,
Element parent,
String value,
NativeEvent event,
<any> valueUpdater) |
protected void |
onEnterKeyDown(com.google.gwt.cell.client.Cell.Context context,
Element parent,
String value,
NativeEvent event,
<any> valueUpdater) |
void |
render(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, applyEmptyText, disable, enable, getEmptyText, getFocusElement, getInputElement, getName, getPropertyEditor, getText, isAllowBlank, isClearValueOnParseError, isSelectOnFocus, onBlur, onClick, onEmpty, onFocus, onKeyUp, onMouseDown, onTap, removeEmptyText, resetFocus, select, selectAll, setAllowBlank, setClearValueOnParseError, setCursorPos, setEmptyText, setName, setPropertyEditor, setSelectOnFocus, setText
checkViewData, clearContext, ensureViewData, getHeight, getWidth, handlesSelection, hasFocus, isDisabled, isReadOnly, onKeyDown, onKeyPress, onMouseOut, onMouseOver, onMouseUp, onNavigationKey, onValid, redrawOnResize, saveContext, setHeight, setReadOnly, setSize, setWidth
addCellGestureAdapter, addHandler, createHandlerManager, fireCancellableEvent, fireCancellableEvent, fireEvent, fireEvent, getCellGestureAdapter, getCellGestureAdapterCount, getConsumedEvents, isDisableEvents, onTouch, removeCellGestureAdapter, setDisableEvents
public TextAreaInputCell()
public TextAreaInputCell(TextAreaInputCell.TextAreaAppearance appearance)
public void finishEditing(Element parent, String value, Object key, <any> 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(Context context, Element parent, String value, NativeEvent event, <any> valueUpdater)
onBrowserEvent
in class FieldCell<String>
public void render(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 heightprotected void onEnterKeyDown(com.google.gwt.cell.client.Cell.Context context, Element parent, String value, NativeEvent event, <any> valueUpdater)
public int getCursorPos(XElement parent)
ValueBaseInputCell
getCursorPos
in class ValueBaseInputCell<String>
parent
- the parentCopyright © 2018. All rights reserved.