|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.rad.genui.UIResource<C>
javax.rad.genui.UIComponent<C>
javax.rad.genui.UIContainer<IPopupMenu>
javax.rad.genui.menu.UIPopupMenu
public class UIPopupMenu
Platform and technology independent popup menu. It is designed for use with AWT, Swing, SWT, JSP, JSF, ... .
| Field Summary |
|---|
| Fields inherited from class javax.rad.genui.UIContainer |
|---|
components |
| Fields inherited from class javax.rad.genui.UIComponent |
|---|
lLastTranslationModified, parent |
| Fields inherited from class javax.rad.genui.UIResource |
|---|
uiResource |
| Constructor Summary | |
|---|---|
|
UIPopupMenu()
Creates a new instance of UIPopupMenu. |
protected |
UIPopupMenu(IPopupMenu pMenu)
Creates a new instance of UIPopupMenu with the given
popup menu. |
| 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, beforeAddNotify, checkAdd, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, removeNotify, setLayout, setZOrder, updateTranslation |
| Methods inherited from class javax.rad.genui.UIResource |
|---|
equals, getUIResource, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| 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.IResource |
|---|
getResource |
| Constructor Detail |
|---|
public UIPopupMenu()
UIPopupMenu.
IPopupMenuprotected UIPopupMenu(IPopupMenu pMenu)
UIPopupMenu with the given
popup menu.
pMenu - the popup menuIPopupMenu| Method Detail |
|---|
public void addSeparator()
addSeparator in interface IPopupMenupublic void addSeparator(int pIndex)
addSeparator in interface IPopupMenupIndex - an integer specifying the position at which to
insert the menu separator
public void show(IComponent pOrigin,
int pX,
int pY)
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.
show in interface IPopupMenupOrigin - the component which defines the coordinate spacepX - the x coordinate position to popup the menupY - the y coordinate position to popup the menu
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||