javax.rad.genui.menu
Class UIPopupMenu
java.lang.Object
javax.rad.genui.UIResource<C>
javax.rad.genui.UIComponent<C>
javax.rad.genui.UIContainer<IPopupMenu>
javax.rad.genui.menu.UIPopupMenu
- All Implemented Interfaces:
- IComponent, IContainer, IResource, IPopupMenu
public class UIPopupMenu
- extends UIContainer<IPopupMenu>
- implements IPopupMenu
Platform and technology independent popup menu.
It is designed for use with AWT, Swing, SWT, JSP, JSF, ... .
|
Constructor Summary |
UIPopupMenu()
Creates a new instance of UIPopupMenu. |
|
Method Summary |
void |
addSeparator()
Appends a new separator at the end of the menu. |
void |
addSeparator(int pIndex)
Inserts a separator at the specified position. |
void |
show(IComponent pOrigin,
int pX,
int pY)
Shows the popup menu at the x, y position relative to an origin
component. |
| Methods inherited from class javax.rad.genui.UIContainer |
add, add, add, add, addNotify, checkAdd, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, removeNotify, setLayout, updateTranslation |
| Methods inherited from class javax.rad.genui.UIComponent |
capture, debug, error, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, getBackground, getBounds, getComponentUIResource, getCurrentTranslation, getCursor, getFactory, getFont, getForeground, getLocation, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getResource, getSize, getToolTipText, getTranslation, info, invokeAndWait, invokeAndWait, invokeInThread, invokeInThread, invokeLater, invokeLater, isBackgroundSet, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isNotified, isPreferredSizeSet, isVisible, requestFocus, setBackground, setBounds, setBounds, setCursor, setEnabled, setFocusable, setFont, setForeground, setLocation, setLocation, setMaximumSize, setMaximumSize, setMinimumSize, setMinimumSize, setName, setParent, setPreferredSize, setPreferredSize, setSize, setSize, setToolTipText, setTranslation, setVisible, translate |
| Methods inherited from interface javax.rad.ui.IContainer |
add, add, add, add, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, setLayout |
| Methods inherited from interface javax.rad.ui.IComponent |
capture, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, getBackground, getBounds, getCursor, getFactory, getFont, getForeground, getLocation, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getSize, getToolTipText, isBackgroundSet, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isVisible, requestFocus, setBackground, setBounds, setCursor, setEnabled, setFocusable, setFont, setForeground, setLocation, setMaximumSize, setMinimumSize, setName, setParent, setPreferredSize, setSize, setToolTipText, setVisible |
UIPopupMenu
public UIPopupMenu()
- Creates a new instance of
UIPopupMenu.
- See Also:
IPopupMenu
addSeparator
public void addSeparator()
- Appends a new separator at the end of the menu.
- Specified by:
addSeparator in interface IPopupMenu
addSeparator
public void addSeparator(int pIndex)
- Inserts a separator at the specified position.
- Specified by:
addSeparator in interface IPopupMenu
- Parameters:
pIndex - an integer specifying the position at which to
insert the menu separator
show
public void show(IComponent pOrigin,
int pX,
int pY)
- Shows the popup menu at the x, y position relative to an origin
component.
The origin component must be contained within the component
hierarchy of the popup menu's parent. Both the origin and the parent
must be showing on the screen for this method to be valid.
If this PopupMenu is being used as a Menu
(i.e., it has a non-Component parent),
then you cannot call this method on the PopupMenu.
- Specified by:
show in interface IPopupMenu
- Parameters:
pOrigin - the component which defines the coordinate spacepX - the x coordinate position to popup the menupY - the y coordinate position to popup the menu
Copyright © 2009 SIB Visions GmbH. All Rights Reserved.