public class MDIApplication extends Application
Application.ApplicationCommandProcessor, Application.AppPrintPreview, Application.InitializationException, Application.InitializationListener
JComponent.AccessibleJComponent
Component.BaselineResizeBehavior
Modifier and Type | Field and Description |
---|---|
static int |
TOOLBAR_AUTO |
static int |
TOOLBAR_DEFAULT |
static int |
TOOLBAR_INVISIBLE |
static int |
TOOLBAR_PROGRAM |
static int |
TOOLBAR_VISIBLE |
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
MDIApplication(String appName) |
Modifier and Type | Method and Description |
---|---|
void |
addMenu(Action action,
String plugin,
String... locations)
Adds an item to the application menu bar.
|
void |
addMenu(JMenuItem item,
long location) |
void |
addToolBar(JToolBar toolBar,
String name) |
void |
addToolBar(JToolBar toolBar,
String name,
int mode)
Adds a new toolbar to the toolbar area.
|
PageManager |
getConsoleManager() |
PageManager |
getControlManager() |
PageManager |
getPageManager() |
void |
removeToolBar(JToolBar toolBar) |
PageManager |
selectedPageManager() |
void |
setConsoleManager(PageManager manager) |
void |
setControlManager(PageManager manager) |
void |
setPageManager(PageManager manager) |
void |
setSelectedPageManager(PageManager manager) |
about, addApplicationListener, createFrame, createPrintPreview, error, error, error, error, error, error, exit, getApplication, getAppName, getAppProperties, getCommandLine, getCommandProcessor, getCommandTargetManager, getFullVersion, getMenuBar, getRecentFileList, getServiceManager, getShowStatusBar, getShowToolBar, getStatusBar, getToolBarHolder, getUserProperties, getVersion, getXMLMenuBuilder, removeApplicationListener, restart, setLookAndFeel, setShowStatusBar, setShowToolBar, setStatusMessage, showDialog, showHelpContents, showHelpIndex, showHelpSearch, showHelpTopic, showHelpTopic, updateComponentTreeUI, updateUI, versionNumberCompare, whenAvailable
getAccessibleContext, getUI, getUIClassID, setUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final int TOOLBAR_DEFAULT
public static final int TOOLBAR_INVISIBLE
public static final int TOOLBAR_VISIBLE
public static final int TOOLBAR_AUTO
public static final int TOOLBAR_PROGRAM
public MDIApplication(String appName)
public void addToolBar(JToolBar toolBar, String name, int mode)
toolBar
- The JToolBar to addname
- The name of the toolbar, used for user menus and the app/user
properties filemode
- The mode for this toolbarpublic void removeToolBar(JToolBar toolBar)
public void addMenu(JMenuItem item, long location)
public void addMenu(Action action, String plugin, String... locations)
The location strings specify a hierarchy of menus above the added item. Each
string should be in the name[[:group]:position]
format, where
name
is the text label of the menu the item should be added to,
group
is the ordinal number of the item group inside the menu, and
position
is the position inside the group.
The first location string can also be prefixed with the desired location
on the menu bar: [barPosition:]name[[:group]:position]
.
The menu is divided into groups by separators.
If the group number is negative, items added with the same group number by
different plugins are put into the same group. If the group is not specified
or is equal to 0, the item is added to the default group. The default group
is shared by all plugins.
plugin
- Name of the plugin that adds this menu item.action
- Action for the menu item to be added.locations
- Strings that specifies locations of the added item at all levels in the menu hierarchy.public final PageManager getPageManager()
public void setPageManager(PageManager manager)
public PageManager getControlManager()
public void setControlManager(PageManager manager)
public PageManager getConsoleManager()
public void setConsoleManager(PageManager manager)
public void setSelectedPageManager(PageManager manager)
public PageManager selectedPageManager()
Copyright © 2000–2017 FreeHEP. All rights reserved.