com.sencha.gxt.cell.core.client.form
Class TextAreaInputCell
java.lang.Object
com.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<java.lang.String>
com.sencha.gxt.cell.core.client.form.TextAreaInputCell
- All Implemented Interfaces:
- Cell<java.lang.String>, ResizableCell, ParseErrorEvent.HasParseErrorHandlers
public class TextAreaInputCell
- extends ValueBaseInputCell<java.lang.String>
| Nested classes/interfaces inherited from interface com.google.gwt.cell.client.Cell |
Cell.Context |
|
Method Summary |
void |
finishEditing(Element parent,
java.lang.String value,
java.lang.Object key,
ValueUpdater<java.lang.String> valueUpdater)
|
TextAreaInputCell.TextAreaAppearance |
getAppearance()
Returns the cell's appearance. |
TextAreaInputCell.Resizable |
getResizable()
Returns the resizable value. |
boolean |
isPreventScrollbars()
Returns true if scroll bars are disabled. |
void |
onBrowserEvent(Cell.Context context,
Element parent,
java.lang.String value,
NativeEvent event,
ValueUpdater<java.lang.String> valueUpdater)
|
void |
render(Cell.Context context,
java.lang.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. |
| Methods inherited from class com.sencha.gxt.cell.core.client.form.ValueBaseInputCell |
addParseErrorHandler, disable, enable, getCursorPos, getEmptyText, getInputElement, getName, getPropertyEditor, getText, isAllowBlank, isClearValueOnParseError, isSelectOnFocus, onEmpty, resetFocus, select, selectAll, setAllowBlank, setClearValueOnParseError, setCursorPos, setEmptyText, setName, setPropertyEditor, setSelectOnFocus, setText |
| Methods inherited from class com.sencha.gxt.cell.core.client.form.FieldCell |
getHeight, getWidth, handlesSelection, isDisabled, isReadOnly, onValid, redrawOnResize, setHeight, setReadOnly, setSize, setWidth |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextAreaInputCell
public TextAreaInputCell()
TextAreaInputCell
public TextAreaInputCell(TextAreaInputCell.TextAreaAppearance appearance)
finishEditing
public void finishEditing(Element parent,
java.lang.String value,
java.lang.Object key,
ValueUpdater<java.lang.String> valueUpdater)
- Overrides:
finishEditing in class FieldCell<java.lang.String>
getAppearance
public TextAreaInputCell.TextAreaAppearance getAppearance()
- Description copied from class:
ValueBaseInputCell
- Returns the cell's appearance.
- Overrides:
getAppearance in class ValueBaseInputCell<java.lang.String>
- Returns:
- the appearance
getResizable
public TextAreaInputCell.Resizable getResizable()
- Returns the resizable value.
- Returns:
- the resize value
isPreventScrollbars
public boolean isPreventScrollbars()
- Returns true if scroll bars are disabled.
- Returns:
- the scroll bar state
onBrowserEvent
public void onBrowserEvent(Cell.Context context,
Element parent,
java.lang.String value,
NativeEvent event,
ValueUpdater<java.lang.String> valueUpdater)
- Specified by:
onBrowserEvent in interface Cell<java.lang.String>- Overrides:
onBrowserEvent in class FieldCell<java.lang.String>
render
public void render(Cell.Context context,
java.lang.String value,
SafeHtmlBuilder sb)
- Specified by:
render in interface Cell<java.lang.String>- Specified by:
render in class AbstractCell<java.lang.String>
setPreventScrollbars
public 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.
- Parameters:
preventScrollbars - true to disable scroll bars
setResizable
public void setResizable(XElement parent,
TextAreaInputCell.Resizable resizable)
- Sets whether the field can be resized (defaults to NONE). This method uses
the CSS resize property which is only supported on browsers that support
CSS3.
- Parameters:
parent - the parent elementresizable - the resizable value
setSize
public void setSize(XElement parent,
int width,
int height)
- Description copied from interface:
ResizableCell
- Sets the size of the cell without requiring a redraw. This method is called
by
CellComponent when ResizableCell.redrawOnResize() returns false.
- Specified by:
setSize in interface ResizableCell- Overrides:
setSize in class FieldCell<java.lang.String>
- Parameters:
parent - the parent elementwidth - the widthheight - the height
Copyright © 2012. All Rights Reserved.