Class PamDialogFX2AWT<T>

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants
Direct Known Subclasses:
PamSettingsDialogFX2AWT

public class PamDialogFX2AWT<T> extends PamDialog
Creates a swing dialog which holds an FXPane. this should be used so long as we're using the main Swing GUI since the main dialog window is in the correct child list of the AWT thread.
Author:
macst invalid input: '&' Doug Gillespie
See Also:
  • Constructor Details

    • PamDialogFX2AWT

      public PamDialogFX2AWT(Window owner, SettingsPane<T> settingsPane, boolean hasDefault)
  • Method Details

    • pack

      public void pack()
      Overrides:
      pack in class Window
    • showDialog

      public T showDialog(T params)
      Show the dialog and initialise it with the given parameters.
      Parameters:
      params - parameters to set in the dialog.
      Returns:
      parameters returned from the dialog or null if cancel was pressed.
    • setParams

      public void setParams(T setParams)
    • 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
    • getReturnedParams

      public T getReturnedParams()
      Returns:
      the returnedParams
    • getDlgContent

      public javafx.embed.swing.JFXPanel getDlgContent()
      Returns:
      the dlgContent