The Free and Open Productivity Suite
QA Volunteers Needed -- Help us test OpenOffice

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for Apache OpenOffice version 3.4.

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

interface XPopupMenu
Base Interfaces
XPopupMenuXMenu

XMenu
(referenced interface's summary:)
specifies a simple menu.
Description
controls a popup menu.

Methods' Summary
insertSeparator inserts a separator at the specified position.  
setDefaultItem sets the menu default item.  
getDefaultItem returns the menu default item.  
checkItem sets the state of the item to be checked or unchecked.  
isItemChecked returns whether the item is checked or unchecked.  
execute executes the popup menu and returns the selected item or 0, if cancelled.  
Methods' Details
insertSeparator
[oneway] void
insertSeparator( [in] short  nPos );

Description
inserts a separator at the specified position.
setDefaultItem
[oneway] void
setDefaultItem( [in] short  nItemId );

Description
sets the menu default item.
getDefaultItem
short
getDefaultItem();

Description
returns the menu default item.
checkItem
[oneway] void
checkItem( [in] short  nItemId,
[in] boolean  bCheck );

Description
sets the state of the item to be checked or unchecked.
isItemChecked
boolean
isItemChecked( [in] short  nItemId );

Description
returns whether the item is checked or unchecked.
execute
short
execute( [in] XWindowPeer  Parent,
[in] Rectangle  Area,
[in] short  Direction );

Description
executes the popup menu and returns the selected item or 0, if cancelled.
Top of Page

Apache Feather

Copyright & License | Privacy | Contact Us | Donate

Apache, the Apache feather logo, and OpenOffice 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.