insensa.view.dialogs.options
Interface IViewOptionSetting

All Known Implementing Classes:
AbstractViewOptionSetting, CDialogSetNormalizingProperties, CDialogSetQuantileBreaksProperties, CDialogSetReplaceFileValueProperties, DefaultSetBreaksSettings, SetVariableBreaksSettings, TemplateCutSettings

public interface IViewOptionSetting

If you want to create a Standart JDialog for configure the OptionFileChanger, it is stringly recommended that you do not implement this interface directly.
Use The class AbstractViewOptionSetting instead!

Author:
dennis

Method Summary
 void setModel(CModel model)
          Sets the CModel instance.
 void setOption(OptionFileChanger option)
          sets the OptionFileChanger.
 void setParentFrame(java.awt.Frame parent)
          Sets the Parent Frame.
 void setView(CView view)
          Sets the active CView instance.
 void startView()
          This method should define the insensa.view and activate it

Example:
In case of using the abstract class AbstractViewOptionSetting:
Check that the variables are set correctly.
 

Method Detail

setModel

void setModel(CModel model)
Sets the CModel instance.

Parameters:
model - active model instance

setOption

void setOption(OptionFileChanger option)
               throws java.io.IOException
sets the OptionFileChanger.

Parameters:
option - active OptionFileChanger
Throws:
java.io.IOException

setParentFrame

void setParentFrame(java.awt.Frame parent)
Sets the Parent Frame.

Parameters:
parent - parent frame from which this method is executed

setView

void setView(CView view)
Sets the active CView instance.

Parameters:
insensa.view - the active CView instance

startView

void startView()
               throws java.io.IOException
This method should define the insensa.view and activate it

Example:
In case of using the abstract class AbstractViewOptionSetting:
Check that the variables are set correctly.
 if(option==null)
 throw new IOException("OptionFileChanger not set");
 if(!(option instanceof MyOptionClass))
 throw new IOException("option is not of type MyOptionClass");
 

Throws:
java.io.IOException - SettingsDialog.initComponents(javax.swing.JPanel) creates a standard JDialog, you just have to create a JPanel with the required Components.
 initComponents(myJPanel);
 
the last important steps are to add a Listener for the Ok button and start the insensa.view
 getButtonOk().addActionListener(new OKButtonActionListener());
 this.setVisible(true);