|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.cell.client.AbstractCell<C>
com.google.gwt.cell.client.AbstractEditableCell<C,V>
com.google.gwt.cell.client.AbstractInputCell<T,V>
com.sencha.gxt.cell.core.client.AbstractEventInputCell<T,FieldCell.FieldViewData>
com.sencha.gxt.cell.core.client.form.FieldCell<T>
com.sencha.gxt.cell.core.client.form.ValueBaseInputCell<T>
T - the data typepublic abstract class ValueBaseInputCell<T>
A FieldCell which has an input element.
| Nested Class Summary | |
|---|---|
static interface |
ValueBaseInputCell.ValueBaseFieldAppearance
|
| Nested classes/interfaces inherited from class com.sencha.gxt.cell.core.client.form.FieldCell |
|---|
FieldCell.FieldAppearance, FieldCell.FieldAppearanceOptions, FieldCell.FieldViewData |
| Nested classes/interfaces inherited from interface com.google.gwt.cell.client.Cell |
|---|
Cell.Context |
| Constructor Summary | |
|---|---|
ValueBaseInputCell(ValueBaseInputCell.ValueBaseFieldAppearance appearance)
|
|
ValueBaseInputCell(ValueBaseInputCell.ValueBaseFieldAppearance appearance,
java.util.Set<java.lang.String> consumedEvents)
|
|
ValueBaseInputCell(ValueBaseInputCell.ValueBaseFieldAppearance appearance,
java.lang.String... consumedEvents)
|
|
| Method Summary | |
|---|---|
HandlerRegistration |
addParseErrorHandler(ParseErrorEvent.ParseErrorHandler handler)
Adds a ParseErrorEvent.ParseErrorHandler handler for ParseErrorEvent
events. |
void |
disable(XElement parent)
Disables the cell. |
void |
enable(XElement parent)
Enables the cell. |
ValueBaseInputCell.ValueBaseFieldAppearance |
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). |
java.lang.String |
getEmptyText()
Returns the cell's empty text. |
InputElement |
getInputElement(Element parent)
|
java.lang.String |
getName()
Returns the field's name. |
PropertyEditor<T> |
getPropertyEditor()
Returns the cell's property editor. |
java.lang.String |
getText(XElement parent)
Returns the cell's raw text. |
boolean |
isAllowBlank()
Returns the field's allow blank state. |
boolean |
isClearValueOnParseError()
Returns true if the current value is cleared on a parse error. |
boolean |
isSelectOnFocus()
Returns the select of focus state. |
void |
onEmpty(XElement parent,
boolean empty)
|
boolean |
resetFocus(Cell.Context context,
Element parent,
T value)
|
void |
select(XElement parent,
int start,
int length)
Selects the text. |
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 |
setClearValueOnParseError(boolean clearValueOnParseError)
True to clear the current value when a parse error occurs (defaults to true). |
void |
setCursorPos(XElement parent,
int pos)
Sets the cursor position. |
void |
setEmptyText(Cell.Context context,
XElement parent,
java.lang.String emptyText)
Sets the default text to display in an empty field (defaults to null). |
void |
setName(XElement parent,
java.lang.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,
java.lang.String text)
Sets the underlying DOM field's value directly, bypassing validation. |
| Methods inherited from class com.sencha.gxt.cell.core.client.form.FieldCell |
|---|
finishEditing, getHeight, getWidth, handlesSelection, isDisabled, isReadOnly, onBrowserEvent, onValid, redrawOnResize, setHeight, setReadOnly, setSize, setSize, setWidth |
| Methods inherited from class com.sencha.gxt.cell.core.client.AbstractEventInputCell |
|---|
addHandler, fireEvent, isDisableEvents, setDisableEvents |
| Methods inherited from class com.google.gwt.cell.client.AbstractInputCell |
|---|
isEditing |
| Methods inherited from class com.google.gwt.cell.client.AbstractEditableCell |
|---|
clearViewData, getViewData, setViewData |
| Methods inherited from class com.google.gwt.cell.client.AbstractCell |
|---|
dependsOnSelection, getConsumedEvents, render, setValue |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ValueBaseInputCell(ValueBaseInputCell.ValueBaseFieldAppearance appearance)
public ValueBaseInputCell(ValueBaseInputCell.ValueBaseFieldAppearance appearance,
java.util.Set<java.lang.String> consumedEvents)
public ValueBaseInputCell(ValueBaseInputCell.ValueBaseFieldAppearance appearance,
java.lang.String... consumedEvents)
| Method Detail |
|---|
public HandlerRegistration addParseErrorHandler(ParseErrorEvent.ParseErrorHandler handler)
ParseErrorEvent.HasParseErrorHandlersParseErrorEvent.ParseErrorHandler handler for ParseErrorEvent
events.
addParseErrorHandler in interface ParseErrorEvent.HasParseErrorHandlershandler - the handler
public void disable(XElement parent)
FieldCell
disable in class FieldCell<T>parent - the parent elementpublic void enable(XElement parent)
FieldCell
enable in class FieldCell<T>parent - the parent elementpublic ValueBaseInputCell.ValueBaseFieldAppearance getAppearance()
public int getCursorPos(XElement parent)
parent - the parent
public java.lang.String getEmptyText()
public InputElement getInputElement(Element parent)
getInputElement in class AbstractInputCell<T,FieldCell.FieldViewData>public java.lang.String getName()
public PropertyEditor<T> getPropertyEditor()
public java.lang.String getText(XElement parent)
parent - the parent element
public boolean isAllowBlank()
public boolean isClearValueOnParseError()
public boolean isSelectOnFocus()
public void onEmpty(XElement parent,
boolean empty)
onEmpty in class FieldCell<T>
public boolean resetFocus(Cell.Context context,
Element parent,
T value)
resetFocus in interface Cell<T>resetFocus in class AbstractInputCell<T,FieldCell.FieldViewData>
public void select(XElement parent,
int start,
int length)
parent - the parent elementstart - the start indexlength - the selection lengthpublic void selectAll(XElement parent)
parent - the parentpublic void setAllowBlank(boolean allowBlank)
allowBlank - true to allow blanks, false otherwisepublic void setClearValueOnParseError(boolean clearValueOnParseError)
clearValueOnParseError - true to clean the value on parse error
public void setCursorPos(XElement parent,
int pos)
parent - the parentpos - the new cursor position
public void setEmptyText(Cell.Context context,
XElement parent,
java.lang.String emptyText)
context - the contextparent - the parentemptyText - the empty text
public void setName(XElement parent,
java.lang.String name)
setName in class FieldCell<T>public void setPropertyEditor(PropertyEditor<T> propertyEditor)
propertyEditor - the property editorpublic void setSelectOnFocus(boolean selectOnFocus)
selectOnFocus - true to focus
public void setText(XElement parent,
java.lang.String text)
AbstractCell.setValue(com.google.gwt.cell.client.Cell.Context, com.google.gwt.dom.client.Element, C).
parent - the parent elementtext - the text
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||