org.kaiwitte.workbench.ui
Interface UIConfig


public interface UIConfig

An interface to hold configuration data for a certain runtime context.


Method Summary
 DataManager getDataManager(DataScheme scheme)
          Returns the DataManager to be used by all components.
 MainModel getMainModel()
          Returns the main model of the application.
 MainView getMainView()
          Returns the main view of the application.
 MetaDataManager getMetaDataManager(MetaScheme scheme)
          Returns the MetaDataManager to be used by all components.
 MetaSchemeTableModel[] getMetaSchemeTableModels()
          Returns the MetaDataManager to be used by all components.
 java.lang.String getOption(java.lang.String key)
          Returns the value for a certain option.
 java.lang.String getResource(java.lang.String key)
          Returns a resource value.
 

Method Detail

getMainView

MainView getMainView()
Returns the main view of the application.

Returns:
the main view of the application

getMainModel

MainModel getMainModel()
Returns the main model of the application.

Returns:
the main model of the application

getMetaDataManager

MetaDataManager getMetaDataManager(MetaScheme scheme)
                                   throws java.io.IOException
Returns the MetaDataManager to be used by all components.

Returns:
the MetaDataManager to access data
Throws:
java.io.IOException

getMetaSchemeTableModels

MetaSchemeTableModel[] getMetaSchemeTableModels()
Returns the MetaDataManager to be used by all components.

Returns:
the MetaDataManager to access data

getResource

java.lang.String getResource(java.lang.String key)
Returns a resource value. Used for string data that is visible by the user somehow, for example messages in dialogs, labels and so on.

Parameters:
key - the key to access the data
Returns:
the value for the key

getDataManager

DataManager getDataManager(DataScheme scheme)
                           throws java.io.IOException
Returns the DataManager to be used by all components.

Returns:
the DataManager to access data
Throws:
java.io.IOException

getOption

java.lang.String getOption(java.lang.String key)
Returns the value for a certain option. The options obtained here are configurable by the user.

Parameters:
key - the key for the option
Returns:
the value