de.uni_paderborn.fujaba.app
Class FrameMain

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Window
              extended byjava.awt.Frame
                  extended byjavax.swing.JFrame
                      extended byde.uni_paderborn.fujaba.app.FrameMain
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.swing.RootPaneContainer, java.io.Serializable, javax.swing.WindowConstants

public class FrameMain
extends javax.swing.JFrame

The main frame of Fujaba, in which all components are integrated.

Associations

                  0..1   tabbedPaneProxy    0..1
 TabbedPaneProxy -------------------------------- FrameMain
                  tabbedPaneProxy      frameMain
 

0..n decorators 0..1 FrameDecorator ---------------------------- FrameMain decorators frameMain

Version:
$Revision: 1.609.2.15 $ $Date: 2006/07/10 08:05:34 $
Author:
$Author: cschneid $
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JFrame
javax.swing.JFrame.AccessibleJFrame
 
Nested classes inherited from class java.awt.Frame
java.awt.Frame.AccessibleAWTFrame
 
Nested classes inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
static java.awt.Dimension DEFAULT_INTERNAL_FRAME_SIZE
          size of an inner diagram frame after creation
static java.lang.String MESSAGE_CLASS_STATUS
          No comment provided by developer, please add a comment to improve documentation.
static java.io.File PLUGIN_DIR
          Deprecated. Use PluginsPreferences.getPluginDirs ()
 
Fields inherited from class javax.swing.JFrame
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Method Summary
 void addDiagramToolBar(javax.swing.JToolBar toolBar)
          Deprecated. please use getInternalFrame(de.uni_paderborn.fujaba.asg.ASGDiagram).addDiagramToolBar
 boolean addToDecorators(FrameDecorator value)
          Access method for an one to n association.
 void closeAllDiagrams()
          close all diagrams
 void closeAllInternalFrames()
          close all internal frames (including diagrams)
 void closeInternalFrameOfDiag(ASGDiagram diag)
          Close the internal frame of the diagram if one exists.
 void createNewTreeItems()
          Updates the tree items of the tabbed panes and builds the dtd tree.
protected  javax.swing.JSplitPane createSplitPane(java.awt.Component westComp, java.awt.Component eastComp)
          Creates a horizontal JSplitPane.
 javax.swing.JPanel createStatusbar()
          Creates a status bar.
 void doEverythingOnEntry(ASGDiagram diag)
          No comment provided by developer, please add a comment to improve documentation.
 void doEverythingOnEntry(ASGDiagram diag, boolean saveScrollBarPos)
          No comment provided by developer, please add a comment to improve documentation.
 void doEverythingOnExit(ASGDiagram diag)
          No comment provided by developer, please add a comment to improve documentation.
 void doEverythingOnExit(ASGDiagram diag, boolean saveScrollBarPos)
          No comment provided by developer, please add a comment to improve documentation.
static FrameMain get()
          Returns the singleton FrameMain.
 InternalFrame getCurrentInternalFrame()
          Currently selected internal frame.
 javax.swing.JDesktopPane getDesktop()
          Desktop pane for custom child windows.
 FSALayeredPane getDiagramRoot()
          Deprecated. please use getInternalFrame(yourdiagram).getDiagramRoot()
 EditModeFactory getEditMode()
          Get the editMode attribute of the FrameMain object
 javax.swing.JFileChooser getFileChooser()
          Get the fileChooser attribute of the FrameMain object.
 SchemaFilter getFilterFujabaProject()
          Get the filterFujabaProject attribute of the FrameMain object value.
 SchemaFilter getFilterJarFiles()
          Get the filterJarFiles attribute of the FrameMain object value
 SchemaFilter getFilterJavaFiles()
          Get the filterJavaFiles attribute of the FrameMain object value
 javax.swing.JFrame getFrame()
          Find the hosting frame, for the file-chooser dialog.
 InternalFrame getInternalFrame(ASGDiagram diagram)
          Find or create an internal frame for a diagram.
 MessageView getMessageView()
          Default view for messages.
 de.uni_kassel.prop.JPropertyTable getPropertyEditor()
          Get the propertyEditor attribute of the FrameMain object value
