| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectview.CreateEnvDialog
public class CreateEnvDialog
Dialog to create new environment.
| Nested Class Summary | |
|---|---|
| private  class | CreateEnvDialog.AddEnvChoiceNested class for adding an environment. | 
| private static class | CreateEnvDialog.ConcreteEnvChoiceNested class for choosing an environment. | 
| private static interface | CreateEnvDialog.IEnvChoiceNested interface for environment choices. | 
| Field Summary | |
|---|---|
| private  javax.swing.JDialog | _dialogEnvironment dialog. | 
| private  IEnvAdapter | _envAdapterAdpapter to the model for dealing with environments. | 
| private  javax.swing.JComboBox | _envChooserCombobox containing the different choices for the environment. | 
| private  AEnvFactory | _envFactoryEnvironment factory to be used for creating the environment. | 
| private  javax.swing.JButton[] | _optButtonsArray of buttons on the dialog. | 
| private  javax.swing.JPanel | _optionsPanelPanel for the environment options. | 
| private static int | CANCEL_BUTTONConstant to access the cancel button in _optButtons. | 
| private static int | CREATE_BUTTONConstant 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 adapter| Method Detail | 
|---|
public AEnvFactory showDialog()
null is returned.
nullprivate 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 | ||||||||