|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object view.CreateEnvDialog
public class CreateEnvDialog
Dialog to create new environment.
Nested Class Summary | |
---|---|
private class |
CreateEnvDialog.AddEnvChoice
Nested class for adding an environment. |
private static class |
CreateEnvDialog.ConcreteEnvChoice
Nested class for choosing an environment. |
private static interface |
CreateEnvDialog.IEnvChoice
Nested interface for environment choices. |
Field Summary | |
---|---|
private javax.swing.JDialog |
_dialog
Environment dialog. |
private IEnvAdapter |
_envAdapter
Adpapter to the model for dealing with environments. |
private javax.swing.JComboBox |
_envChooser
Combobox containing the different choices for the environment. |
private AEnvFactory |
_envFactory
Environment factory to be used for creating the environment. |
private javax.swing.JButton[] |
_optButtons
Array of buttons on the dialog. |
private javax.swing.JPanel |
_optionsPanel
Panel for the environment options. |
private static int |
CANCEL_BUTTON
Constant to access the cancel button in _optButtons. |
private static int |
CREATE_BUTTON
Constant to access the create button in _optButtons. |
Constructor Summary | |
---|---|
CreateEnvDialog(javax.swing.JFrame parent,
IEnvAdapter ea)
Creates a new CreateEnvDialog and all its controls. |
Method Summary | |
---|---|
private void |
addEnvSettings(AEnvFactory factory)
Add environment factory to dialog. |
private void |
cancelClicked()
Callback when user clicks cancel button. |
private void |
envChosen()
Callback when user selects new environment class choice from combo box. |
private javax.swing.JOptionPane |
makeOptionsPanel()
Build options dialog. |
private void |
okClicked()
Callback when user clicks ok button. |
private void |
removeEnvSettings()
Remove environment settings from dialog. |
AEnvFactory |
showDialog()
Show the modal dialog that allows the user to create a new environment. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private AEnvFactory _envFactory
private javax.swing.JComboBox _envChooser
private javax.swing.JDialog _dialog
private javax.swing.JButton[] _optButtons
private static final int CREATE_BUTTON
private static final int CANCEL_BUTTON
private javax.swing.JPanel _optionsPanel
private IEnvAdapter _envAdapter
Constructor Detail |
---|
public CreateEnvDialog(javax.swing.JFrame parent, IEnvAdapter ea)
parent
- parent frame for the dialogea
- environment adapterMethod Detail |
---|
public AEnvFactory showDialog()
null
is returned.
null
private void removeEnvSettings()
private void addEnvSettings(AEnvFactory factory)
factory
- factory to addprivate void envChosen()
private void cancelClicked()
private void okClicked()
private javax.swing.JOptionPane makeOptionsPanel()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |