Class FWFormDialog

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class FWFormDialog extends JDialog implements ActionListener
Modal dialog showing a form (see FWFormPanel) with info, OK and cancel buttons, e.g. for the settings or the problem report. OK closes the dialog only if all required fields are filled; the entered values are in the observable.
Author:
Andreas Enders
See Also:
  • Constructor Details

    • FWFormDialog

      public FWFormDialog(JFrame aMainFrame, org.jdom2.Element aFormElement, net.simplace.core.FWObservable aObservable, String aTitle)
      Parameters:
      aMainFrame - owner of the modal dialog
      aFormElement - the form element
      aObservable - parameters of the form, or null for new ones
      aTitle - title of the dialog
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent aActionEvent)
      OK: checks the required fields and closes the dialog; info: shows the info dialog; cancel: closes the dialog.
      Specified by:
      actionPerformed in interface ActionListener
      Parameters:
      aActionEvent - the button event
    • getObservable

      public net.simplace.core.FWObservable getObservable()
      Returns:
      the parameters with the entered values
    • isOK

      public boolean isOK()
      Returns:
      boolean if dialog was ended with OK (true) or not (false)