|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinsensa.view.dialogs.options.SetVariableBreaksSettings
public class SetVariableBreaksSettings
| Field Summary | |
|---|---|
private OptionFileChanger |
option
|
private CView |
view
|
| Constructor Summary | |
|---|---|
SetVariableBreaksSettings()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private OptionFileChanger option
private CView view
| Constructor Detail |
|---|
public SetVariableBreaksSettings()
| Method Detail |
|---|
public void setModel(CModel model)
IViewOptionSetting
setModel in interface IViewOptionSettingmodel - active model instanceIViewOptionSetting.setModel(insensa.CModel)
public void setOption(OptionFileChanger option)
throws java.io.IOException
IViewOptionSetting
setOption in interface IViewOptionSettingoption - active OptionFileChanger
java.io.IOExceptionIViewOptionSetting.setOption(insensa.optionfilechanger.OptionFileChanger)public void setParentFrame(java.awt.Frame parent)
IViewOptionSetting
setParentFrame in interface IViewOptionSettingparent - parent frame from which this method is executedIViewOptionSetting.setParentFrame(java.awt.Frame)public void setView(CView view)
IViewOptionSetting
setView in interface IViewOptionSettingIViewOptionSetting.setView(insensa.view.CView)
public void startView()
throws java.io.IOException
IViewOptionSettingAbstractViewOptionSetting:
if(option==null)
throw new IOException("OptionFileChanger not set");
if(!(option instanceof MyOptionClass))
throw new IOException("option is not of type MyOptionClass");
startView in interface IViewOptionSettingjava.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);
IViewOptionSetting.startView()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||