|
JGraphpad Pro
|
||||||||||
| 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.AbstractButton
javax.swing.JMenuItem
javax.swing.JMenu
com.jgraph.pad.factory.JGraphpadWindowMenu
Window menu to activate internal frames in an editor pane.
| Nested Class Summary | |
static class |
JGraphpadWindowMenu.FactoryMethod
Provides a factory method to construct a window menu for an editor. |
| Nested classes inherited from class javax.swing.JMenu |
JMenu.AccessibleJMenu, JMenu.WinListener |
| Nested classes inherited from class javax.swing.JMenuItem |
JMenuItem.AccessibleJMenuItem |
| Nested classes inherited from class javax.swing.AbstractButton |
AbstractButton.AccessibleAbstractButton, AbstractButton.ButtonChangeListener |
| Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
protected JDesktopPane |
desktopPane
References the desktop pane that this menu represents. |
protected List |
items
Holds all dynamically created items. |
static String |
KEY_MENULABEL
Specifies the resource key for the menu label. |
static String |
KEY_WINDOWMENU
Specifies the key under which to store the window menu for later reference. |
| Fields inherited from class javax.swing.JMenu |
popupListener |
| 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 javax.swing.SwingConstants |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
JGraphpadWindowMenu()
Constructs a new window menu using KEY_MENULABEL. |
|
| Method Summary | |
void |
componentAdded(ContainerEvent e)
|
void |
componentRemoved(ContainerEvent e)
|
protected JMenuItem |
createItem(JInternalFrame frame)
Creates a new menuitem for the specified internal frame adding an action listener that brings the respective frame to front. |
protected void |
doCascadeAll()
Cascades all internal frames in desktopPane. |
void |
doMaximizeAll()
Maximizes all internal frames in desktopPane. |
protected void |
doMinimizeAll()
Minimizes all internal frames in desktopPane. |
JDesktopPane |
getDesktopPane()
Returns the desktop pane. |
void |
setDesktopPane(JDesktopPane desktopPane)
Sets the desktop pane and adds this as a container listener. |
protected void |
updateItems()
Reloads all dynamic items in the menu. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.swing.MenuElement |
processKeyEvent, processMouseEvent |
| Field Detail |
public static String KEY_MENULABEL
windowMenu.label.
public static String KEY_WINDOWMENU
protected JDesktopPane desktopPane
protected List items
| Constructor Detail |
public JGraphpadWindowMenu()
KEY_MENULABEL.
| Method Detail |
public JDesktopPane getDesktopPane()
public void setDesktopPane(JDesktopPane desktopPane)
desktopPane - The desktopPane to set.public void doMaximizeAll()
desktopPane.
protected void doMinimizeAll()
desktopPane.
protected void doCascadeAll()
desktopPane.
protected void updateItems()
protected JMenuItem createItem(JInternalFrame frame)
frame - The internal frame that the item represents.
frame.public void componentAdded(ContainerEvent e)
componentAdded in interface ContainerListenerpublic void componentRemoved(ContainerEvent e)
componentRemoved in interface ContainerListener
|
JGraphpad Pro
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||