protected  java.awt.Component getRightComponent()
          Get the rightComponent attribute of the FrameMain object
 javax.swing.AbstractAction getSaveAction()
          getter for field saveAction
 javax.swing.tree.DefaultMutableTreeNode getSelectedTreeNode()
          Returns the selected node or null if no selection available.
 javax.swing.JSplitPane getSplitPane()
          Fetch the JSplitPane contained in this JPanel.
 TabbedPaneProxy getTabbedPaneProxy()
          Get the tabbedPaneProxy attribute of the FrameMain object
 boolean hasInDecorators(FrameDecorator value)
          No comment provided by developer, please add a comment to improve documentation.
 void hideMessageView()
          Hide the message view.
 void init()
          initializes FrameMain
 boolean isInShowDiagram()
          Get the inShowDiagram attribute of the FrameMain object
 java.util.Iterator iteratorOfDecorators()
          No comment provided by developer, please add a comment to improve documentation.
 void openFile(java.io.File file)
          No comment provided by developer, please add a comment to improve documentation.
 void removeAllFromDecorators()
          No comment provided by developer, please add a comment to improve documentation.
 void removeDiagramToolBar(javax.swing.JToolBar toolBar)
          Deprecated. please use getInternalFrame(de.uni_paderborn.fujaba.asg.ASGDiagram).removeDiagramToolBar
 boolean removeFromDecorators(FrameDecorator value)
          No comment provided by developer, please add a comment to improve documentation.
 void removeYou()
          No comment provided by developer, please add a comment to improve documentation.
 void selectTreeItem(java.lang.Object obj)
          Selects a tree item and the associated tab containing this item.
 void setCursorDefault()
          Sets the default cursor for the whole frame.
 void setCursorWait()
          Sets the wait cursor for the whole frame.
 void setEditMode(EditModeFactory editModeFactory)
          Sets the editMode attribute of the FrameMain object
 void setMemoryLabel()
          Sets the current free memory.
protected  void setRightComponent(java.awt.Component comp)
          Sets the rightComponent attribute of the FrameMain object
 void setSaveAction(javax.swing.AbstractAction value)
          setter for field saveAction
 void setStatusLabel(java.lang.String text)
          Sets the current text of the status bar.
 boolean setTabbedPaneProxy(TabbedPaneProxy value)
          Sets the tabbedPaneProxy attribute of the FrameMain object
 void setUMLProject(UMLProject project)
          Set a new UMLProject and reset the tree and other stuff.
 void show()
          No comment provided by developer, please add a comment to improve documentation.
 void showDiagram(ASGDiagram diag)
          Switch the view to a specific diagram
 Message showError(java.lang.String text, ASGElement context)
          Convenience method to show a standard error text.
 void showMessageView()
          Show the message view.
 void showPropertyEditor(boolean show)
          shows/hides the property editor
 void showTitle()
          Set program title, project name and file name
 int sizeOfDecorators()
          No comment provided by developer, please add a comment to improve documentation.
 void writePropertyEditorConfig()
          No comment provided by developer, please add a comment to improve documentation.
 
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Frame
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Field Detail

PLUGIN_DIR

public static final java.io.File PLUGIN_DIR
Deprecated. Use PluginsPreferences.getPluginDirs ()

Directory of the plugins loaded by Fujaba and DOBS


MESSAGE_CLASS_STATUS

public static final java.lang.String MESSAGE_CLASS_STATUS
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

DEFAULT_INTERNAL_FRAME_SIZE

public static java.awt.Dimension DEFAULT_INTERNAL_FRAME_SIZE
size of an inner diagram frame after creation

Method Detail

getEditMode

public EditModeFactory getEditMode()
Get the editMode attribute of the FrameMain object

Returns:
The editMode value

setEditMode

public void setEditMode(EditModeFactory editModeFactory)
Sets the editMode attribute of the FrameMain object

Parameters:
editModeFactory - The new editMode value

