Top   Module   Use   Manual   Index 
 EXPORTING SERVICES | METHODS' SUMMARY | METHODS' DETAILS 

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

interface XComboBox

Base Interface
com::sun::star::uno::XInterface

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


Known Services which Export this Interface

com::sun::star::awt::UnoControlComboBox specifies a control for a combo-box (list box plus edit field).

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 a new item to the combo box.
addItems adds multiple items to the combo box.
removeItems removes multiple items to the combo box.
getItemCount
getItem
getItems
getDropDownLineCount
setDropDownLineCount sets the number of lines which are visible in the drop down area.

Methods' Details

addItemListener
 
[ oneway ] void
addItemListener(
[ in ] com::sun::star::awt::XItemListener l );

Description
registers a listener for item events.
removeItemListener
 
[ oneway ] void
removeItemListener(
[ in ] com::sun::star::awt::XItemListener l );

Description
unregisters a listener for item events.
addActionListener
 
[ oneway ] void
addActionListener(
[ in ] com::sun::star::awt::XActionListener l );

Description
registers a listener for action events.
removeActionListener
 
[ oneway ] void
removeActionListener(
[ in ] com::sun::star::awt::XActionListener l );

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

Description
adds a new item to the combo box.
addItems
 
[ oneway ] void
addItems(
[ in ] sequence< string > aItems,
[ in ] short nPos );

Description
adds multiple items to the combo box.
removeItems
 
[ oneway ] void
removeItems(
[ in ] short nPos,
[ in ] short nCount );

Description
removes multiple items to the combo box.
getItemCount
 
short
getItemCount();
Returns
the number of items in this combo box.
getItem
 
string
getItem(
[ in ] short nPos );

Returns
the item at the position nPos .
getItems
 
sequence< string >
getItems();
Returns
all items of this combo box.
getDropDownLineCount
 
short
getDropDownLineCount();
Returns
the number of lines which are visible in the drop down area.
setDropDownLineCount
 
[ oneway ] void
setDropDownLineCount(
[ in ] short nLines );

Description
sets the number of lines which are visible in the drop down area.

Top of Page