Chapter 5. Package org.kaiwitte.workbench.ui

Table of Contents

Interface UIConfig
Synopsis
getDataManager(DataScheme)
getMainModel()
getMainView()
getMetaDataManager(MetaScheme)
getMetaSchemeTableModels()
getOption(String)
getResource(String)

Interface UIConfig

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

Synopsis

 public interface UIConfig {
  public MainView getMainView();
  public MainModel getMainModel();
  public MetaDataManagerFactory getMetaDataManagerFactory();
  public MetaDataManager getMetaDataManager(MetaScheme scheme)
    throws IOException;

  public Sequence getMetaSchemeTableModels();
  public String getResource(String key);
  public DataManager getDataManager(DataScheme scheme)
    throws IOException;

  public String getOption(String key);
}

Inheritance Path. org.kaiwitte.workbench.ui.UIConfig

getDataManager(DataScheme)

Synopsis: public DataManager getDataManager(org.kaiwitte.workbench.data.Dat\
aScheme scheme)

              throws java.io.IOException;

Parameters

return

the DataManager to access data

Returns the DataManager to be used by all components.

getMainModel()

Synopsis: public MainModel getMainModel();

Parameters

return

the main model of the application

Returns the main model of the application.

getMainView()

Synopsis: public MainView getMainView();

Parameters

return

the main view of the application

Returns the main view of the application.

getMetaDataManager(MetaScheme)

Synopsis: public MetaDataManager getMetaDataManager(org.kaiwitte.workbench.\
data.MetaScheme scheme)

              throws java.io.IOException;

Parameters

return

the MetaDataManager to access data

Returns the MetaDataManager to be used by all components.

getMetaSchemeTableModels()

Synopsis: public Sequence getMetaSchemeTableModels();

Parameters

return

the MetaDataManager to access data

Returns the MetaDataManager to be used by all components.

getOption(String)

Synopsis: public String getOption(java.lang.String key);

Parameters

key

the key for the option

return

the value

Returns the value for a certain option. The options obtained here are configurable by the user.

getResource(String)

Synopsis: public String getResource(java.lang.String key);

Parameters

key

the key to access the data

return

the value for the 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.