org.argouml.ui
Class ProjectBrowser

java.lang.Object
  |
  +--I18NJFrame
        |
        +--org.argouml.ui.ProjectBrowser
All Implemented Interfaces:
java.util.EventListener, java.beans.PropertyChangeListener

public class ProjectBrowser
extends I18NJFrame
implements java.beans.PropertyChangeListener

The main window of the ArgoUML application.

See Also:
Serialized Form

Field Summary
protected  java.lang.String _appName
           
protected  DetailsPane _eastPane
           
protected  MultiEditorPane _editorPane
           
protected  DetailsPane _northEastPane
           
protected  DetailsPane _northPane
           
protected  DetailsPane _northWestPane
           
protected  DetailsPane _southEastPane
           
protected  DetailsPane _southPane
           
protected  javax.swing.JPanel _southWestPane
           
protected  StatusBar _statusBar
          partially implemented.
protected  javax.swing.JPanel _westPane
           
protected  BorderSplitPane _workarea
           
protected static Category cat
           
static int DEFAULT_COMPONENTHEIGHT
           
static int DEFAULT_COMPONENTWIDTH
           
 java.awt.Font defaultFont
          this needs work so that users can set the font size through a gui preference window
static ProjectBrowser TheInstance
          Deprecated. As of ArgoUml version 0.13.5, replaced by getInstance()
 
Method Summary
protected  java.awt.Component createPanels(boolean doSplash)
          Creates the panels in the working area
 ArgoDiagram getActiveDiagram()
          Deprecated. As of ArgoUml version 0.13.5,replaced by Project.getActiveDiagram()
 java.lang.String getAppName()
           
 java.lang.Object getDetailsTarget()
          Deprecated. As of ArgoUml version 0.13.5,replaced by TargetManager.getInstance().getTarget()
 MultiEditorPane getEditorPane()
           
static ProjectBrowser getInstance()
          Singleton retrieval method for the projectbrowser.
 javax.swing.JMenuBar getJMenuBar()
           
 java.util.Locale getLocale()
           
 javax.swing.JPanel getNamedTab(java.lang.String tabName)
          Find the tabpage with the given label
 NavigatorPane getNavigatorPane()
          Returns the navigatorpane.
 SplashScreen getSplashScreen()
          Returns the splashscreen shown at startup.
 StatusBar getStatusBar()
           
 TabSpawnable getTab(java.lang.Class tabClass)
          Get the tab page instance of the given class
 TabProps getTabProps()
          Get the tab page containing the properties
 java.lang.Object getTarget()
          Deprecated. As of ArgoUml version 0.13.5,replaced by TargetManager.getInstance().getTarget()
 ToDoPane getTodoPane()
          Returns the todopane.
 boolean isNavigateBackEnabled()
          Deprecated. As of ArgoUml version 0.13.5,replaced by TargetManager.getInstance().navigateBackPossible()
 boolean isNavigateForwardEnabled()
          Deprecated. As of ArgoUml version 0.13.5,replaced by TargetManager.getInstance().navigateForwardPossible()
 void jumpToDiagramShowing(VectorSet dms)
          get a list of offenders and display the according diagram, aka implement a method which jumps to the offender.
 void moduleDisabled(ArgoModuleEvent event)
           
 void moduleEnabled(ArgoModuleEvent event)
           
 void moduleUnloaded(ArgoModuleEvent event)
           
 boolean navigateBack(boolean attempt)
          Deprecated. As of ArgoUml version 0.13.5,replaced by TargetManager.getInstance().navigateBack()
 boolean navigateForward(boolean attempt)
          Deprecated. As of ArgoUml version 0.13.5,replaced by TargetManager.getInstance().navigateForward()
 void navigateTo(java.lang.Object element)
          Called by a user interface element when a request to navigate to a model element has been received.
 void open(java.lang.Object element)
          Called by a user interface element when a request to open a model element in a new window has been recieved.
 void propertyChange(java.beans.PropertyChangeEvent evt)
           
 void saveScreenConfiguration()
          Save the positions of the screen splitters, sizes and postion of main window in the properties file
 void selectTabNamed(java.lang.String tabName)
          Find the tabpage with the given label and make it the front tab
 void setActiveDiagram(ArgoDiagram ad)
          Deprecated. As of ArgoUml version 0.13.5,replaced by Project.setActiveDiagram(ArgoDiagram)
 void setAppName(java.lang.String n)
           
static void setSplash(boolean splash)
           
 void setSplashScreen(SplashScreen splash)
          Sets the splashscreen.
 void setTarget(java.lang.Object o)
          Deprecated. As of ArgoUml version 0.13.5,replaced by TargetManager.getInstance().setTarget(Object)
 void setTitle(java.lang.String title)
           
 void setToDoItem(java.lang.Object o)
          Select the tab page containing the todo item TODO: should introduce an instance variable to go straight to the correct tab instead of trying all
 void setVisible(boolean b)
           
 void showStatus(java.lang.String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cat

protected static Category cat

DEFAULT_COMPONENTWIDTH

public static final int DEFAULT_COMPONENTWIDTH
See Also:
Constant Field Values

DEFAULT_COMPONENTHEIGHT

public static final int DEFAULT_COMPONENTHEIGHT
See Also:
Constant Field Values

TheInstance

public static ProjectBrowser TheInstance
Deprecated. As of ArgoUml version 0.13.5, replaced by getInstance()

ArgoUML will not support this method of invocation of the projectbrowser very soon.


_appName

protected java.lang.String _appName

_editorPane

protected MultiEditorPane _editorPane

_northEastPane

protected DetailsPane _northEastPane

_northPane

protected DetailsPane _northPane

_northWestPane

protected DetailsPane _northWestPane

_westPane

protected javax.swing.JPanel _westPane

_eastPane

protected DetailsPane _eastPane

_southEastPane

protected DetailsPane _southEastPane

_southWestPane

protected javax.swing.JPanel _southWestPane

_southPane

protected DetailsPane _southPane

_statusBar

protected StatusBar _statusBar
partially implemented. needs work to display import of source and saving of zargo


defaultFont

public java.awt.Font defaultFont
this needs work so that users can set the font size through a gui preference window


_workarea

protected BorderSplitPane _workarea
Method Detail

getLocale

public java.util.Locale getLocale()

createPanels

protected java.awt.Component createPanels(boolean doSplash)
Creates the panels in the working area

Returns:
Component

setTitle

public void setTitle(java.lang.String title)

getAppName

public java.lang.String getAppName()

setAppName

public void setAppName(java.lang.String n)

setTarget

public void setTarget(java.lang.Object o)
Deprecated. As of ArgoUml version 0.13.5,replaced by TargetManager.getInstance().setTarget(Object)

The method used by the NavigatorPane, MultiEditor and DetailsPane to set the target of the application.

the target is either a Model Element (usually selected in the Navigation pane or Properties panel) or a Fig (selected in a diagram).

The concept of a selection transaction is used to prevent a change of target in one view creating a call back to this method, which would then change the target in all views again...


getTarget

public java.lang.Object getTarget()
Deprecated. As of ArgoUml version 0.13.5,replaced by TargetManager.getInstance().getTarget()

return the current target in the editor pane


setActiveDiagram

public void setActiveDiagram(ArgoDiagram ad)
Deprecated. As of ArgoUml version 0.13.5,replaced by Project.setActiveDiagram(ArgoDiagram)

Set the diagram on which the user is currently working. When importing sources this should call the name of the folder from which the classes were imported. It should also default the model name as well. setTarget(java.lang.Object).


getActiveDiagram

public ArgoDiagram getActiveDiagram()
Deprecated. As of ArgoUml version 0.13.5,replaced by Project.getActiveDiagram()

Return the diagram, the user is currently working on.


setToDoItem

public void setToDoItem(java.lang.Object o)
Select the tab page containing the todo item TODO: should introduce an instance variable to go straight to the correct tab instead of trying all


getDetailsTarget

public java.lang.Object getDetailsTarget()
Deprecated. As of ArgoUml version 0.13.5,replaced by TargetManager.getInstance().getTarget()

Gets the target of the detailspane. This is exactly the same as the target of the TargetManager.

Returns:
the target

getTabProps

public TabProps getTabProps()
Get the tab page containing the properties

Returns:
the TabProps tabpage

getTab

public TabSpawnable getTab(java.lang.Class tabClass)
Get the tab page instance of the given class

Returns:
the tabpage

getStatusBar

public StatusBar getStatusBar()

getJMenuBar

public javax.swing.JMenuBar getJMenuBar()

getEditorPane

public MultiEditorPane getEditorPane()

selectTabNamed

public void selectTabNamed(java.lang.String tabName)
Find the tabpage with the given label and make it the front tab

Returns:
false if no tab was found of given name

getNamedTab

public javax.swing.JPanel getNamedTab(java.lang.String tabName)
Find the tabpage with the given label

Returns:
the tabpage

jumpToDiagramShowing

public void jumpToDiagramShowing(VectorSet dms)
get a list of offenders and display the according diagram, aka implement a method which jumps to the offender. TODO: this probably needs a lot of work, as the code looks as if it can only jump to diagram offenders

Parameters:
dms - vector of offenders
See Also:
ToDoPane

setVisible

public void setVisible(boolean b)

showStatus

public void showStatus(java.lang.String s)

navigateTo

public void navigateTo(java.lang.Object element)
Called by a user interface element when a request to navigate to a model element has been received.


open

public void open(java.lang.Object element)
Called by a user interface element when a request to open a model element in a new window has been recieved.


navigateBack

public boolean navigateBack(boolean attempt)
Deprecated. As of ArgoUml version 0.13.5,replaced by TargetManager.getInstance().navigateBack()


navigateForward

public boolean navigateForward(boolean attempt)
Deprecated. As of ArgoUml version 0.13.5,replaced by TargetManager.getInstance().navigateForward()


isNavigateBackEnabled

public boolean isNavigateBackEnabled()
Deprecated. As of ArgoUml version 0.13.5,replaced by TargetManager.getInstance().navigateBackPossible()


isNavigateForwardEnabled

public boolean isNavigateForwardEnabled()
Deprecated. As of ArgoUml version 0.13.5,replaced by TargetManager.getInstance().navigateForwardPossible()


saveScreenConfiguration

public void saveScreenConfiguration()
Save the positions of the screen splitters, sizes and postion of main window in the properties file


moduleUnloaded

public void moduleUnloaded(ArgoModuleEvent event)

moduleEnabled

public void moduleEnabled(ArgoModuleEvent event)

moduleDisabled

public void moduleDisabled(ArgoModuleEvent event)

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent evt)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener
See Also:
PropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)

getTodoPane

public ToDoPane getTodoPane()
Returns the todopane.

Returns:
ToDoPane

getNavigatorPane

public NavigatorPane getNavigatorPane()
Returns the navigatorpane.

Returns:
NavigatorPane The navigatorpane

getSplashScreen

public SplashScreen getSplashScreen()
Returns the splashscreen shown at startup.

Returns:
SplashScreen

setSplashScreen

public void setSplashScreen(SplashScreen splash)
Sets the splashscreen. Sets the current splashscreen to invisible

Parameters:
splash -

getInstance

public static ProjectBrowser getInstance()
Singleton retrieval method for the projectbrowser. Lazely instantiates the projectbrowser.

Returns:
the singleton instance of the projectbrowser

setSplash

public static void setSplash(boolean splash)


ArgoUML © 1996-2003 (20040216)ArgoUML Project HomeArgoUML Cookbook