|
||||||||||
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 |
---|
allComponents, components |
Fields inherited from class javax.rad.genui.UIComponent |
---|
bTranslate, lLastTranslationModified, parent, popupMenu |
Fields inherited from class javax.rad.genui.UIResource |
---|
uiResource |
Constructor Summary | |
---|---|
|
UIPopupMenu()
Creates a new instance of UIPopupMenu . |
|
UIPopupMenu(IComponent... pMenuItems)
Creates a new instance of UIPopupMenu . |
protected |
UIPopupMenu(IPopupMenu pMenu)
Creates a new instance of UIPopupMenu with the given
popup menu. |
Method Summary | |
---|---|
void |
add(IComponent pComponent,
java.lang.Object pConstraints,
int pIndex)
Adds the specified IComponent to this container with the specified
constraints at the specified index. |
void |
addSeparator()
Appends a new separator at the end of the menu. |
void |
addSeparator(int pIndex)
Inserts a separator at the specified position. |
PopupMenuHandler<IPopupMenuCanceledListener> |
eventPopupMenuCanceled()
The PopupMenuHandler for the popup menu canceled event. |
PopupMenuHandler<IPopupMenuWillBecomeInvisibleListener> |
eventPopupMenuWillBecomeInvisible()
The PopupMenuHandler for the popup menu will become invisible event. |
PopupMenuHandler<IPopupMenuWillBecomeVisibleListener> |
eventPopupMenuWillBecomeVisible()
The PopupMenuHandler for the popup menu will become visible event. |
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, addInternal, addNotify, beforeAddNotify, checkAdd, contains, getComponent, getComponentCount, getComponents, getInsets, getLayout, getUIResourceContainer, indexOf, remove, remove, removeAll, removeInternal, removeNotify, setLayout, setUIResourceContainer, setZOrder, updateTranslation |
Methods inherited from class javax.rad.genui.UIResource |
---|
eventResourceChanged, eventResourceChanged, fireResourceChanged, getObject, getObjectNames, getUIResource, hasResourceHandler, putObject, 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, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, setLayout |
Methods inherited from interface javax.rad.ui.IResource |
---|
getResource |
Constructor Detail |
---|
public UIPopupMenu()
UIPopupMenu
.
IPopupMenu
protected UIPopupMenu(IPopupMenu pMenu)
UIPopupMenu
with the given
popup menu.
pMenu
- the popup menuIPopupMenu
public UIPopupMenu(IComponent... pMenuItems)
UIPopupMenu
.
pMenuItems
- the menu items
.UIContainer.add(IComponent)
Method Detail |
---|
public void addSeparator()
addSeparator
in interface IPopupMenu
public void addSeparator(int pIndex)
addSeparator
in interface IPopupMenu
pIndex
- an integer specifying the position at which to
insert the menu separatorpublic 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 IPopupMenu
pOrigin
- the component which defines the coordinate spacepX
- the x coordinate position to popup the menupY
- the y coordinate position to popup the menupublic PopupMenuHandler<IPopupMenuWillBecomeVisibleListener> eventPopupMenuWillBecomeVisible()
eventPopupMenuWillBecomeVisible
in interface IPopupMenu
public PopupMenuHandler<IPopupMenuWillBecomeInvisibleListener> eventPopupMenuWillBecomeInvisible()
eventPopupMenuWillBecomeInvisible
in interface IPopupMenu
public PopupMenuHandler<IPopupMenuCanceledListener> eventPopupMenuCanceled()
eventPopupMenuCanceled
in interface IPopupMenu
public void add(IComponent pComponent, java.lang.Object pConstraints, int pIndex)
IComponent
to this container with the specified
constraints at the specified index. Also notifies the layout
manager to add the component to the this container's layout using
the specified constraints object.
add
in interface IContainer
add
in class UIContainer<IPopupMenu>
pComponent
- the IComponent
to be addedpConstraints
- an object expressing layout contraints for thispIndex
- the position in the container's list at which to insert
the IComponent
; -1
means insert at the end
componentIComponent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |