|
|||||||||||
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 |
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 | |
protected java.lang.String |
_appName
|
protected DetailsPane |
_eastPane
|
protected MultiEditorPane |
_editorPane
|
private GenericArgoMenuBar |
_menuBar
|
private NavigatorPane |
_navPane
The navigator pane containing the modelstructure |
protected DetailsPane |
_northEastPane
|
protected DetailsPane |
_northPane
|
protected DetailsPane |
_northWestPane
|
protected DetailsPane |
_southEastPane
|
protected DetailsPane |
_southPane
|
protected javax.swing.JPanel |
_southWestPane
|
private SplashScreen |
_splash
The splash screen shown at startup |
private static boolean |
_Splash
|
protected StatusBar |
_statusBar
partially implemented. |
private java.lang.Object |
_target
The target the user has selected |
private static java.lang.String |
_Title
|
private ToDoPane |
_todoPane
The todopane (lower left corner of screen) |
protected javax.swing.JPanel |
_westPane
|
protected BorderSplitPane |
_workarea
|
private static java.lang.String |
BUNDLE
|
protected static org.apache.log4j.Logger |
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 |
private java.util.Map |
detailsPanesByCompassPoint
|
private static ProjectBrowser |
TheInstance
Member attribute to contain the singleton. |
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(java.lang.String appName,
boolean doSplash)
|
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()
Deprecated. 0.15.3 use NavigatorPane.getInstance() instead |
SplashScreen |
getSplashScreen()
Deprecated. 0.15 use SplashScreen.getInstance() instead |
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. |
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(java.lang.String compassPoint,
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(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)
|
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(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)
|
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 javax.swing.JFrame |
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, 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, 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, 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, show, 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, 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 |
protected static org.apache.log4j.Logger cat
private static final java.lang.String BUNDLE
public static final int DEFAULT_COMPONENTWIDTH
public static final int DEFAULT_COMPONENTHEIGHT
private static ProjectBrowser TheInstance
private static java.lang.String _Title
private static boolean _Splash
protected java.lang.String _appName
protected MultiEditorPane _editorPane
protected DetailsPane _northEastPane
protected DetailsPane _northPane
protected DetailsPane _northWestPane
protected javax.swing.JPanel _westPane
protected DetailsPane _eastPane
protected DetailsPane _southEastPane
protected javax.swing.JPanel _southWestPane
protected DetailsPane _southPane
private java.util.Map detailsPanesByCompassPoint
private GenericArgoMenuBar _menuBar
protected StatusBar _statusBar
public java.awt.Font defaultFont
protected BorderSplitPane _workarea
private SplashScreen _splash
private NavigatorPane _navPane
private ToDoPane _todoPane
private java.lang.Object _target
Constructor Detail |
private ProjectBrowser()
private ProjectBrowser(java.lang.String appName, boolean doSplash)
Method Detail |
public java.util.Locale getLocale()
protected java.awt.Component createPanels(boolean doSplash)
private void restorePanelSizes()
public void setTitle(java.lang.String title)
protected void updateTitle()
public java.lang.String getAppName()
public void setAppName(java.lang.String n)
public void setTarget(java.lang.Object o)
TargetManager.getInstance().setTarget(Object)
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...
public java.lang.Object getTarget()
TargetManager.getInstance().getTarget()
public void setActiveDiagram(ArgoDiagram ad)
Project.setActiveDiagram(ArgoDiagram)
setTarget(java.lang.Object)
.
public ArgoDiagram getActiveDiagram()
Project.getActiveDiagram()
public void setToDoItem(java.lang.Object o)
public java.lang.Object getDetailsTarget()
TargetManager.getInstance().getTarget()
public TabProps getTabProps()
public TabSpawnable getTab(java.lang.Class tabClass)
public StatusBar getStatusBar()
public javax.swing.JMenuBar getJMenuBar()
public MultiEditorPane getEditorPane()
public void selectTabNamed(java.lang.String tabName)
tabName
- The tabpage labelpublic javax.swing.JPanel getNamedTab(java.lang.String tabName)
tabName
- The tabpage label
public void jumpToDiagramShowing(org.tigris.gef.util.VectorSet dms)
dms
- vector of offendersToDoPane
public void setVisible(boolean b)
public void showStatus(java.lang.String s)
showStatus
in interface org.tigris.gef.ui.IStatusBar
public void navigateTo(java.lang.Object element)
public void open(java.lang.Object element)
public void saveScreenConfiguration()
public void moduleUnloaded(ArgoModuleEvent event)
public void moduleEnabled(ArgoModuleEvent event)
public void moduleDisabled(ArgoModuleEvent event)
private DetailsPane makeDetailsPane(java.lang.String compassPoint, Orientation orientation)
compassPoint
- the position for which to build the paneorientation
- the required orientation of the pane.
public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange
in interface java.beans.PropertyChangeListener
PropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)
public void targetAdded(TargetEvent e)
TargetListener
targetAdded
in interface TargetListener
e
- The targetevent, name will be TARGET_ADDEDpublic void targetRemoved(TargetEvent e)
TargetListener
targetRemoved
in interface TargetListener
e
- The targetevent, name will be TARGET_REMOVEDpublic void targetSet(TargetEvent e)
TargetListener
targetSet
in interface TargetListener
e
- The targetevent, name will be TARGET_SETpublic ToDoPane getTodoPane()
public NavigatorPane getNavigatorPane()
public SplashScreen getSplashScreen()
public void setSplashScreen(SplashScreen splash)
splash
- public static ProjectBrowser getInstance()
public static void setSplash(boolean splash)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20040316) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |