com.gridsystems.config.modules.tomcat
Class TomcatConsoleView

java.lang.Object
  extended by com.gridsystems.config.tools.console.AbstractConsoleView
      extended by com.gridsystems.config.modules.tomcat.TomcatConsoleView
All Implemented Interfaces:
ConfiguratorView, ConsoleConfiguratorView, ErrorListener

public class TomcatConsoleView
extends AbstractConsoleView

Console View for the Tomcat configurator.

Version:
1.0
Author:
Rodrigo Ruiz Aguayo

Field Summary
 
Fields inherited from class com.gridsystems.config.tools.console.AbstractConsoleView
bundle, width
 
Constructor Summary
TomcatConsoleView(Configurator config)
          Creates a new instance of the view.
 
Method Summary
 void addConnector()
          Creates a new connector and adds it to the list.
protected  void getContents(java.util.List<java.lang.Object> list)
          Gets an array with the items conforming the contents of the "view box".
 java.lang.String getSubtitle()
          Gets the subtitle of this view.
 java.lang.String getTitle()
          Gets the title of this view.
 void getValues(ConfiguratorModel model)
          Copies the model values into this view fields.
 void removeConnector(int i)
          Removes a connector from the internal list.
 void setValues(ConfiguratorModel model)
          Copies this view field values into the destination model.
 
Methods inherited from class com.gridsystems.config.tools.console.AbstractConsoleView
addKeyMapping, addKeyMapping, addKeyMapping, buildForm, clearErrors, createBoolField, createConstantField, createPasswordField, createSelectionField, createValueField, execute, getConfigurator, getString, getString, hasErrors, paintForm, removeKeyMapping, removeKeyMapping, setApplyDiscardMappings, showError, updateError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TomcatConsoleView

public TomcatConsoleView(Configurator config)
Creates a new instance of the view.

Parameters:
config - The configurator to bind to
Method Detail

getTitle

public 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

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

Returns:
This view subtitle

removeConnector

public void removeConnector(int i)
Removes a connector from the internal list.

Parameters:
i - the position of the connector to remove

addConnector

public void addConnector()
Creates a new connector and adds it to the list.


getValues

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

Parameters:
model - The source model

setValues

public void setValues(ConfiguratorModel model)
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:
model - The destination model

getContents

protected void getContents(java.util.List<java.lang.Object> list)
Gets an array with the items conforming the contents of the "view box".

Specified by:
getContents in class AbstractConsoleView
Parameters:
list - A list where to put the contents of the box


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