public abstract class ValueBaseFieldCell<T> extends FieldCell<T> implements ParseErrorEvent.HasParseErrorHandlers
| Modifier and Type | Class and Description |
|---|---|
static interface |
ValueBaseFieldCell.ValueBaseFieldAppearance |
FieldCell.FieldAppearance, FieldCell.FieldAppearanceOptions, FieldCell.FieldViewDataCell.Context| Constructor and Description |
|---|
ValueBaseFieldCell(ValueBaseFieldCell.ValueBaseFieldAppearance appearance) |
ValueBaseFieldCell(ValueBaseFieldCell.ValueBaseFieldAppearance appearance,
Set<String> consumedEvents) |
ValueBaseFieldCell(ValueBaseFieldCell.ValueBaseFieldAppearance appearance,
String... consumedEvents) |
| Modifier and Type | Method and Description |
|---|---|
HandlerRegistration |
addParseErrorHandler(ParseErrorEvent.ParseErrorHandler handler)
Adds a
ParseErrorEvent.ParseErrorHandler handler for ParseErrorEvent
events. |
ValueBaseFieldCell.ValueBaseFieldAppearance |
getAppearance()
Returns the cell's appearance.
|
String |
getEmptyText()
Returns the cell's empty text.
|
InputElement |
getInputElement(Element parent) |
String |
getName() |
PropertyEditor<T> |
getPropertyEditor() |
String |
getText(XElement parent) |
boolean |
isAllowBlank()
Returns the field's allow blank state.
|
boolean |
isSelectOnFocus()
Returns the select of focus state.
|
void |
onEmpty(XElement parent,
boolean empty) |
void |
select(XElement parent,
int start,
int length) |
void |
selectAll(XElement parent)
Selects all the text.
|
void |
setAllowBlank(boolean allowBlank)
Sets whether a field is valid when its value length = 0 (default to true).
|
void |
setEmptyText(Cell.Context context,
XElement parent,
String emptyText)
Sets the default text to display in an empty field (defaults to null).
|
void |
setName(XElement parent,
String name) |
void |
setPropertyEditor(PropertyEditor<T> propertyEditor)
Sets the field's property editor which is used to translate typed values to
string, and string values back to typed values.
|
void |
setSelectOnFocus(boolean selectOnFocus)
True to automatically select any existing field text when the field
receives input focus (defaults to false).
|
void |
setText(XElement parent,
String text)
Sets the underlying DOM field's value directly, bypassing validation.
|
finishEditing, getHeight, getWidth, isReadOnly, onBrowserEvent, onValid, setHeight, setReadOnly, setSize, setWidthaddHandler, fireEvent, isDisableEvents, setDisableEventsisEditing, resetFocusclearViewData, getViewData, setViewDatadependsOnSelection, getConsumedEvents, handlesSelection, render, setValuepublic ValueBaseFieldCell(ValueBaseFieldCell.ValueBaseFieldAppearance appearance)
public ValueBaseFieldCell(ValueBaseFieldCell.ValueBaseFieldAppearance appearance, Set<String> consumedEvents)
public ValueBaseFieldCell(ValueBaseFieldCell.ValueBaseFieldAppearance appearance, String... consumedEvents)
public HandlerRegistration addParseErrorHandler(ParseErrorEvent.ParseErrorHandler handler)
ParseErrorEvent.HasParseErrorHandlersParseErrorEvent.ParseErrorHandler handler for ParseErrorEvent
events.addParseErrorHandler in interface ParseErrorEvent.HasParseErrorHandlershandler - the handlerpublic ValueBaseFieldCell.ValueBaseFieldAppearance getAppearance()
public String getEmptyText()
public InputElement getInputElement(Element parent)
getInputElement in class AbstractInputCell<T,FieldCell.FieldViewData>public String getName()
public PropertyEditor<T> getPropertyEditor()
public boolean isAllowBlank()
public boolean isSelectOnFocus()
public void onEmpty(XElement parent, boolean empty)
public void select(XElement parent, int start, int length)
public void selectAll(XElement parent)
the - parentpublic void setAllowBlank(boolean allowBlank)
allowBlank - true to allow blanks, false otherwisepublic void setEmptyText(Cell.Context context, XElement parent, String emptyText)
the - contextparent - the parentemptyText - the empty textpublic void setPropertyEditor(PropertyEditor<T> propertyEditor)
propertyEditor - the property editorpublic void setSelectOnFocus(boolean selectOnFocus)
selectOnFocus - true to focuspublic void setText(XElement parent, String text)
AbstractCell.setValue(com.google.gwt.cell.client.Cell.Context, com.google.gwt.dom.client.Element, C).the - parent elementtext - the textCopyright © 2012. All Rights Reserved.