com.sencha.gxt.cell.core.client.form
Class TextAreaInputCell

java.lang.Object
  extended by com.google.gwt.cell.client.AbstractCell<C>
      extended by com.google.gwt.cell.client.AbstractEditableCell<C,V>
          extended by com.google.gwt.cell.client.AbstractInputCell<T,V>
              extended by com.sencha.gxt.cell.core.client.AbstractEventInputCell<T,FieldCell.FieldViewData>
                  extended by com.sencha.gxt.cell.core.client.form.FieldCell<T>
                      extended by com.sencha.gxt.cell.core.client.form.ValueBaseInputCell<java.lang.String>
                          extended by 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 Class Summary
static class TextAreaInputCell.Resizable
           
static interface TextAreaInputCell.TextAreaAppearance
           
static class TextAreaInputCell.TextAreaCellOptions
           
 
Nested classes/interfaces inherited from class com.sencha.gxt.cell.core.client.form.ValueBaseInputCell
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
TextAreaInputCell()
           
TextAreaInputCell(TextAreaInputCell.TextAreaAppearance appearance)
           
 
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 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, setValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextAreaInputCell

public TextAreaInputCell()

TextAreaInputCell

public TextAreaInputCell(TextAreaInputCell.TextAreaAppearance appearance)
Method Detail

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 element
resizable - 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 element
width - the width
height - the height


Copyright © 2012. All Rights Reserved.