public class InternalFrameMDIManager extends MDIManager
Layer management:
MDIManager.BoardEventHandler, MDIManager.DockablePanel, MDIManager.MDIComponent
Modifier and Type | Field and Description |
---|---|
static java.awt.Color |
desktopColorDEFAULT |
javax.swing.JDesktopPane |
desktopPane |
static java.lang.String |
KEY_DESKTOP_COLOR |
static java.lang.String |
KEY_GEOMETRY_HEIGHT |
static java.lang.String |
KEY_GEOMETRY_WIDTH |
static java.lang.String |
KEY_GEOMETRY_X |
static java.lang.String |
KEY_GEOMETRY_Y |
ACTIVE_BOARD_CHANGE, activeBoard, boardEventHandler, boardMap, dockablePanelsMap, KEY_MDIMANAGER, MDI_CHILDFRAMES, MDI_STANDALONEFRAMES
Constructor and Description |
---|
InternalFrameMDIManager(PEProgressBar progressBar) |
Modifier and Type | Method and Description |
---|---|
void |
addMDIComponent(MDIManager.MDIComponent c)
Depending on the inner pane of the given container,
adds it to the DEFAULT_LAYER or to the PALETTE_LAYER.
|
void |
cascadeDrawingBoards()
Cascade all open internal frames
|
void |
closeBoard(PEDrawingBoard board)
Ask the given board to close itself
|
MDIManager.MDIComponent |
createMDIComponent(javax.swing.JPanel pane)
Factory method that creates an MDIComponent which acts as a UI delegate to the given pane.
|
PEDrawingBoard |
getActiveDrawingBoard()
Returns the currently active drawing board ;
null if there's no internal frame in the desktopPane.
If there's at least one internal frame in the desktop, but it's deactivated (this should never happen however), then the policy is to arbitrarly activate one frame (namely the topmost frame on the desktop which is also the last one in the framearray) |
java.awt.Dimension |
getDesktopSize()
Returns the dimension of the desktop that hosts the components of this MDIManager.
|
javax.swing.JMenuItem[] |
getMenuItems()
Return an array containing all the menu-items components attached to menubars
|
java.lang.String |
getName() |
void |
saveGeometry()
Saves UI geometry to JPicEdt's preferences.
|
void |
selectDrawingBoard(PEDrawingBoard board)
selects the given drawing board by bringing it to front.
|
void |
showModalDialogBox(java.lang.String title,
javax.swing.JComponent innerPane)
[pending] experimental ! 1.3.2-beta9 ; not used yet.
|
void |
tileDrawingBoardsHorizontally()
Tiles all open internal frames horizontally
|
void |
tileDrawingBoardsVertically()
Tiles all open internal frames vertically.
|
void |
update()
Updates local properties from the JPicEdt's preferences (e.g.
|
void |
updateAccelerators()
Update JMenuItem's accelerators from the key/value pairs stored in JPicEdt's preferences
|
void |
updateFragmentsMenu()
Updates the "fragments" menu items
|
void |
updateMenuBar()
Update the content (i.e.
|
void |
updateRecentFilesSubmenu()
Updates the "recent files" sub-menu items after a frame was saved or opened.
|
void |
updateScriptsMenu()
Updates the "script" menu items
|
void |
updateToolkitMenu(java.beans.PropertyChangeEvent e)
update currently "selected" menuitem in Toolkit menu
|
void |
updateUndoRedoMenus(java.lang.String undoName,
java.lang.String redoName)
update "undo" and "redo" text
|
void |
updateWindowMenu()
Updates the Window menu as soon as an internal frame is opened or closed
(this menu keeps tracks of every open internal frames so that the user can activate
them quickly by use of a shortcut)
|
addDockablePanel, addDrawingBoard, createMDIManager, createPopupMenuFactory, getAllDrawingBoards, getDefaultManagerName, getDockablePanelFromKey, getDockablePanelKeys, getDrawingBoardCount, getHostingContainer, getInstalledMDIManagers, removeDrawingBoard, setHostingContainerTitle, showDockablePanel, showStatus, toggleDockablePanel
public javax.swing.JDesktopPane desktopPane
public static final java.lang.String KEY_GEOMETRY_X
public static final java.lang.String KEY_GEOMETRY_Y
public static final java.lang.String KEY_GEOMETRY_WIDTH
public static final java.lang.String KEY_GEOMETRY_HEIGHT
public static final java.lang.String KEY_DESKTOP_COLOR
public static final java.awt.Color desktopColorDEFAULT
public InternalFrameMDIManager(PEProgressBar progressBar)
progressBar
- The progress bar to inform of progress in the initialization ; can be null.public java.lang.String getName()
getName
in class MDIManager
public MDIManager.MDIComponent createMDIComponent(javax.swing.JPanel pane)
createMDIComponent
in class MDIManager
public void addMDIComponent(MDIManager.MDIComponent c)
addMDIComponent
in class MDIManager
public void closeBoard(PEDrawingBoard board)
MDIManager
closeBoard
in class MDIManager
public java.awt.Dimension getDesktopSize()
getDesktopSize
in class MDIManager
public void saveGeometry()
saveGeometry
in class MDIManager
InternalFrameMDIManager(jpicedt.ui.util.PEProgressBar)
,
MDIManager.addDockablePanel(java.lang.String, javax.swing.JPanel)
,
DockablePanel#setVisible
public void update()
update
in class MDIManager
public void updateAccelerators()
updateAccelerators
in class MDIManager
public void updateMenuBar()
updateMenuBar
in class MDIManager
public void updateRecentFilesSubmenu()
updateRecentFilesSubmenu
in class MDIManager
public void updateScriptsMenu()
updateScriptsMenu
in class MDIManager
public void updateFragmentsMenu()
updateFragmentsMenu
in class MDIManager
public void updateUndoRedoMenus(java.lang.String undoName, java.lang.String redoName)
updateUndoRedoMenus
in class MDIManager
public void updateWindowMenu() throws java.util.MissingResourceException
updateWindowMenu
in class MDIManager
java.util.MissingResourceException
public void updateToolkitMenu(java.beans.PropertyChangeEvent e)
updateToolkitMenu
in class MDIManager
public javax.swing.JMenuItem[] getMenuItems()
getMenuItems
in class MDIManager
public PEDrawingBoard getActiveDrawingBoard()
getActiveDrawingBoard
in class MDIManager
public void selectDrawingBoard(PEDrawingBoard board)
selectDrawingBoard
in class MDIManager
public void showModalDialogBox(java.lang.String title, javax.swing.JComponent innerPane)
public void cascadeDrawingBoards()
cascadeDrawingBoards
in class MDIManager
public void tileDrawingBoardsHorizontally()
tileDrawingBoardsHorizontally
in class MDIManager
public void tileDrawingBoardsVertically()
tileDrawingBoardsVertically
in class MDIManager
Submit a bug : syd@jpicedt.org