module com { module sun { module star { module awt {
/** gives access to the items of a list box and makes it possible to registeritemandactioneventlisteners.
*/
published interface XListBox: com::sun::star::uno::XInterface
{
/** registers a listener for item events.
*/ void addItemListener( [in] com::sun::star::awt::XItemListener l );
/** unregisters a listener for item events.
*/ void removeItemListener( [in] com::sun::star::awt::XItemListener l );
/** registers a listener for action events.
*/ void addActionListener( [in] com::sun::star::awt::XActionListener l );
/** unregisters a listener for action events.
*/ void removeActionListener( [in] com::sun::star::awt::XActionListener l );
/** adds an item at the specified position.
*/ void addItem( [in] string aItem,
[in] short nPos );
/** adds multiple items at the specified position.
*/ void addItems( [in] sequence<string> aItems,
[in] short nPos );
/** removes a number of items at the specified position.
*/ void removeItems( [in] short nPos,
[in] short nCount );
/** returns the number of items in the listbox.
*/ short getItemCount();
/** returns the item at the specified position.
*/
string getItem( [in] short nPos );
/** returns all items of the list box.
*/
sequence<string> getItems();
/** returns the position of the currently selected item. Whenmultipleitemsareselected,thepositionofthefirstoneisreturned. Whennothingisselected,-1isreturned.
*/ short getSelectedItemPos();
/** returns the positions of all currently selected items.
*/
sequence<short> getSelectedItemsPos();
/** returns the currently selected item. Whenmultipleitemsareselected,thefirstoneisreturned. Whennothingisselected,anemptystringisreturned.
*/
string getSelectedItem();
/** returns all currently selected items.
*/
sequence<string> getSelectedItems();
/** selects/deselects the item at the specified position.
*/ void selectItemPos( [in] short nPos,
[in] boolean bSelect );
/** selects/deselects multiple items at the specified positions.
*/ void selectItemsPos( [in] sequence<short> aPositions,
[in] boolean bSelect );
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.