Packagespark.components.itemRenderers
Classpublic class MobileGridTextCellRenderer
InheritanceMobileGridTextCellRenderer Inheritance StyleableTextField Inheritance FlexTextField Inheritance flash.text.TextField
Implements IMobileGridTextCellRenderer

Language Version : ActionScript 3.0
Product Version : Flex 4.11
Runtime Versions : AIR 3.8

This class is experimental, which means it has not been tested or documented as thoroughly as other core Apache Flex classes.

Default lightweight class for rendering formatted text in MobileGrid cells .

You don't have to use this render explicitly as it will be used by default for MobileGrid text cells.



Public Properties
 PropertyDefined By
  canSetContentHeight : Boolean
[read-only] Flag indicating whether the layout manager can stretch the height of this renderer to match the column's height.
MobileGridTextCellRenderer
  canSetContentWidth : Boolean
[read-only] Flag indicating whether the layout manager can stretch the width of this renderer to match the column's width.
MobileGridTextCellRenderer
  cssStyleName : String
[write-only] this property is set with the GridColumn's styleName property.
MobileGridTextCellRenderer
  data : Object
The data to render or edit.
MobileGridTextCellRenderer
 InheritedAIR-only editable : Boolean
Specifies whether the text is editable, true, or not, false.
StyleableTextField
 InheritedAIR-only enabled : Boolean
Whether the component can accept user interaction.
StyleableTextField
 InheritedAIR-only focusEnabled : Boolean
Indicates whether the component can receive focus when tabbed to.
StyleableTextField
 InheritedAIR-only horizontalScrollPosition : Number
The horizontal scroll position of the text.
StyleableTextField
 InheritedAIR-only isTruncated : Boolean
[read-only] Indicates whether the text has been truncated, true, or not, false.
StyleableTextField
  labelField : String
[write-only] Implement this property so that the renderer can receive the dataField from its MobileGridColumn.
MobileGridTextCellRenderer
  labelFunction : Function
[write-only] Implement this property so that the renderer can receive the labelFunction its MobileGridColumn
MobileGridTextCellRenderer
 InheritedAIR-only lineBreak : String
Controls word wrapping within the text.
StyleableTextField
 InheritedAIR-only minHeight : Number
The minimum recommended height of the component to be considered by the parent during layout.
StyleableTextField
 InheritedAIR-only minWidth : Number
The minimum recommended width of the component to be considered by the parent during layout.
StyleableTextField
 InheritedAIR-only selectionActivePosition : int
[read-only] The active, or last clicked position, of the selection.
StyleableTextField
 InheritedAIR-only selectionAnchorPosition : int
[read-only] The anchor, or first clicked position, of the selection.
StyleableTextField
 InheritedAIR-only styleDeclaration : CSSStyleDeclaration
Storage for the inline inheriting styles on this object.
StyleableTextField
 InheritedAIR-only styleName : Object
The class style used by this component.
StyleableTextField
  styleProvider : IStyleClient
[write-only]
MobileGridTextCellRenderer
 InheritedAIR-only text : String
[override] The text displayed by this text component.
StyleableTextField
  textAlign : String
[write-only] Implement this property so that the renderer can receive the textAlign property from the renderers' MobileGridColumn
MobileGridTextCellRenderer
 InheritedAIR-only verticalScrollPosition : Number
The vertical scroll position of the text.
StyleableTextField
Public Methods
 MethodDefined By
  
MobileGridTextCellRenderer
 Inherited
AIR-only appendText(text:String):void
[override] Appends the specified text to the end of the text component, as if you had clicked at the end and typed.
StyleableTextField
 Inherited
AIR-only commitStyles():void
Commit the styles into the TextField.
StyleableTextField
 Inherited
AIR-only getStyle(styleProp:String):*
Gets a style property that has been set anywhere in this component's style lookup chain.
StyleableTextField
 Inherited
AIR-only insertText(text:String):void
Inserts the specified text into the text component as if you had typed it.
StyleableTextField
 Inherited
