JTextComponent is the base class for text components.
static public ON_TEXT_SCROLLED:Stringstatic public ON_TEXT_CHANGED:Stringpublic function setUI(ui:TextUI):VoidSets 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():BooleanAlwasy return false. Subclass override this to change Text's multiline ability
public function isWordWrap():BooleanSubclass override this to change Text's wordWrap ability
public function setText(t:String):VoidSet 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):VoidAppends a text to the text's end.
t | the text to append. |
public function insertText(t:String, position:Number):VoidInserts 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):VoidDescription 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):VoidSets the text format properties for the text component's text format.
The will casue the font changed.
public function setFont(f:ASFont):VoidDescription 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():ASTextFormatReturns a copy of the text format of this component.