|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPopupMenu
com.jidesoft.swing.JidePopupMenu
public class JidePopupMenu
This component extends JPopupMenu and adds a method to display the menu inside the screen even if the mouse pointer is near the edge of the screen.
It also puts the menu items into a scroll pane. When there are too many menu items that can't fit into one screen, the scroll pane will scroll up and down so that you can still get to all menu items.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPopupMenu |
|---|
JPopupMenu.AccessibleJPopupMenu, JPopupMenu.Separator |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
JidePopupMenu()
Constructs a JPopupMenu without an "invoker". |
|
JidePopupMenu(String label)
Constructs a JPopupMenu with the specified title. |
|
| Method Summary | |
|---|---|
protected Point |
getPopupMenuOrigin(Component invoker,
int x,
int y)
Figures out the sizes needed to calculate the menu position. |
Dimension |
getPreferredScrollableViewportSize()
|
int |
getScrollableBlockIncrement(Rectangle visibleRect,
int orientation,
int direction)
|
boolean |
getScrollableTracksViewportHeight()
|
boolean |
getScrollableTracksViewportWidth()
|
int |
getScrollableUnitIncrement(Rectangle visibleRect,
int orientation,
int direction)
|
String |
getUIClassID()
|
void |
setLocation(int x,
int y)
|
void |
show(Component invoker,
int x,
int y)
Displays the PopUpMenu at a specified position. |
void |
updateUI()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JidePopupMenu()
JPopupMenu without an "invoker".
public JidePopupMenu(String label)
JPopupMenu with the specified title.
label - the string that a UI may use to display as a title for the popup menu.| Method Detail |
|---|
public String getUIClassID()
getUIClassID in class JPopupMenupublic void updateUI()
updateUI in class JPopupMenu
public void show(Component invoker,
int x,
int y)
show in class JPopupMenuinvoker - the component that triggers the eventx - mouse X position on screeny - mouse Y position on screen
protected Point getPopupMenuOrigin(Component invoker,
int x,
int y)
invoker - the component that triggers the eventx - mouse X position on screeny - mouse Y position on screen
public void setLocation(int x,
int y)
setLocation in class JPopupMenupublic Dimension getPreferredScrollableViewportSize()
getPreferredScrollableViewportSize in interface Scrollable
public int getScrollableUnitIncrement(Rectangle visibleRect,
int orientation,
int direction)
getScrollableUnitIncrement in interface Scrollable
public int getScrollableBlockIncrement(Rectangle visibleRect,
int orientation,
int direction)
getScrollableBlockIncrement in interface Scrollablepublic boolean getScrollableTracksViewportWidth()
getScrollableTracksViewportWidth in interface Scrollablepublic boolean getScrollableTracksViewportHeight()
getScrollableTracksViewportHeight in interface Scrollable
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||