(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 :: ucb ::

interface XContent
Description
specifies a content with a type and an identifier, which is able to manage listeners for events that are related to contents.
See also
XContentIdentifier, XContentEventListener
Developers Guide
UCB - Services and Interfaces

Methods' Summary
getIdentifier returns the identifier of the content.  
getContentType returns a type string, which is unique for that type of content (e.g. "application/vnd.sun.star.hierarchy-folder").  
addContentEventListener adds a listener for content events.  
removeContentEventListener removes a listener for content events.  
Methods' Details
getIdentifier
XContentIdentifier
getIdentifier();

Description
returns the identifier of the content.
Returns
the identifier.
getContentType
string
getContentType();

Description
returns a type string, which is unique for that type of content (e.g. "application/vnd.sun.star.hierarchy-folder").
Returns
the content type string.
addContentEventListener
[oneway] void
addContentEventListener( [in] XContentEventListener  Listener );

Description
adds a listener for content events.
Parameter Listener
the listener to add.
See also
ContentEvent
removeContentEventListener
[oneway] void
removeContentEventListener( [in] XContentEventListener  Listener );

Description
removes a listener for content events.
Parameter Listener
the listener to remove.
See also
ContentEvent
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.