org.argouml.ui
Class GUI

java.lang.Object
  extended byorg.argouml.ui.GUI

public final class GUI
extends Object

This is the "main" class for the GUI subsystem.

Users of the GUI subsystem, i.e. components that are to place themselves in any of the GUI components, register themselves in this class.

TODO: Add the rest of the registers to this.

Since:
0.21.3

Field Summary
static int SCOPE_APPLICATION
          The scope of the settings: this setting is stored in the userdirectory and valid for the application.
static int SCOPE_PROJECT
          The scope of the setting: this setting is stored with the project, i.,e.
 
Method Summary
 void addFileSaved(File file)
          Deprecated. before 0.21.3 by tfmorris. Use ProjectBrowser.addFileSaved() directly.
 void addProjectSettingsTab(GUISettingsTabInterface panel)
          Register a new ProjectSettingsTab.
 void addSettingsTab(GUISettingsTabInterface panel)
          Register a new SettingsTab.
static GUI getInstance()
           
 List getProjectSettingsTabs()
          Get the components for the project settings tab.
 List getSettingsTabs()
          Get the components for the settings tab.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCOPE_APPLICATION

public static final int SCOPE_APPLICATION
The scope of the settings: this setting is stored in the userdirectory and valid for the application.

See Also:
Constant Field Values

SCOPE_PROJECT

public static final int SCOPE_PROJECT
The scope of the setting: this setting is stored with the project, i.,e. in e.g. a zargo file. This setting will also apply when the zargo file is opened by another user, on another computer.

See Also:
Constant Field Values
Method Detail

getInstance

public static GUI getInstance()
Returns:
the instance.

addSettingsTab

public void addSettingsTab(GUISettingsTabInterface panel)
Register a new SettingsTab.

Parameters:
panel - The GUISettingsTabInterface to add.

getSettingsTabs

public List getSettingsTabs()
Get the components for the settings tab.

Returns:
A List of GUISettingsTabInterface.

addProjectSettingsTab

public void addProjectSettingsTab(GUISettingsTabInterface panel)
Register a new ProjectSettingsTab.

Parameters:
panel - The GUISettingsTabInterface to add.

getProjectSettingsTabs

public List getProjectSettingsTabs()
Get the components for the project settings tab.

Returns:
A List of GUISettingsTabInterface.

addFileSaved

public void addFileSaved(File file)
                  throws IOException
Deprecated. before 0.21.3 by tfmorris. Use ProjectBrowser.addFileSaved() directly.

Register a file in the menubar.

Parameters:
file - The File.
Throws:
IOException - if we cannot get the filename.


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook