Package | com.bit101.components |
Class | public class TextArea |
Inheritance | TextArea ![]() ![]() ![]() |
Property | Defined By | ||
---|---|---|---|
![]() |
editable : Boolean
Gets / sets whether or not this text component will be editable.
|
Text | |
enabled : Boolean [override]
Sets/gets whether this component is enabled or not.
|
TextArea | ||
![]() |
height : Number [override]
Sets/gets the height of the component.
|
Component | |
![]() |
html : Boolean
Gets / sets whether or not text will be rendered as HTML or plain text.
|
Text | |
![]() |
selectable : Boolean
Gets / sets whether or not this text component will be selectable.
|
Text | |
![]() |
tag : int
Sets/gets in integer that can identify the component.
|
Component | |
![]() |
text : String
Gets / sets the text of this Label.
|
Text | |
![]() |
textField : TextField [read-only]
Returns a reference to the internal text field in the component.
|
Text | |
![]() |
width : Number [override]
Sets/gets the width of the component.
|
Component | |
![]() |
x : Number [override] [write-only]
Overrides the setter for x to always place the component on a whole pixel.
|
Component | |
![]() |
y : Number [override] [write-only]
Overrides the setter for y to always place the component on a whole pixel.
|
Component |
Property | Defined By | ||
---|---|---|---|
![]() |
_editable : Boolean = true | Text | |
![]() |
_enabled : Boolean = true | Component | |
![]() |
_height : Number = 0 | Component | |
![]() |
_html : Boolean = false | Text | |
![]() |
_panel : Panel | Text | |
![]() |
Ronda : Class | Component | |
_scrollbar : VScrollBar | TextArea | ||
![]() |
_selectable : Boolean = true | Text | |
![]() |
_tag : int = -1 | Component | |
![]() |
_text : String | Text | |
![]() |
_tf : TextField | Text | |
![]() |
_width : Number = 0 | Component |
Method | Defined By | ||
---|---|---|---|
TextArea(parent:DisplayObjectContainer = null, xpos:Number = 0, ypos:Number = 0, text:String)
Constructor
|
TextArea | ||
draw():void
[override]
Draws the visual ui of the component.
|
TextArea | ||
![]() |
initStage(stage:Stage):void
[static]
Utility method to set up usual stage align and scaling.
|
Component | |
![]() |
move(xpos:Number, ypos:Number):void
Moves the component to the specified position.
|
Component | |
![]() |
setSize(w:Number, h:Number):void
Sets the size of the component.
|
Component |
Method | Defined By | ||
---|---|---|---|
addChildren():void
[override]
Creates and adds the child display objects of this component.
|
TextArea | ||
![]() |
getShadow(dist:Number, knockout:Boolean = false):DropShadowFilter
DropShadowFilter factory method, used in many of the components.
|
Component | |
init():void
[override]
Initilizes the component.
|
TextArea | ||
![]() |
invalidate():void
Marks the component to be redrawn on the next frame.
|
Component | |
onChange(event:Event):void
[override]
Called when the text in the text field is manually changed.
|
TextArea | ||
![]() |
onInvalidate(event:Event):void
Called one frame after invalidate is called.
|
Component | |
onMouseWheel(event:MouseEvent):void
Called when the mouse wheel is scrolled over the component.
|
TextArea | ||
onScrollbarScroll(event:Event):void
Called when the scroll bar is moved.
|
TextArea | ||
onTextScroll(event:Event):void
Called when the text is scrolled manually.
|
TextArea | ||
onTextScrollDelay(event:Event):void
Waits one more frame before updating scroll bar.
|
TextArea | ||
updateScrollbar():void
Changes the thumb percent of the scrollbar based on how much text is shown in the text area.
|
TextArea |
_scrollbar | property |
protected var _scrollbar:VScrollBar
enabled | property |
enabled:Boolean
[override]
Sets/gets whether this component is enabled or not.
public function get enabled():Boolean
public function set enabled(value:Boolean):void
TextArea | () | Constructor |
public function TextArea(parent:DisplayObjectContainer = null, xpos:Number = 0, ypos:Number = 0, text:String)
Constructor
Parameters
parent:DisplayObjectContainer (default = null ) — The parent DisplayObjectContainer on which to add this Label.
|
|
xpos:Number (default = 0 ) — The x position to place this component.
|
|
ypos:Number (default = 0 ) — The y position to place this component.
|
|
text:String — The initial text to display in this component.
|
addChildren | () | method |
override protected function addChildren():void
Creates and adds the child display objects of this component.
draw | () | method |
override public function draw():void
Draws the visual ui of the component.
init | () | method |
override protected function init():void
Initilizes the component.
onChange | () | method |
override protected function onChange(event:Event):void
Called when the text in the text field is manually changed.
Parameters
event:Event |
onMouseWheel | () | method |
protected function onMouseWheel(event:MouseEvent):void
Called when the mouse wheel is scrolled over the component.
Parameters
event:MouseEvent |
onScrollbarScroll | () | method |
protected function onScrollbarScroll(event:Event):void
Called when the scroll bar is moved. Scrolls text accordingly.
Parameters
event:Event |
onTextScroll | () | method |
protected function onTextScroll(event:Event):void
Called when the text is scrolled manually. Updates the position of the scroll bar.
Parameters
event:Event |
onTextScrollDelay | () | method |
protected function onTextScrollDelay(event:Event):void
Waits one more frame before updating scroll bar. It seems that numLines and maxScrollV are not valid immediately after changing a TextField's size.
Parameters
event:Event |
updateScrollbar | () | method |
protected function updateScrollbar():void
Changes the thumb percent of the scrollbar based on how much text is shown in the text area.