| Package | lunas.components.textinputs |
| Class | public class VisualTextInput |
| Inheritance | VisualTextInput CoreTextInput CoreComponent Background CoreSprite flash.display.Sprite |
| Subclasses | VisualComboTextInput |
ITextInput interface, this class is a proxy who use a skin sprite who contains a background and a dynamic textfield reference.
| Property | Defined By | ||
|---|---|---|---|
![]() | align : uint
The alignement of the background. | Background | |
![]() | autoSize : Boolean
Indicates if the background is resizing when the stage resize event is invoked. | Background | |
| background : Sprite
The internal background of this TextInput. | VisualTextInput | ||
| backgroundName : String
The internal background name of this TextInput. | VisualTextInput | ||
![]() | border : EdgeMetrics
Indicates the thickness, in pixels, of the four edge regions around a visual component. | CoreComponent | |
![]() | bottomLeftRadius : Number
The radius of the bottom-left corner, in pixels. | Background | |
![]() | bottomRightRadius : Number
The radius of the bottom-right corner, in pixels. | Background | |
![]() | bubbles : Boolean = true
Indicates if the events use bubbling when are dispatched. | CoreComponent | |
![]() | builder : Builder
Indicates the Builder reference of this instance. | CoreComponent | |
![]() | componentInspectorSetting : Boolean
Initialize when the Flash component settings are initialized (only in Flash with a compiled component). | CoreComponent | |
![]() | condenseWhite : Boolean
Specifies whether extra white space (spaces, line breaks, and so on) should be removed in a TextInput control with HTML text. | CoreTextInput | |
![]() | data : *
Indicates the data value object of the component. | CoreTextInput | |
![]() | defaultTextFormat : TextFormat
Specifies the format applied to newly inserted text, such as text entered by a user or text inserted with the replaceSelectedText() method. | CoreTextInput | |
![]() | direction : String
Indicates the direction value of the background when the display is in this "full" mode (default value is null). | Background | |
![]() | displayAsPassword : Boolean
Indicates whether this control is used for entering passwords. | CoreTextInput | |
![]() | editable : Boolean
Indicates whether the user is allowed to edit the text in this control. | CoreTextInput | |
![]() | embedFonts : Boolean
Specifies whether to render by using embedded font outlines. | CoreTextInput | |
![]() | enabled : Boolean
Indicates the enabled state of the component. | CoreComponent | |
| fieldName : String
The internal textfield name of this TextInput. | VisualTextInput | ||
![]() | fill : IFillStyle
Determinates the IFillStyle reference of this display. | Background | |
![]() | gradientMatrix : Matrix
The matrix value to draw the gradient fill. | Background | |
![]() | gradientRotation : Number = 0
The rotation value to draw the gradient fill. | Background | |
![]() | gradientTranslation : Point
The translation vector to draw the gradient fill. | Background | |
![]() | group : Boolean
Indicates with a boolean if this object is grouped. | CoreComponent | |
![]() | groupName : String
Indicates the name of the group of this object. | CoreComponent | |
![]() | h : Number
Determinates the virtual height value of this component. | Background | |
![]() | horizontalScrollPosition : Number
Horizontal scroll position. | CoreTextInput | |
![]() | htmlText : String
Specifies the text displayed by the TextInput component, including HTML markup that expresses the styles of that text. | CoreTextInput | |
![]() | isFull : Boolean
Indicates if the background use full size (use Stage.stageWidth and Stage.stageHeight to resize the background). | Background | |
![]() | layout : Layout
Determinates the layout of this container. | CoreComponent | |
![]() | line : ILineStyle
Determinates the ILineStyle reference of this display. | Background | |
![]() | logger : Logger
Determinates the internal ILogger reference of this Logable object. | CoreSprite | |
![]() | maxChars : int
Maximum number of characters that users can enter in the text field. | CoreTextInput | |
![]() | maxHeight : Number
This property defined the maximum height of this display. | Background | |
![]() | maxWidth : Number
Defines the maximum width of this display. | Background | |
![]() | minHeight : Number
This property defined the mimimun height of this display (This value is >= 0). | Background | |
![]() | minWidth : Number
This property defined the mimimun width of this display (This value is >= 0). | Background | |
![]() | multiline : Boolean
Indicates whether the text field is a multiline text field. | CoreTextInput | |
![]() | restrict : String
Indicates the set of characters that a user can enter into the control. | CoreTextInput | |
![]() | selected : Boolean
A flag that indicates whether this control is selected. | CoreTextInput | |
| skin : Sprite
Indicates the skin view of this visual textinput component. | VisualTextInput | ||
![]() | style : Style
Returns the style of this component. | CoreComponent | |
![]() | tabIndex : int [override]
Specifies the tab ordering of objects in a SWF file. | CoreTextInput | |
![]() | tabManager : TabManager
The tab manager of this component. | CoreTextInput | |
![]() | text : String
Plain text that appears in the component. | CoreTextInput | |
![]() | textField : TextField
The internal TextField that renders the text of this TextInput. | CoreTextInput | |
![]() | topLeftRadius : Number
The radius of the upper-left corner, in pixels. | Background | |
![]() | topRightRadius : Number
The radius of the upper-right corner, in pixels. | Background | |
![]() | useGradientBox : Boolean
Indicates if the IFillStyle of this display use gradient box matrix (only if the IFillStyle is a FillGradientStyle). | Background | |
![]() | w : Number
Determinates the virtual height value of this component. | Background | |
![]() | wordWrap : Boolean
A Boolean value that indicates whether the text field has word wrap. | CoreTextInput | |
| Method | Defined By | ||
|---|---|---|---|
VisualTextInput(skin:Sprite = null)
Creates a new VisualTextInput instance. | VisualTextInput | ||
![]() | doLater():void
Launch an event with a delayed interval. | Background | |
![]() | draw(... arguments):void
Draw the display. | Background | |
![]() | getBuilderRenderer():Class
Returns the Builder constructor use to initialize this component. | CoreComponent | |
getStyleRenderer():Class [override]
Invoked when the style of the component is changed. | VisualTextInput | ||
![]() | groupPolicyChanged():void [override]
Invoked when the group property or the groupName property changed. | CoreTextInput | |
![]() | hide():void
Hides the component. | CoreComponent | |
![]() | initBackgroundPen(graphic:* = null):IPen
Init the pen to draw the background of this display. | Background | |
![]() | initialize():void
Initialize the component. | CoreComponent | |
![]() | isLocked():Boolean
Returns true if the object is locked. | CoreSprite | |
![]() | isVisible():Boolean
Returns true if the component is visible. | CoreComponent | |
![]() | lock():void [override]
Locks the object. | CoreComponent | |
![]() | maxHorizontalScrollPosition():Number
Maximum value of horizontalScrollPosition. | CoreTextInput | |
![]() | move(x:Number, y:Number):void
Moves the component. | CoreComponent | |
![]() | notifyChanged():void
Notify a change in this component. | CoreComponent | |
![]() | notifyEnabled():void
Notify an event when the enabled property is changed. | CoreComponent | |
![]() | notifyResized():void
Notify an event when you resize the component. | Background | |
![]() | refresh(init:*):void
Refresh and initialize the display with a generic object and invoke the "update" method. | Background | |
![]() | registerView(scope:DisplayObjectContainer = null):void
Registers the view of this component. | CoreComponent | |
![]() | resetLock():void
Reset the lock security of the display. | CoreSprite | |
![]() | resize(e:Event = null):void
Resize and update the background. | Background | |
![]() | scope():DisplayObject
Returns the real scope reference of this component. | CoreComponent | |
![]() | setCornerRadius(n:Number):void
Defines all corner radius of the background (upper-left, upper-right, bottom-left and bottom-right). | Background | |
![]() | setSize(w:Number, h:Number):void
Sets the virtual width (w) and height (h) values of the component. | Background | |
![]() | setStyle(... args):void
Sets the style property on the style declaration or object. | CoreComponent | |
![]() | show():void
Shows the component. | CoreComponent | |
![]() | unlock():void [override]
Unlocks the display. | CoreComponent | |
![]() | unregisterView():void
Unregisters the view of this component. | CoreComponent | |
![]() | update():void [override]
Updates the component. | CoreComponent | |
viewChanged():void [override]
Called when the view of the component is changed. | VisualTextInput | ||
![]() | viewDestroyed(e:Event = null):void
Invoked when the component is removed. | CoreComponent | |
viewEnabled():void [override]
Invoked when the enabled property of the component change. | VisualTextInput | ||
![]() | viewResize():void
Invoked when the component is resized. | Background | |
![]() | viewStyleChanged(e:Event = null):void
Invoked when the component Style changed. | CoreComponent | |
| Method | Defined By | ||
|---|---|---|---|
![]() | addedToStage(e:Event = null):void
Invoked when the display is added to the stage. | CoreSprite | |
![]() | addedToStageResize(e:Event = null):void
Invoked when the display is removed from the stage to enable the autoSize mode. | Background | |
![]() | fireComponentEvent(type:String):void
Dispatchs a ComponentEvent with the specified type. | CoreComponent | |
![]() | focusIn(e:FocusEvent):void
Invoked when the focus is in in the component textfield. | CoreTextInput | |
![]() | focusOut(e:FocusEvent):void
Invoked when the focus is out in the component textfield. | CoreTextInput | |
initSkin():void
Invoked to initialize the skin. | VisualTextInput | ||
![]() | keyDown(e:KeyboardEvent):void
Invoked when the component is focused and when a key is down. | CoreTextInput | |
![]() | removedFromStage(e:Event = null):void [override]
Invoked when the display is removed from the stage. | CoreTextInput | |
![]() | removedFromStageResize(e:Event = null):void
Invoked when the display is removed from the stage to disable the autoSize mode. | Background | |
![]() | renderLayout(layout:Layout = null):void
Receives a message when the layout emit when is rendered. | CoreComponent | |
resolveSkin():void
Invoked to resolve the content of the skin. | VisualTextInput | ||
![]() | updateLayout(layout:Layout = null):void
Receives a message when the layout emit when is updated. | CoreComponent | |
![]() | viewEditableChanged():void
Called when the editable attributes are invoked. | CoreTextInput | |
viewHTMLTextChanged():void [override]
Called when the htmlText attributes are invoked. | VisualTextInput | ||
viewTextChanged():void [override]
Called when the text attributes are invoked. | VisualTextInput | ||
| background | property |
background:SpriteThe internal background of this TextInput.
public function get background():Sprite public function set background(value:Sprite):void| backgroundName | property |
backgroundName:StringThe internal background name of this TextInput.
public function get backgroundName():String public function set backgroundName(value:String):void| fieldName | property |
fieldName:StringThe internal textfield name of this TextInput.
public function get fieldName():String public function set fieldName(value:String):void| skin | property |
skin:SpriteIndicates the skin view of this visual textinput component. This sprite must contains a sprite with the instance name "background" and a dynamic textfield with the name "field".
public function get skin():Sprite public function set skin(value:Sprite):void| VisualTextInput | () | Constructor |
public function VisualTextInput(skin:Sprite = null)Creates a new VisualTextInput instance.
Parametersskin:Sprite (default = null) — Indicates the skin view of this visual textinput component.
|
| getStyleRenderer | () | method |
override public function getStyleRenderer():ClassInvoked when the style of the component is changed.
ReturnsClass |
| initSkin | () | method |
protected function initSkin():voidInvoked to initialize the skin.
| resolveSkin | () | method |
protected function resolveSkin():voidInvoked to resolve the content of the skin.
| viewChanged | () | method |
override public function viewChanged():voidCalled when the view of the component is changed.
| viewEnabled | () | method |
override public function viewEnabled():voidInvoked when the enabled property of the component change.
| viewHTMLTextChanged | () | method |
override protected function viewHTMLTextChanged():voidCalled when the htmlText attributes are invoked.
| viewTextChanged | () | method |
override protected function viewTextChanged():voidCalled when the text attributes are invoked.