public class TextInputCell extends ValueBaseInputCell<String>
Modifier and Type | Class and Description |
---|---|
static interface |
TextInputCell.TextFieldAppearance |
ValueBaseInputCell.ValueBaseFieldAppearance
FieldCell.FieldAppearance, FieldCell.FieldAppearanceOptions, FieldCell.FieldViewData
Cell.Context
Constructor and Description |
---|
TextInputCell()
Constructs a TextInputCell that renders its text without HTML markup.
|
TextInputCell(TextInputCell.TextFieldAppearance appearance) |
Modifier and Type | Method and Description |
---|---|
void |
finishEditing(Element parent,
String value,
Object key,
ValueUpdater<String> valueUpdater) |
TextInputCell.TextFieldAppearance |
getAppearance()
Returns the cell's appearance.
|
void |
onBrowserEvent(Cell.Context context,
Element parent,
String value,
NativeEvent event,
ValueUpdater<String> valueUpdater) |
void |
render(Cell.Context context,
String value,
SafeHtmlBuilder sb) |
void |
setSize(XElement parent,
int width,
int height)
Sets the size of the cell without requiring a redraw.
|
addParseErrorHandler, disable, enable, getCursorPos, 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 TextInputCell()
public TextInputCell(TextInputCell.TextFieldAppearance appearance)
public void finishEditing(Element parent, String value, Object key, ValueUpdater<String> valueUpdater)
finishEditing
in class FieldCell<String>
public TextInputCell.TextFieldAppearance getAppearance()
ValueBaseInputCell
getAppearance
in class ValueBaseInputCell<String>
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 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 heightCopyright © 2015. All rights reserved.