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

interface XComboBox
Description
gives access to the items of a combo box and makes it possible to register item and action event listeners.

Methods' Summary
addItemListener registers a listener for item events.  
removeItemListener unregisters a listener for item events.  
addActionListener registers a listener for action events.  
removeActionListener unregisters a listener for action events.  
addItem adds an item at the specified position.  
addItems adds multiple items at the specified position.  
removeItems removes a number of items at the specified position.  
getItemCount returns the number of items in the combo box.  
getItem returns the item at the specified position.  
getItems returns all items of the combo box.  
getDropDownLineCount returns the number of visible lines in the drop down mode.  
setDropDownLineCount sets the number of visible lines for drop down mode.  
Methods' Details
addItemListener
[oneway] void
addItemListener( [in] XItemListener  l );

Description
registers a listener for item events.
removeItemListener
[oneway] void
removeItemListener( [in] XItemListener  l );

Description
unregisters a listener for item events.
addActionListener
[oneway] void
addActionListener( [in] XActionListener  l );

Description
registers a listener for action events.
removeActionListener
[oneway] void
removeActionListener( [in] XActionListener  l );

Description
unregisters a listener for action events.
addItem
[oneway] void
addItem( [in] string  aItem,
[in] short  nPos );

Description
adds an item at the specified position.
addItems
[oneway] void
addItems( [in] sequence< string >  aItems,
[in] short  nPos );

Description
adds multiple items at the specified position.
removeItems
[oneway] void
removeItems( [in] short  nPos,
[in] short  nCount );

Description
removes a number of items at the specified position.
getItemCount
short
getItemCount();

Description
returns the number of items in the combo box.
getItem
string
getItem( [in] short  nPos );

Description
returns the item at the specified position.
getItems
sequence< string >
getItems();

Description
returns all items of the combo box.
getDropDownLineCount
short
getDropDownLineCount();

Description
returns the number of visible lines in the drop down mode.
setDropDownLineCount
[oneway] void
setDropDownLineCount( [in] short  nLines );

Description
sets the number of visible lines for drop down mode.
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.