|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjpicedt.ui.MDIManager
jpicedt.ui.internal.JFrameMDIManager
public class JFrameMDIManager
An MDI Manager implementation for JFrame's
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class jpicedt.ui.MDIManager |
|---|
MDIManager.BoardEventHandler, MDIManager.DockablePanel |
| Field Summary |
|---|
| Fields inherited from class jpicedt.ui.MDIManager |
|---|
ACTIVE_BOARD_CHANGE, activeBoard, boardEventHandler, boardMap, DOCKABLE_PANEL_TOGGLE, dockablePanelsMap, KEY_MDIMANAGER, MDI_CHILDFRAMES, MDI_STANDALONEFRAMES |
| Constructor Summary | |
|---|---|
JFrameMDIManager(PEProgressBar progressBar)
|
|
| Method Summary | |
|---|---|
void |
addMDIComponent(MDIComponent c)
Add the given component to the desktop |
void |
cascadeDrawingBoards()
Cascade all open internal frames |
void |
closeBoard(PEDrawingBoard board)
Ask the given board to close itself |
CustomizerDialog |
createCustomizerDialog(AbstractCustomizer customizer,
boolean modal,
EnumSet<CustomizerDialog.ButtonMask> buttonMask)
Builds a new dialog box from a single customizer. |
CustomizerDialog |
createCustomizerDialog(ArrayList<AbstractCustomizer> customizers,
int selected,
String title,
boolean modal,
EnumSet<CustomizerDialog.ButtonMask> buttonMask)
Creates a new dialog box from the given array of AbstractCustomizer's, laying them out in
a JTabbedPane. |
MDIComponent |
createDialog(String title,
boolean modal,
JComponent p)
Wraps the given component in a JDialog, and makes it visible. |
MDIComponent |
createMDIComponent(JComponent 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 frame hosting a PEDrawingBoard in the desktop. |
Dimension |
getDesktopSize()
Returns the dimension of the desktop that hosts the components of this MDIManager. |
JMenuItem[] |
getMenuItems()
Return an array containing all the menu-items components attached to menubars |
String |
getName()
|
void |
selectDrawingBoard(PEDrawingBoard board)
selects the given drawing board by bringing it to front. |
int |
showConfirmDialog(Object message,
String title,
int optionType)
|
int |
showConfirmDialog(Object message,
String title,
int optionType,
int msgType)
|
String |
showInputDialog(Object message,
String title,
int messageType)
|
Object |
showInputDialog(Object message,
String title,
int messageType,
Object[] choices,
Object initialChoice)
|
String |
showInputDialog(Object message,
String title,
int messageType,
String initialValue)
|
void |
showMessageDialog(Object message,
String title,
int messageType)
|
void |
tileDrawingBoardsHorizontally()
Tiles all open internal frames horizontally |
void |
tileDrawingBoardsVertically()
Tiles all open internal frames vertically. |
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(PropertyChangeEvent e)
update currently "selected" menuitem in Toolkit menu |
void |
updateUndoRedoMenus(String undoName,
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) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JFrameMDIManager(PEProgressBar progressBar)
progressBar - The progress bar to inform of progress in the initialization ; can be null.| Method Detail |
|---|
public String getName()
getName in class MDIManagerpublic MDIComponent createMDIComponent(JComponent pane)
JFrame, with the given pane
added to its content-pane.
createMDIComponent in class MDIManagerpublic void addMDIComponent(MDIComponent c)
addMDIComponent in class MDIManagerpublic void closeBoard(PEDrawingBoard board)
MDIManager
closeBoard in class MDIManagerpublic Dimension getDesktopSize()
getDesktopSize in class MDIManagerpublic void updateAccelerators()
updateAccelerators in class MDIManagerpublic void updateMenuBar()
updateMenuBar in class MDIManagerpublic void updateRecentFilesSubmenu()
updateRecentFilesSubmenu in class MDIManagerpublic void updateScriptsMenu()
updateScriptsMenu in class MDIManagerpublic void updateFragmentsMenu()
updateFragmentsMenu in class MDIManager
public void updateUndoRedoMenus(String undoName,
String redoName)
updateUndoRedoMenus in class MDIManager
public void updateWindowMenu()
throws MissingResourceException
updateWindowMenu in class MDIManagerMissingResourceExceptionpublic void updateToolkitMenu(PropertyChangeEvent e)
updateToolkitMenu in class MDIManagerpublic JMenuItem[] getMenuItems()
getMenuItems in class MDIManagerpublic PEDrawingBoard getActiveDrawingBoard()
PEDrawingBoard in the desktop.
getActiveDrawingBoard in class MDIManagerpublic void selectDrawingBoard(PEDrawingBoard board)
selectDrawingBoard in class MDIManager
public MDIComponent createDialog(String title,
boolean modal,
JComponent p)
public CustomizerDialog createCustomizerDialog(ArrayList<AbstractCustomizer> customizers,
int selected,
String title,
boolean modal,
EnumSet<CustomizerDialog.ButtonMask> buttonMask)
AbstractCustomizer's, laying them out in
a JTabbedPane.CustomizerDialog.setOkButtonClosesDialog.
title - the dialog title ; if null, the title of the first customizer is used.selected - index of the selected customizer on start-upbuttonMask - buttons to be displayed : a mask computed from predefinite masks OR'd together
public CustomizerDialog createCustomizerDialog(AbstractCustomizer customizer,
boolean modal,
EnumSet<CustomizerDialog.ButtonMask> buttonMask)
public void showMessageDialog(Object message,
String title,
int messageType)
JOptionPane
public int showConfirmDialog(Object message,
String title,
int optionType)
JOptionPane
public int showConfirmDialog(Object message,
String title,
int optionType,
int msgType)
JOptionPane
public String showInputDialog(Object message,
String title,
int messageType)
JOptionPane
public String showInputDialog(Object message,
String title,
int messageType,
String initialValue)
JOptionPane
public Object showInputDialog(Object message,
String title,
int messageType,
Object[] choices,
Object initialChoice)
JOptionPanepublic void cascadeDrawingBoards()
cascadeDrawingBoards in class MDIManagerpublic void tileDrawingBoardsHorizontally()
tileDrawingBoardsHorizontally in class MDIManagerpublic void tileDrawingBoardsVertically()
tileDrawingBoardsVertically in class MDIManager
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||