AIR-only scrollToRange(anchorPosition:int, activePosition:int):void
Scroll so the specified range is in view.
StyleableTextField
 Inherited
AIR-only selectAll():void
Selects all of the text.
StyleableTextField
 Inherited
AIR-only selectRange(anchorIndex:int, activeIndex:int):void
Selects a specified range of characters.
StyleableTextField
 Inherited
AIR-only setFocus():void
Set focus to this text field.
StyleableTextField
 Inherited
AIR-only setStyle(styleProp:String, value:*):void
Sets a style property on this component instance.
StyleableTextField
 Inherited
AIR-only styleChanged(styleProp:String):void
Detects changes to style properties.
StyleableTextField
 Inherited
toString():String
[override] Returns a string indicating the location of this object within the hierarchy of DisplayObjects in the Application.
FlexTextField
 Inherited
AIR-only truncateToFit(truncationIndicator:String = ...):Boolean
Truncate text to make it fit horizontally in the area defined for the control, and append an ellipsis, three periods (...), to the text.
StyleableTextField
Styles
 Style Description Defined By
 InheritedType: uint Format: Color CSS Inheritance: yes
Color of text in the component, including the component label.
StyleableTextField
 InheritedType: String CSS Inheritance: yes
Name of the font to use.
StyleableTextField
 InheritedType: Number Format: Length CSS Inheritance: yes
Height of the text, in pixels.
StyleableTextField
 InheritedType: String CSS Inheritance: yes
Determines whether the text is italic font.
StyleableTextField
 InheritedType: String CSS Inheritance: yes
Determines whether the text is boldface.
StyleableTextField
 InheritedType: Number Format: Length CSS Inheritance: yes
Additional vertical space between lines of text.
StyleableTextField
 InheritedType: Number CSS Inheritance: yes
The number of additional pixels to appear between each character.
StyleableTextField
 InheritedType: String CSS Inheritance: yes
Alignment of text within a container.
StyleableTextField
 InheritedType: String CSS Inheritance: yes
Determines whether the text is underlined.
StyleableTextField
 InheritedType: Number Format: Length CSS Inheritance: yes
Offset of first line of text from the left side of the container, in pixels.
StyleableTextField
Property Detail
canSetContentHeightproperty
canSetContentHeight:Boolean  [read-only]

Flag indicating whether the layout manager can stretch the height of this renderer to match the column's height.

default value is false. Override the getter to return a difference value


Implementation
    public function get canSetContentHeight():Boolean
canSetContentWidthproperty 
canSetContentWidth:Boolean  [read-only]

Flag indicating whether the layout manager can stretch the width of this renderer to match the column's width.

default value is false. Override the getter to return a difference value


Implementation
    public function get canSetContentWidth():Boolean
cssStyleNameproperty 
cssStyleName:String  [write-only]

this property is set with the GridColumn's styleName property.

you can override it to extract information from the style and pass them to this renderer.


Implementation
    public function set cssStyleName(value:String):void
dataproperty 
data:Object

The data to render or edit.


Implementation
    public function get data():Object
    public function set data(value:Object):void
labelFieldproperty 
labelField:String  [write-only]

Implement this property so that the renderer can receive the dataField from its MobileGridColumn.


Implementation
    public function set labelField(value:String):void
labelFunctionproperty 
labelFunction:Function  [write-only]

Implement this property so that the renderer can receive the labelFunction its MobileGridColumn


Implementation
    public function set labelFunction(value:Function):void
styleProviderproperty 
styleProvider:IStyleClient  [write-only]


Implementation
    public function set styleProvider(value:IStyleClient):void
textAlignproperty 
textAlign:String  [write-only]

Implement this property so that the renderer can receive the textAlign property from the renderers' MobileGridColumn


Implementation
    public function set textAlign(value:String):void
Constructor Detail
MobileGridTextCellRenderer()Constructor
public function MobileGridTextCellRenderer()