Overview | Module | Use | Devguide | Index

Methods' Summary | Attributes' Summary | Methods' Details | Attributes' Details

:: com :: sun :: star :: awt ::
interface XTextComponent
Description gives access to the text of a component and makes it possible to register event listeners.

Methods' Summary
addTextListener | registers a text event listener.
removeTextListener | unregisters a text event listener.
setText | sets the text of the component.
insertText | inserts text at the specified position.
getText | returns the text of the component.
getSelectedText | returns the currently selected text.
setSelection | sets the user selection.
getSelection | returns the current user selection.
isEditable | returns if the text is editable by the user.
setEditable | makes the text editable for the user or read-only.
setMaxTextLen | sets the maximum text length.
getMaxTextLen | returns the currently set maximum text length.

Methods' Details
addTextListener
void
addTextListener( | [in] XTextListener | l );
Description registers a text event listener.
removeTextListener
void
removeTextListener( | [in] XTextListener | l );
Description unregisters a text event listener.
setText
void
setText( | [in] string | aText );
Description sets the text of the component.
insertText
void
insertText( | [in] Selection | Sel,
| [in] string | Text );
Description inserts text at the specified position.
getText
string
getText();
Description returns the text of the component.
getSelectedText
string
getSelectedText();
Description returns the currently selected text.
setSelection
void
setSelection( | [in] Selection | aSelection );
Description sets the user selection.
getSelection
Selection
getSelection();
Description returns the current user selection.
isEditable
boolean
isEditable();
Description returns if the text is editable by the user.
setEditable
void
setEditable( | [in] boolean | bEditable );
Description makes the text editable for the user or read-only.
setMaxTextLen
void
setMaxTextLen( | [in] short | nLen );
Description sets the maximum text length.
getMaxTextLen
short
getMaxTextLen();
Description returns the currently set maximum text length.

Top of Page

Copyright © 2000, 2013 LibreOffice contributors and/or their affiliates. All rights reserved.

LibreOffice was created by The Document Foundation, based on OpenOffice.org, which is Copyright 2000, 2010 Oracle and/or its affiliates.

The Document Foundation acknowledges all community members, please find more info at our website.

Privacy Policy | Impressum (Legal Info) | Copyright information: The source code of LibreOffice is licensed under the GNU Lesser General Public License (LGPLv3). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.