|
||||||||||
| 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
telcert.schemaprof.gui.MainFrame
public class MainFrame
This class is the most important class of SchemaProf's user interface. It
manages all other GUI components and it holds a reference to the currently
loaded profile or additional constraints file. For more details on the layout
of the MainFrame and its sub components see the description of
telcert.schemaprof.gui.
The following components are contained by the MainFrame and constitute the viewable part of SchemaProf:
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JFrame |
|---|
JFrame.AccessibleJFrame |
| Nested classes/interfaces inherited from class java.awt.Frame |
|---|
Frame.AccessibleAWTFrame |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter |
|---|
org.eclipse.emf.common.notify.Adapter.Internal |
| Field Summary | |
|---|---|
static Object |
ACTION_CONSTRAINTS_DEFINITION_NEW
|
static Object |
ACTION_CONSTRAINTS_DELETE
|
static Object |
ACTION_CONSTRAINTS_NEW
|
static Object |
ACTION_CONSTRAINTS_RENAME
|
static Object |
ACTION_ELEMENT_ACTIVATION
Reference Key of the Action : 'Toggle Activation of Element' (for Use with getAction(Object)) |
static Object |
ACTION_FILE_CLOSE_PROFILE
Reference Key of the Action : 'Close Profile' (for Use with getAction(Object)) |
static Object |
ACTION_FILE_NEW
|
static Object |
ACTION_FILE_OPEN_PROFILE
Reference Key of the Action : 'Open Profile' (for Use with getAction(Object)) |
static Object |
ACTION_FILE_QUIT
Reference Key of the Action : 'Quit' (for Use with getAction(Object)) |
static Object |
ACTION_FILE_SAVE_PROFILE
Reference Key of the Action : 'Save Profile' (for Use with getAction(Object)) |
static Object |
ACTION_FILE_SAVE_PROFILE_AS
Reference Key of the Action : 'Save Profile As' (for Use with getAction(Object)) |
static Object |
ACTION_GLOBALELEMENT_FOCUS
Reference Key of the Action: 'Focus Global Element' (for use with getAction(Object)). |
static Object |
ACTION_HELP_ABOUT
Reference Key of the Action : 'About Dialog' (for Use with getAction(Object)) |
static Object |
ACTION_MANAGER_CONDITION
Reference Key of the Action : 'Condition Manager' (for Use with getAction(Object)) |
static Object |
ACTION_MANAGER_CONSTRAINTS
Reference Key of the Action : 'Constraints Manager' (for Use with getAction(Object)) |
static Object |
ACTION_MANAGER_NAMESPACE
Reference Key of the Action : 'Namespace Manager' (for Use with getAction(Object)) |
static Object |
ACTION_MANAGER_PROFILE
Reference Key of the Action : 'Profile Manager' (for Use with getAction(Object)) |
static Object |
ACTION_MANAGER_TYPE
Reference Key of the Action : 'Type Manager' (for Use with getAction(Object)) |
static Object |
ACTION_PREFERENCES
Reference Key of the Action : 'Preferences' (for Use with getAction(Object)) |
static Object |
ACTION_REPOSITORY_MANAGER
Reference Key of the Action : 'Repository Manager' (for Use with getAction(Object)) |
static String |
BUILD_DATE
The Date of the last Application Build. |
static Locale[] |
BUILTIN_LOCALES
The Locales which are included in this version of SchemaProf. |
static int |
FONT_SIZE
|
static Integer |
HISTORY_ALL
Constant for retrieving a list of all recently opened files with any type. |
static Integer |
HISTORY_CONSTRAINT
Constant for retrieving a list of recently opened constraints. |
static Integer |
HISTORY_PROFILE
Constant for retrieving a list of recently opened profiles. |
static Integer |
HISTORY_SCHEMA
Constant for retrieving a list of recently opened schemas. |
static Integer |
HISTORY_UNKNOWN
Constant for retrieving a list of recently opened files whith an unknown type. |
static UIManager.LookAndFeelInfo[] |
SUPPORTED_LOOKANDFEEL
The LookAndFeelInfo's which are supported by the currently operating System. |
static String |
VERSION
The current Version of the Application. |
| 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 |
| Constructor Summary | |
|---|---|
MainFrame()
Creates a new MainFrame Object and all necessary SubComponents and displays them. |
|
| Method Summary | |
|---|---|
URIHistoryObject |
addHistoryObject(Object object)
Adds an object to one of the histories of recently opened files. |
boolean |
areExtensionPointsEnabled()
Returns the status of the extension points. |
boolean |
closeProfile(BaseModel profile)
Closes an open application profile and sets the file history. |
void |
enableLoading(boolean enabled)
|
void |
enableLoading(boolean enabled,
Window frame)
|
Action |
getAction(Object key)
Returns the Action specified with 'key' if it exists. |
File |
getBundleDirectory()
Returns the direcory which contains additional resource files which should be loaded by SchemaProf. |
ModelCategory |
getCategory(URI fileUri)
|
CompatibilityLevelCategory |
getCurrentCompatibility()
|
Locale |
getCurrentLocale()
Returns the currently active Localeof the Application |
UIManager.LookAndFeelInfo |
getCurrentLookAndFeelInfo()
Returns the currently active LookAndFeelInfo of the Application |
Locale |
getDefaultLocale()
Returns the default locale of the resource bundle of the GUI. |
Font |
getGlobalFont()
|
List |
getHistory(Integer historyType)
Returns a list of recently opened files of a certain type. |
String |
getLastOpenConstraintFile()
|
String |
getLastOpenProfile()
|
MainComponent |
getMainComponent()
Returns the MainComponentof the Application |
File |
getPlugInDirectory()
|
PlugIn[] |
getPlugIns()
Returns the currently active PlugIn`s of
this Application. |
Preferences |
getPreferences()
|
BaseModel |
getProfile()
Returns the currently active BaseModelof the Application |
ModelCategory |
getProfileMode()
|
File |
getProfileSaveFile()
|
ResourceBundle |
getResourceBundle()
Returns the currently active ResourceBundleof the Application
depending on the currently active Locale. |
String |
getString(String key)
Returns a localized string from the resource bundle. |
String |
getString(String key,
Object[] arguments)
Returns a localized string from the resource bundle which has inserted arguments. |
Set |
getSupportedLocales()
Returns a list of Locale-instances which are supported by the
SchemaProf GUI. |
org.eclipse.emf.common.notify.Notifier |
getTarget()
|
boolean |
isAdapterForType(Object type)
|
void |
notifyChanged(org.eclipse.emf.common.notify.Notification arg0)
|
boolean |
openProfile(File file)
Opens the given file and tries to read the contained application profile. |
void |
quit(int status)
Shuts down the Application |
void |
setBundleDirectory(File bundleDirectory)
Set the directory which contains additional resource files which should be loaded. |
void |
setExtensionPointsEnabled(boolean value)
Sets the extension points enabled or disabled. |
void |
setGlobalFont(Font globalFont)
|
void |
setPlugInDirectory(File plugInDirectory)
|
void |
setProfile(BaseModel profile)
Sets the currently active SchemaProfileof the Application |
void |
setProfileSaveFile(File profileSaveFile)
|
void |
setProxy(boolean enabled,
String host,
String port)
|
void |
setTarget(org.eclipse.emf.common.notify.Notifier arg0)
|
void |
showErrorMessage(Throwable e)
|
void |
updateActionStates()
Updates the States of all Actions depending on the current Selection's. |
void |
updateCurrentCompatibility(CompatibilityLevelCategory currentCompatibility)
|
void |
updateLocale(Locale locale)
|
void |
updateLookAndFeel(UIManager.LookAndFeelInfo info)
Updates the current Look&Feel of all Components |
| Methods inherited from class java.awt.Frame |
|---|
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, 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 String VERSION
public static final String BUILD_DATE
public static final UIManager.LookAndFeelInfo[] SUPPORTED_LOOKANDFEEL
public static final Locale[] BUILTIN_LOCALES
Locales which are included in this version of SchemaProf.
public static final Object ACTION_FILE_QUIT
getAction(Object))
public static final Object ACTION_HELP_ABOUT
getAction(Object))
public static final Object ACTION_FILE_OPEN_PROFILE
getAction(Object))
public static final Object ACTION_FILE_SAVE_PROFILE
getAction(Object))
public static final Object ACTION_FILE_SAVE_PROFILE_AS
getAction(Object))
public static final Object ACTION_FILE_CLOSE_PROFILE
getAction(Object))
public static final Object ACTION_MANAGER_TYPE
getAction(Object))
public static final Object ACTION_MANAGER_CONDITION
getAction(Object))
public static final Object ACTION_MANAGER_NAMESPACE
getAction(Object))
public static final Object ACTION_MANAGER_PROFILE
getAction(Object))
public static final Object ACTION_MANAGER_CONSTRAINTS
getAction(Object))
public static final Object ACTION_REPOSITORY_MANAGER
getAction(Object))
public static final Object ACTION_PREFERENCES
getAction(Object))
public static final Object ACTION_ELEMENT_ACTIVATION
getAction(Object))
public static final Object ACTION_GLOBALELEMENT_FOCUS
getAction(Object)).
public static final Object ACTION_CONSTRAINTS_NEW
public static final Object ACTION_CONSTRAINTS_DELETE
public static final Object ACTION_CONSTRAINTS_RENAME
public static final Object ACTION_CONSTRAINTS_DEFINITION_NEW
public static final Object ACTION_FILE_NEW
public static int FONT_SIZE
public static final Integer HISTORY_PROFILE
public static final Integer HISTORY_CONSTRAINT
public static final Integer HISTORY_SCHEMA
public static final Integer HISTORY_UNKNOWN
public static final Integer HISTORY_ALL
| Constructor Detail |
|---|
public MainFrame()
| Method Detail |
|---|
public Action getAction(Object key)
key - The Class Object of the Action you want to retrieve
AbstractMainFrameActionpublic void quit(int status)
status - The Exit Status for Debugging Purposespublic BaseModel getProfile()
BaseModelof the Application
BaseModel (Either SchemaProfile or
Constraints)public void setProfile(BaseModel profile)
SchemaProfileof the Application
profile - The SchemaProfileto set.public Locale getCurrentLocale()
Localeof the Application
Locale.getDefaultLocale()public Locale getDefaultLocale()
getCurrentLocale()public UIManager.LookAndFeelInfo getCurrentLookAndFeelInfo()
public MainComponent getMainComponent()
MainComponentof the Application
MainComponent.public ResourceBundle getResourceBundle()
ResourceBundleof the Application
depending on the currently active Locale.
ResourceBundle.public void updateActionStates()
public void updateLookAndFeel(UIManager.LookAndFeelInfo info)
info - The LookAndFeelInfo to setpublic void updateLocale(Locale locale)
public void showErrorMessage(Throwable e)
public File getProfileSaveFile()
public void setProfileSaveFile(File profileSaveFile)
profileSaveFile - The SaveFile of the current active Profile.public CompatibilityLevelCategory getCurrentCompatibility()
public void updateCurrentCompatibility(CompatibilityLevelCategory currentCompatibility)
currentCompatibility - The currentCompatibility to set.
public String getString(String key,
Object[] arguments)
key - The key of the string in the resource bundlearguments - The arguments which should be inserted into the string
public Set getSupportedLocales()
Locale-instances which are supported by the
SchemaProf GUI.
Locale-instances.public String getString(String key)
key - The key of the string in the resource bundle
public PlugIn[] getPlugIns()
PlugIn`s of
this Application.
public File getPlugInDirectory()
public void setPlugInDirectory(File plugInDirectory)
plugInDirectory - The plugInDirectory to set.
public void setProxy(boolean enabled,
String host,
String port)
public List getHistory(Integer historyType)
historyType - The type of files which should be contained in the history.
URIHistoryObject-instances.addHistoryObject(Object),
HISTORY_PROFILE,
HISTORY_CONSTRAINT,
HISTORY_SCHEMA,
HISTORY_ALLpublic URIHistoryObject addHistoryObject(Object object)
object - Either a File or a URI.
null if it wasn't
successful.getHistory(Integer)public boolean openProfile(File file)
file - The profile which should be opened.
true if loading the application profile was
successful, false otherwisepublic void enableLoading(boolean enabled)
public void enableLoading(boolean enabled,
Window frame)
public String getLastOpenProfile()
public String getLastOpenConstraintFile()
public boolean closeProfile(BaseModel profile)
profile - The application profile which should be closed.
true if closing the application profile was
successful, false otherwisepublic void setGlobalFont(Font globalFont)
public Font getGlobalFont()
public ModelCategory getCategory(URI fileUri)
public ModelCategory getProfileMode()
public File getBundleDirectory()
setBundleDirectory(File)public void setBundleDirectory(File bundleDirectory)
bundleDirectory - The bundleDirectory to set.getBundleDirectory()public void setExtensionPointsEnabled(boolean value)
value - true to enable false to disablepublic boolean areExtensionPointsEnabled()
public org.eclipse.emf.common.notify.Notifier getTarget()
getTarget in interface org.eclipse.emf.common.notify.Adapterpublic boolean isAdapterForType(Object type)
isAdapterForType in interface org.eclipse.emf.common.notify.Adapterpublic void notifyChanged(org.eclipse.emf.common.notify.Notification arg0)
notifyChanged in interface org.eclipse.emf.common.notify.Adapterpublic void setTarget(org.eclipse.emf.common.notify.Notifier arg0)
setTarget in interface org.eclipse.emf.common.notify.Adapterpublic Preferences getPreferences()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||