|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sibvisions.rad.ui.awt.impl.AwtResource<C>
com.sibvisions.rad.ui.awt.impl.AwtComponent<C>
com.sibvisions.rad.ui.awt.impl.AwtContainer<C>
com.sibvisions.rad.ui.swing.impl.SwingComponent<JPopupMenu>
com.sibvisions.rad.ui.swing.impl.menu.SwingPopupMenu
public class SwingPopupMenu
The SwingPopupMenu
is the IPopupMenu
implementation for swing.
JPopupMenu
,
IPopupMenu
Field Summary |
---|
Fields inherited from class com.sibvisions.rad.ui.awt.impl.AwtComponent |
---|
eventComponentMoved, eventComponentResized, eventSource, factory, parent |
Fields inherited from class com.sibvisions.rad.ui.awt.impl.AwtResource |
---|
resource |
Fields inherited from interface javax.rad.ui.IAlignmentConstants |
---|
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP |
Constructor Summary | |
---|---|
SwingPopupMenu()
Creates a new instance of SwingPopupMenu . |
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 com.sibvisions.rad.ui.swing.impl.SwingComponent |
---|
capture, getToolTipText, setBackground, setToolTipText |
Methods inherited from class com.sibvisions.rad.ui.awt.impl.AwtContainer |
---|
add, add, add, add, addIntern, checkAdd, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, removeIntern, setLayout, setLayoutIntern |
Methods inherited from class com.sibvisions.rad.ui.awt.impl.AwtResource |
---|
equals, getResource, 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 SwingPopupMenu()
SwingPopupMenu
.
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 menu
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |