|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
org.argouml.ui.ProjectBrowser
The main window of the ArgoUML application.
Nested Class Summary | |
(package private) class |
ProjectBrowser.WindowCloser
|
Nested classes inherited from class javax.swing.JFrame |
JFrame.AccessibleJFrame |
Nested classes inherited from class java.awt.Frame |
Frame.AccessibleAWTFrame |
Nested classes inherited from class java.awt.Window |
Window.AccessibleAWTWindow |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
private String |
appName
|
static int |
DEFAULT_COMPONENTHEIGHT
Default height: DEFAULT_COMPONENTHEIGHT |
static int |
DEFAULT_COMPONENTWIDTH
Default width: DEFAULT_COMPONENTWIDTH |
private Font |
defaultFont
this needs work so that users can set the font size through a gui preference window |
private Map |
detailsPanesByCompassPoint
|
private DetailsPane |
eastPane
|
private MultiEditorPane |
editorPane
|
private NavigatorPane |
explorerPane
The explorer (formerly called navigator) pane containing the modelstructure. |
private GenericArgoMenuBar |
menuBar
|
private DetailsPane |
northEastPane
|
private DetailsPane |
northPane
|
private DetailsPane |
northWestPane
|
private static boolean |
showSplashScreen
|
private DetailsPane |
southEastPane
|
private DetailsPane |
southPane
|
private JPanel |
southWestPane
|
private SplashScreen |
splashScreen
The splash screen shown at startup |
private StatusBar |
statusBar
Partially implemented. |
private static ProjectBrowser |
theInstance
Member attribute to contain the singleton. |
private ToDoPane |
todoPane
The todopane (lower left corner of screen) |
private JPanel |
westPane
|
private org.tigris.swidgets.BorderSplitPane |
workAreaPane
|
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.Window |
|
Fields inherited from class java.awt.Container |
|
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 |
Constructor Summary | |
private |
ProjectBrowser()
For testing purposes. |
private |
ProjectBrowser(String applicationName,
boolean doSplash)
The constructor. |
Method Summary | |
protected Component |
createPanels(boolean doSplash)
Creates the panels in the working area |
String |
getAppName()
|
Font |
getDefaultFont()
|
MultiEditorPane |
getEditorPane()
|
static ProjectBrowser |
getInstance()
Singleton retrieval method for the projectbrowser. |
JMenuBar |
getJMenuBar()
|
Locale |
getLocale()
|
JPanel |
getNamedTab(String tabName)
Find the tabpage with the given label |
StatusBar |
getStatusBar()
|
TabSpawnable |
getTab(Class tabClass)
Get the tab page instance of the given class |
TabProps |
getTabProps()
Get the tab page containing the properties |
Object |
getTarget()
Deprecated. As of ArgoUml version 0.13.5,replaced by TargetManager.getInstance().getTarget() |
ToDoPane |
getTodoPane()
Returns the todopane. |
void |
jumpToDiagramShowing(org.tigris.gef.util.VectorSet dms)
get a list of offenders and display the according diagram, aka implement a method which jumps to the offender. |
private DetailsPane |
makeDetailsPane(String compassPoint,
org.tigris.swidgets.Orientation orientation)
Build a new details pane for the given compass point |
void |
moduleDisabled(ArgoModuleEvent event)
|
void |
moduleEnabled(ArgoModuleEvent event)
|
void |
moduleUnloaded(ArgoModuleEvent event)
|
void |
navigateTo(Object element)
Called by a user interface element when a request to navigate to a model element has been received. |
void |
open(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(PropertyChangeEvent evt)
|
private void |
restorePanelSizes()
Set the size of each panel to that last saved in the configuration file |
void |
saveScreenConfiguration()
Save the positions of the screen splitters, sizes and postion of main window in the properties file |
void |
selectTabNamed(String tabName)
Find the tabpage with the given label and make it the front tab |
void |
setAppName(String n)
|
static void |
setSplash(boolean splash)
|
void |
setSplashScreen(SplashScreen ss)
Sets the splashscreen. |
void |
setTarget(Object o)
Deprecated. As of ArgoUml version 0.13.5,replaced by TargetManager.getInstance().setTarget(Object)
Only still used in tests. |
void |
setTitle(String title)
|
void |
setToDoItem(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(String s)
|
void |
targetAdded(TargetEvent e)
Fired when a target is added to the list of targets. |
void |
targetRemoved(TargetEvent e)
Fired when a target is removed from the list of targets |
void |
targetSet(TargetEvent e)
Fired when a total new set of targets is set |
protected void |
updateTitle()
Updates the window title to contain the latest values for project name, active diagram, and save status. |
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, setUndecorated |
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 |
public static final int DEFAULT_COMPONENTWIDTH
public static final int DEFAULT_COMPONENTHEIGHT
private static ProjectBrowser theInstance
private static boolean showSplashScreen
private String appName
private MultiEditorPane editorPane
private DetailsPane northEastPane
private DetailsPane northPane
private DetailsPane northWestPane
private JPanel westPane
private DetailsPane eastPane
private DetailsPane southEastPane
private JPanel southWestPane
private DetailsPane southPane
private Map detailsPanesByCompassPoint
private GenericArgoMenuBar menuBar
private StatusBar statusBar
private Font defaultFont
private org.tigris.swidgets.BorderSplitPane workAreaPane
private SplashScreen splashScreen
private NavigatorPane explorerPane
private ToDoPane todoPane
Constructor Detail |
private ProjectBrowser()
private ProjectBrowser(String applicationName, boolean doSplash)
applicationName
- the title of the framedoSplash
- determines if we have to show
the splash screen at startupMethod Detail |
public Locale getLocale()
Component.getLocale()
protected Component createPanels(boolean doSplash)
doSplash
- true if we show the splashscreen during startup
private void restorePanelSizes()
public void setTitle(String title)
Frame.setTitle(java.lang.String)
protected void updateTitle()
public String getAppName()
public void setAppName(String n)
n
- the application name as shown in the titlebarpublic void setTarget(Object o)
TargetManager.getInstance().setTarget(Object)
Only still used in tests.
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...
o
- the targetpublic Object getTarget()
TargetManager.getInstance().getTarget()
public void setToDoItem(Object o)
o
- the todo item to selectpublic TabProps getTabProps()
public TabSpawnable getTab(Class tabClass)
tabClass
- the given class
public StatusBar getStatusBar()
public JMenuBar getJMenuBar()
JFrame.getJMenuBar()
public MultiEditorPane getEditorPane()
public void selectTabNamed(String tabName)
tabName
- The tabpage labelpublic JPanel getNamedTab(String tabName)
tabName
- The tabpage label
public void jumpToDiagramShowing(org.tigris.gef.util.VectorSet dms)
dms
- vector of offendersToDoPane
public void setVisible(boolean b)
Component.setVisible(boolean)
public void showStatus(String s)
showStatus
in interface org.tigris.gef.ui.IStatusBar
IStatusBar.showStatus(java.lang.String)
public void navigateTo(Object element)
element
- the navigation targetpublic void open(Object element)
element
- the UI element to be openedpublic void saveScreenConfiguration()
public void moduleUnloaded(ArgoModuleEvent event)
event
- the eventpublic void moduleEnabled(ArgoModuleEvent event)
event
- the eventpublic void moduleDisabled(ArgoModuleEvent event)
event
- the eventprivate DetailsPane makeDetailsPane(String compassPoint, org.tigris.swidgets.Orientation orientation)
compassPoint
- the position for which to build the paneorientation
- the required orientation of the pane.
public void propertyChange(PropertyChangeEvent evt)
propertyChange
in interface PropertyChangeListener
PropertyChangeListener.propertyChange(
java.beans.PropertyChangeEvent)
public void targetAdded(TargetEvent e)
TargetListener
targetAdded
in interface TargetListener
e
- The targetevent, name will be TARGET_ADDEDTargetListener.targetAdded(org.argouml.ui.targetmanager.TargetEvent)
public void targetRemoved(TargetEvent e)
TargetListener
targetRemoved
in interface TargetListener
e
- The targetevent, name will be TARGET_REMOVEDTargetListener.targetRemoved(org.argouml.ui.targetmanager.TargetEvent)
public void targetSet(TargetEvent e)
TargetListener
targetSet
in interface TargetListener
e
- The targetevent, name will be TARGET_SETTargetListener.targetSet(org.argouml.ui.targetmanager.TargetEvent)
public ToDoPane getTodoPane()
public void setSplashScreen(SplashScreen ss)
ss
- the new splashscreenpublic static ProjectBrowser getInstance()
public static void setSplash(boolean splash)
splash
- true if we have to show the splashscreenpublic Font getDefaultFont()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20050222) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |