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

(Global Index)

Syntax

interface XPopupMenu : com::sun::star::awt::XMenu ;

Description

controls a popup menu.

Method Summary

insertSeparator inserts a separator at the specified position.

setDefaultItem sets the menu default item.

getDefaultItem returns the menu default item.

checkItem set the state of the item to be checked or unchecked.

isItemChecked returns whether the item is checked or not checked.

execute executes the popup menu and returns the selected item or 0 , if cancelled.

Method Details



insertSeparator

Syntax

oneway void insertSeparator (
short nPos );

Description

inserts a separator at the specified position.


setDefaultItem

Syntax

oneway void setDefaultItem (
short nItemId );

Description

sets the menu default item.


getDefaultItem

Syntax

short getDefaultItem ();

Description

returns the menu default item.


checkItem

Syntax

oneway void checkItem (
short nItemId,
boolean bCheck );

Description

set the state of the item to be checked or unchecked.


isItemChecked

Syntax

boolean isItemChecked (
short nItemId );

Description

returns whether the item is checked or not checked.


execute

Syntax

short execute (
com::sun::star::awt::XWindowPeer Parent,
com::sun::star::awt::Rectangle Area,
short Direction );

Description

executes the popup menu and returns the selected item or 0 , if cancelled.

Top of Page