get

public static FrameMain get()
Returns the singleton FrameMain.

Returns:
No description provided

getMessageView

public MessageView getMessageView()
Default view for messages.

Returns:
message view

showMessageView

public void showMessageView()
Show the message view.


hideMessageView

public void hideMessageView()
Hide the message view.


init

public void init()
initializes FrameMain


getFilterFujabaProject

public SchemaFilter getFilterFujabaProject()
Get the filterFujabaProject attribute of the FrameMain object value.

Returns:
The filterFujabaProject value

getFilterJavaFiles

public SchemaFilter getFilterJavaFiles()
Get the filterJavaFiles attribute of the FrameMain object value

Returns:
The filterJavaFiles value

getFilterJarFiles

public SchemaFilter getFilterJarFiles()
Get the filterJarFiles attribute of the FrameMain object value

Returns:
The filterJarFiles value

getFileChooser

public javax.swing.JFileChooser getFileChooser()
Get the fileChooser attribute of the FrameMain object.

Returns:
The fileChooser value

getDesktop

public javax.swing.JDesktopPane getDesktop()
Desktop pane for custom child windows.

Returns:
the desktop pane

isInShowDiagram

public boolean isInShowDiagram()
Get the inShowDiagram attribute of the FrameMain object

Returns:
The inShowDiagram value

showDiagram

public void showDiagram(ASGDiagram diag)
Switch the view to a specific diagram

Parameters:
diag - what to view and select on the desktop

getInternalFrame

public InternalFrame getInternalFrame(ASGDiagram diagram)
Find or create an internal frame for a diagram.

Parameters:
diagram - what to find a frame for
Returns:
the InternalFrame that shows the diagram (never null)

getCurrentInternalFrame

public InternalFrame getCurrentInternalFrame()
Currently selected internal frame.

Returns:
currently selected internal frame

closeAllInternalFrames

public void closeAllInternalFrames()
close all internal frames (including diagrams)


closeInternalFrameOfDiag

public void closeInternalFrameOfDiag(ASGDiagram diag)
Close the internal frame of the diagram if one exists. Do nothing otherwise.

Parameters:
diag - The ASG diagram to be closed

closeAllDiagrams

public void closeAllDiagrams()
close all diagrams


getPropertyEditor

public de.uni_kassel.prop.JPropertyTable getPropertyEditor()
Get the propertyEditor attribute of the FrameMain object value

Returns:
The propertyEditor

showPropertyEditor

public void showPropertyEditor(boolean show)
shows/hides the property editor

Parameters:
show - when true the property editor is shown (otherwise hidden)

writePropertyEditorConfig

public void writePropertyEditorConfig()
No comment provided by developer, please add a comment to improve documentation.


show

public void show()
No comment provided by developer, please add a comment to improve documentation.


setTabbedPaneProxy

public boolean setTabbedPaneProxy(TabbedPaneProxy value)
Sets the tabbedPaneProxy attribute of the FrameMain object

Parameters:
value - The new tabbedPaneProxy value
Returns:
No description provided

getTabbedPaneProxy

public TabbedPaneProxy getTabbedPaneProxy()
Get the tabbedPaneProxy attribute of the FrameMain object

Returns:
The tabbedPaneProxy value

hasInDecorators

public boolean hasInDecorators(FrameDecorator value)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
value - No description provided
Returns:
No description provided

iteratorOfDecorators

public java.util.Iterator iteratorOfDecorators()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

sizeOfDecorators

public int sizeOfDecorators()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

addToDecorators

public boolean addToDecorators(FrameDecorator value)
Access method for an one to n association. @@param value The object added.

Parameters:
value - The object added.
Returns:
No description provided

removeFromDecorators

public boolean removeFromDecorators(FrameDecorator value)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
value - No description provided
Returns:
No description provided

removeAllFromDecorators

public void removeAllFromDecorators()
No comment provided by developer, please add a comment to improve documentation.


removeYou

public void removeYou()
No comment provided by developer, please add a comment to improve documentation.


