|
||||||||||
| 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 | |
|---|---|
protected boolean |
bPopupMenuListener
whether the popup menu listener was added. |
| Fields inherited from class com.sibvisions.rad.ui.awt.impl.AwtComponent |
|---|
bComponentListener, bFocusListener, bKeyListener, bMouseListener, eventComponentMoved, eventComponentResized, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, 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_DEFAULT, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP |
| Constructor Summary | |
|---|---|
SwingPopupMenu()
Creates a new instance of SwingPopupMenu. |
|
| Method Summary | |
|---|---|
protected void |
addPopupMenuListener()
Adds a component listener for this component, if not already added. |
void |
addSeparator()
Appends a new separator at the end of the menu. |
void |
addSeparator(int pIndex)
Inserts a separator at the specified position. |
PopupMenuHandler |
eventPopupMenuCanceled()
The PopupMenuHandler for the popup menu canceled event. |
PopupMenuHandler |
eventPopupMenuWillBecomeInvisible()
The PopupMenuHandler for the popup menu will become invisible event. |
PopupMenuHandler |
eventPopupMenuWillBecomeVisible()
The PopupMenuHandler for the popup menu will become visible event. |
void |
popupMenuCanceled(PopupMenuEvent e)
|
void |
popupMenuWillBecomeInvisible(PopupMenuEvent e)
|
void |
popupMenuWillBecomeVisible(PopupMenuEvent e)
|
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, setTabIndex, 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 |
| Field Detail |
|---|
protected boolean bPopupMenuListener
| Constructor Detail |
|---|
public SwingPopupMenu()
SwingPopupMenu.
| 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 menupublic PopupMenuHandler eventPopupMenuWillBecomeVisible()
eventPopupMenuWillBecomeVisible in interface IPopupMenupublic PopupMenuHandler eventPopupMenuWillBecomeInvisible()
eventPopupMenuWillBecomeInvisible in interface IPopupMenupublic PopupMenuHandler eventPopupMenuCanceled()
eventPopupMenuCanceled in interface IPopupMenupublic void popupMenuWillBecomeVisible(PopupMenuEvent e)
popupMenuWillBecomeVisible in interface PopupMenuListenerpublic void popupMenuWillBecomeInvisible(PopupMenuEvent e)
popupMenuWillBecomeInvisible in interface PopupMenuListenerpublic void popupMenuCanceled(PopupMenuEvent e)
popupMenuCanceled in interface PopupMenuListenerprotected void addPopupMenuListener()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||