|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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!
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 |
---|
void setModel(CModel model)
model
- active model instancevoid setOption(OptionFileChanger option) throws java.io.IOException
option
- active OptionFileChanger
java.io.IOException
void setParentFrame(java.awt.Frame parent)
parent
- parent frame from which this method is executedvoid setView(CView view)
insensa.view
- the active CView instancevoid startView() throws java.io.IOException
AbstractViewOptionSetting
:
if(option==null)
throw new IOException("OptionFileChanger not set");
if(!(option instanceof MyOptionClass))
throw new IOException("option is not of type MyOptionClass");
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);
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |