JTextComponent is the base class for text components.
static public ON_TEXT_SCROLLED:String
static public ON_TEXT_CHANGED:String
public function setUI(ui:TextUI):Void
Sets the L&F object that renders this component.
ui | the TextUI L&F object
|
setUI() in org.aswing.Component
public function updateUI():Void
Resets the UI property to a value from the current look
and feel. Subtypes of JTextComponent
should override this to update the UI. For
example, JTextField
might do the following:
setUI(TextUI(UIManager.getUI(this)));
public function isMultiline():Boolean
Alwasy return false. Subclass override this to change Text's multiline ability
public function isWordWrap():Boolean
Subclass override this to change Text's wordWrap ability
public function setText(t:String):Void
Set the text of this text field.(it the textfield enabled html, it will be htmlText)
t | the text of this text field, if it is null or undefined, it will be set to ""; |
public function appendText(t:String):Void
Appends a text to the text's end.
t | the text to append. |
public function insertText(t:String, position:Number):Void
Inserts a text to the specified position of current text.
t | the text to insert |
position | the position to insert, if it less or equals than 0 means the begin of current text. |
public function setEnabled(enabled:Boolean):Void
Description copied from Component
Enable or disable the component.
If a component is disabled, it will not fire mouse events. And some component will has different interface when enabled or disabled. But it will also eat mouse clicks when disable even it will not fire mouse events.
public function setTextFormat(tf:ASTextFormat):Void
Sets the text format properties for the text component's text format.
The will casue the font changed.
public function setFont(f:ASFont):Void
Description copied from Component
set the text format for this component.
this method will cause a repaint method call.
If you change to a larger or smaller size format, you may need to call
this component's parent to doLayout to make this layout well.
public function getTextFormat():ASTextFormat
Returns a copy of the text format of this component.