setUMLProject

public void setUMLProject(UMLProject project)
Set a new UMLProject and reset the tree and other stuff.

Parameters:
project - The new uMLProject value

createStatusbar

public javax.swing.JPanel createStatusbar()
Creates a status bar.

Returns:
No description provided

setStatusLabel

public void setStatusLabel(java.lang.String text)
Sets the current text of the status bar.

Parameters:
text - The new statusLabel value

showError

public Message showError(java.lang.String text,
                         ASGElement context)
Convenience method to show a standard error text.

Parameters:
text - error message text
context - what to highligh if message is clicked
Returns:
the nely created message (already added to message view)

setMemoryLabel

public void setMemoryLabel()
Sets the current free memory.


doEverythingOnEntry

public void doEverythingOnEntry(ASGDiagram diag)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
diag - No description provided

doEverythingOnEntry

public void doEverythingOnEntry(ASGDiagram diag,
                                boolean saveScrollBarPos)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
diag - No description provided
saveScrollBarPos - No description provided

getDiagramRoot

public FSALayeredPane getDiagramRoot()
Deprecated. please use getInternalFrame(yourdiagram).getDiagramRoot()

Returns:
the current diagram root
See Also:
InternalFrame.getDiagramRoot()

doEverythingOnExit

public void doEverythingOnExit(ASGDiagram diag)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
diag - No description provided

doEverythingOnExit

public void doEverythingOnExit(ASGDiagram diag,
                               boolean saveScrollBarPos)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
diag - No description provided
saveScrollBarPos - No description provided

createSplitPane

protected javax.swing.JSplitPane createSplitPane(java.awt.Component westComp,
                                                 java.awt.Component eastComp)
Creates a horizontal JSplitPane.

Parameters:
westComp - No description provided
eastComp - No description provided
Returns:
No description provided

setRightComponent

protected void setRightComponent(java.awt.Component comp)
Sets the rightComponent attribute of the FrameMain object

Parameters:
comp - The new rightComponent value

getRightComponent

protected java.awt.Component getRightComponent()
Get the rightComponent attribute of the FrameMain object

Returns:
The rightComponent value

getSplitPane

public javax.swing.JSplitPane getSplitPane()
Fetch the JSplitPane contained in this JPanel.

Returns:
The splitPane value

getFrame

public javax.swing.JFrame getFrame()
Find the hosting frame, for the file-chooser dialog.

Returns:
The frame value

setCursorWait

public void setCursorWait()
Sets the wait cursor for the whole frame.


setCursorDefault

public void setCursorDefault()
Sets the default cursor for the whole frame.


openFile

public void openFile(java.io.File file)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
file - No description provided

createNewTreeItems

public void createNewTreeItems()
Updates the tree items of the tabbed panes and builds the dtd tree.


selectTreeItem

public void selectTreeItem(java.lang.Object obj)
Selects a tree item and the associated tab containing this item.

Parameters:
obj - The item which will be selected.

getSelectedTreeNode

public javax.swing.tree.DefaultMutableTreeNode getSelectedTreeNode()
Returns the selected node or null if no selection available.

Returns:
The selected node.

showTitle

public void showTitle()
Set program title, project name and file name


addDiagramToolBar

public void addDiagramToolBar(javax.swing.JToolBar toolBar)
Deprecated. please use getInternalFrame(de.uni_paderborn.fujaba.asg.ASGDiagram).addDiagramToolBar

Parameters:
toolBar - toolbar to be added

removeDiagramToolBar

public void removeDiagramToolBar(javax.swing.JToolBar toolBar)
Deprecated. please use getInternalFrame(de.uni_paderborn.fujaba.asg.ASGDiagram).removeDiagramToolBar

Parameters:
toolBar - toolbar to be removed

getSaveAction

public javax.swing.AbstractAction getSaveAction()
getter for field saveAction

Returns:
the action that should be used by default to save a project

setSaveAction

public void setSaveAction(javax.swing.AbstractAction value)
setter for field saveAction

Parameters:
value - new value