SMACS

smacs.xngr.browser.ui
Interface ConfigurationProperties

All Known Implementing Classes:
ConfigurationPropertiesXml

public interface ConfigurationProperties

Handles the eXchaNGeR configuration document. The original has been in ui.ConfigurationProperties which is now an implementation of this interface.

Author:
Edwin Dankert

Method Summary
 void addService(ServiceProperties service)
          Adds a service to the properties.
 DesktopProperties getDesktop()
          Returns the properties for the desktop.
 EditorProperties getEditor()
          Returns the properties for the editor.
 ExplorerProperties getExplorer()
          Returns the properties for the explorer.
 CategoryProperties getRootCategory()
          Returns the root document category.
 Element getRootElement()
          Returns the root of the preferences or null if not applicable
 Vector getServices()
          Returns a list of Service Properties.
 ViewerProperties getViewer()
          Returns the properties for the viewer.
 boolean isShowDesktop()
          Returns true when the desktop is shown.
 ConfigurationProperties newConfigurationProperties(File projectdir)
          Creates the Configuration Document wrapper.
 void removeService(ServiceProperties service)
          Removes a service from the document and the list of services.
 void save()
          Saves the configuration properties to disk.
 void showDesktop(boolean visible)
          Set the desktop (in)visible.
 

Method Detail

newConfigurationProperties

public ConfigurationProperties newConfigurationProperties(File projectdir)
Creates the Configuration Document wrapper. It reads in the root element and sets the list of services.


isShowDesktop

public boolean isShowDesktop()
Returns true when the desktop is shown.

Returns:
the desktop visibility.

showDesktop

public void showDesktop(boolean visible)
Set the desktop (in)visible.

Parameters:
visible - true when the desktop should be visible.

getDesktop

public DesktopProperties getDesktop()
Returns the properties for the desktop.

Returns:
the desktop properties.

getEditor

public EditorProperties getEditor()
Returns the properties for the editor.

Returns:
the editor properties.

getViewer

public ViewerProperties getViewer()
Returns the properties for the viewer.

Returns:
the viewer properties.

getExplorer

public ExplorerProperties getExplorer()
Returns the properties for the explorer.

Returns:
the explorer properties.

getServices

public Vector getServices()
Returns a list of Service Properties.

Returns:
a list of service properties.

addService

public void addService(ServiceProperties service)
Adds a service to the properties.


removeService

public void removeService(ServiceProperties service)
Removes a service from the document and the list of services.

Parameters:
service - the service properties.

getRootCategory

public CategoryProperties getRootCategory()
Returns the root document category.

Returns:
the root category.

getRootElement

public Element getRootElement()
Returns the root of the preferences or null if not applicable


save

public void save()
Saves the configuration properties to disk.


SMACS