com.gridsystems.config
Interface ConfiguratorView

All Known Subinterfaces:
ConsoleConfiguratorView, SwingConfiguratorView
All Known Implementing Classes:
AbstractConsoleView, BasePanel, JVMConsoleView, JVMSwingView, TomcatConsoleView, TomcatSwingView

public interface ConfiguratorView

View part of the MVC pattern for Configurators.

Version:
1.0
Author:
Rodrigo Ruiz Aguayo

Method Summary
 Configurator getConfigurator()
          Gets the configurator this view is associated to.
 java.lang.String getSubtitle()
          Gets the subtitle of this view.
 java.lang.String getTitle()
          Gets the title of this view.
 void getValues(ConfiguratorModel srcModel)
          Copies the model values into this view fields.
 boolean hasErrors()
          Gets if the view contains any error.
 void setValues(ConfiguratorModel destModel)
          Copies this view field values into the destination model.
 

Method Detail

getTitle

java.lang.String getTitle()
Gets the title of this view. It will normally be the same as the configurator name, but it can change on some implementations.

Returns:
This view title

getSubtitle

java.lang.String getSubtitle()
Gets the subtitle of this view. It can contain a short description of the configurator.

Returns:
This view subtitle

getValues

void getValues(ConfiguratorModel srcModel)
Copies the model values into this view fields.

Parameters:
srcModel - The source model

setValues

void setValues(ConfiguratorModel destModel)
Copies this view field values into the destination model.

This copy should not involve validation or persistence storage, as these actions will be performed later.

Parameters:
destModel - The destination model

getConfigurator

Configurator getConfigurator()
Gets the configurator this view is associated to.

Returns:
The configurator

hasErrors

boolean hasErrors()
Gets if the view contains any error.

Returns:
true if there is any error in the view


Copyright © 2007-2008 Grid Systems, S.A.. All Rights Reserved.