interface XComboBox in module com::sun::star::awt::

(Global Index)

Syntax

interface XComboBox : 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.

Method 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.

Known Services Which Export this Interface

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

Method Details



addItemListener

Syntax

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

Description

registers a listener for item events.


removeItemListener

Syntax

oneway void removeItemListener (
com::sun::star::awt::XItemListener l );

Description

unregisters a listener for item events.


addActionListener

Syntax

oneway void addActionListener (
com::sun::star::awt::XActionListener l );

Description

registers a listener for action events.


removeActionListener

Syntax

oneway void removeActionListener (
com::sun::star::awt::XActionListener l );

Description

unregisters a listener for action events.


addItem

Syntax

oneway void addItem (
string aItem,
short nPos );

Description

adds a new item to the combo box.


addItems

Syntax

oneway void addItems (
sequence< string > aItems,
short nPos );

Description

adds multiple items to the combo box.


removeItems

Syntax

oneway void removeItems (
short nPos,
short nCount );

Description

removes multiple items to the combo box.


getItemCount

Syntax

short getItemCount ();

Returns

the number of items in this combo box.

getItem

Syntax

string getItem (
short nPos );

Returns

the item at the position nPos .

getItems

Syntax

sequence< string > getItems ();

Returns

all items of this combo box.

getDropDownLineCount

Syntax

short getDropDownLineCount ();

Returns

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

setDropDownLineCount

Syntax

oneway void setDropDownLineCount (
short nLines );

Description

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

Top of Page