Class FormEditDialog

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

public class FormEditDialog extends PamDialog
See Also:
  • Method Details

    • getFormEditor

      public FormEditor getFormEditor()
      Returns:
      the formEditor
    • showDialog

      public static ArrayList<ItemInformation> showDialog(FormEditor formEditor)
    • getParams

      public boolean getParams()
      Description copied from class: PamDialog
      called when the Ok button is pressed. This must return true in order that the dialog may close. It should also copy all parameters into an object that will be returned by showDialog.
      Specified by:
      getParams in class PamDialog
    • cancelButtonPressed

      public void cancelButtonPressed()
      Description copied from class: PamDialog
      called when the cancel button is pressed before the dialog closes. Generally you should set the parameters returned by the dialog to null or some default value, or in some other way indicate that Cancel was pressed.
      Specified by:
      cancelButtonPressed in class PamDialog
    • restoreDefaultSettings

      public void restoreDefaultSettings()
      Description copied from class: PamDialog
      standard function which should us used to copy default parameters into the dialog controls.
      Specified by:
      restoreDefaultSettings in class PamDialog
    • getSelectedControl

      public ControlTitle getSelectedControl()
    • setSelectedTitle

      public void setSelectedTitle(ControlTitle controlTitle)
    • deleteControl

      public void deleteControl(ControlTitle controlTitle)
      Delete a control
      Parameters:
      controlTitle -
    • insertAbove

      public void insertAbove(ControlTitle controlTitle)
      Insert a new control above this one
      Parameters:
      controlTitle -
    • insertBelow

      public void insertBelow(ControlTitle controlTitle)
      Insert a new control below this one
      Parameters:
      controlTitle -
    • moveUp

      public void moveUp(ControlTitle controlTitle)
      Move this control up in the list
      Parameters:
      controlTitle -
    • moveDown

      public void moveDown(ControlTitle controlTitle)
      Move this control down in the list.
      Parameters:
      controlTitle -
    • addNewControl

      public void addNewControl()
      Add a new control to the end of the controls list.
    • notifyChanges

      public void notifyChanges(FormEditor.EditNotify notifyType)
    • previewForm

      public void previewForm()
      Preview the form in a popup window of its' own. Will open in a modal dialog so it can't actually one used (it will probably write something to the database if asked !);