Syntax
interface XTextComponent : com::sun::star::uno::XInterface ;
Description
gives access to the text of a text component and makes it possible
to register event listeners.
Known Services Which Export this Interface
|
com::sun::star::awt::UnoControlEdit -
Method Details
|
|
Syntax
- oneway void addTextListener
(
- com::sun::star::awt::XTextListener l );
Description
registers a text event listener.
Syntax
- oneway void removeTextListener
(
- com::sun::star::awt::XTextListener l );
Description
unregisters a text event listener.
Syntax
- oneway void setText
(
- string aText );
Description
sets the text of the text field.
Syntax
- oneway void insertText
(
- com::sun::star::awt::Selection Sel,
- string Text );
Description
inserts text at the given position.
Syntax
- string getText
();
Returns
-
the currently set text of this text component.
Syntax
- string getSelectedText
();
Returns
-
the currently selected text.
Syntax
- oneway void setSelection
(
- com::sun::star::awt::Selection aSelection );
Description
sets the user selection.
Syntax
- com::sun::star::awt::Selection getSelection
();
Returns
-
the current user selection.
Syntax
- boolean isEditable
();
Returns
-
whether the text is editable by the user.
Syntax
- oneway void setEditable
(
- boolean bEditable );
Description
makes the text editable for the user or read-only.
Syntax
- oneway void setMaxTextLen
(
- short nLen );
Description
sets the maximum text length.
Syntax
- short getMaxTextLen
();
Returns
-
the currently set maximum text length.
|
Top of Page
Copyright 2002 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, CA 94303 USA.