com.gridsystems.config.modules.jvm
Class JVMConsoleView

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

public class JVMConsoleView
extends AbstractConsoleView

Console View for the JVM Configurator.

Version:
1.0
Author:
Rodrigo Ruiz Aguayo

Field Summary
 
Fields inherited from class com.gridsystems.config.tools.console.AbstractConsoleView
bundle, width
 
Constructor Summary
JVMConsoleView(JVMConfigurator config)
          Creates a new instance bound to the specified configurator.
 
Method Summary
protected  void getContents(java.util.List<java.lang.Object> contents)
          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 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

JVMConsoleView

public JVMConsoleView(JVMConfigurator config)
Creates a new instance bound to the specified configurator.

Parameters:
config - The configurator instance.
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

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> contents)
Gets an array with the items conforming the contents of the "view box".

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


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