(incubating) | The Free and Open Productivity Suite

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for OpenOffice.org version 3.3.

:: com :: sun :: star :: awt :: tree ::

unpublished interface XTreeEditListener
Base Interfaces
XTreeEditListener
┗ ::com::sun::star::lang::XEventListener

::com::sun::star::lang::XEventListener
(referenced interface's summary:)
base interface for all event listeners interfaces.
Usage Restrictions
not published
Description
You can implement this interface and register with addTreeEditListener to get notifcaitons when editing of a node starts and ends.

You have to set the TreeControlModel::Editable property to true before a tree supports editing.


Methods' Summary
nodeEditing This method is called from the TreeControl implementation when editing of Node is requested by calling XTreeControl::startEditingAtNode().  
nodeEdited This method is called from the TreeControl implementation when editing of Node is finished and was not canceled.  
Methods' Details
nodeEditing
void
nodeEditing( [in] XTreeNode  Node )
raises( ::com::sun::star::util::VetoException );

Description
This method is called from the TreeControl implementation when editing of Node is requested by calling XTreeControl::startEditingAtNode().
Parameter Node
the XTreeNode for that an edit request was fired by calling startEditingAtNode
Throws
VetoException if thrown the editing will not start.
nodeEdited
void
nodeEdited( [in] XTreeNode  Node,
[in] string  NewText );

Description
This method is called from the TreeControl implementation when editing of Node is finished and was not canceled.

Implementations that register a XTreeEditListener must update the display value at the Node.

Parameter Node
the XTreeNode for that an edit request was fired by calling startEditingAtNode
Parameter NewText
the text that was entered by the user.
Top of Page

Apache OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.

Copyright & License
Apache and the Apache feather logos are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.