Overview | Module | Use | Devguide | Index

Methods' Summary | Attributes' Summary | Methods' Details | Attributes' Details

:: com :: sun :: star :: awt ::
interface XPopupMenu
  Base Interfaces
      XPopupMenu
      ┗ XMenu
  XMenu | (referenced interface's summary:) specifies a simple menu.
Description controls a pop-up 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 pop-up menu and returns the selected item or `0`, if canceled.

Methods' Details
insertSeparator
void
insertSeparator( | [in] short | nPos );
Description inserts a separator at the specified position.
setDefaultItem
void
setDefaultItem( | [in] short | nItemId );
Description sets the menu default item.
getDefaultItem
short
getDefaultItem();
Description returns the menu default item.
checkItem
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 pop-up menu and returns the selected item or `0`, if canceled.

Top of Page

Copyright © 2000, 2013 LibreOffice contributors and/or their affiliates. All rights reserved.

LibreOffice was created by The Document Foundation, based on OpenOffice.org, which is Copyright 2000, 2010 Oracle and/or its affiliates.

The Document Foundation acknowledges all community members, please find more info at our website.

Privacy Policy | Impressum (Legal Info) | Copyright information: The source code of LibreOffice is licensed under the GNU Lesser General Public License (LGPLv3). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.