Interface GeneratorUI


  • public interface GeneratorUI
    Defines settings panel for a particular generator. Responsible for loading and saving settings to the Generator instance.

    Note that panels are compatible with ValidationAPI. If the JPanel returned from getPanel() is a ValidationPanel instance, the dialog OK button will be linked to the ValidationGroup.

    Author:
    Mathieu Bastian
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      JPanel getPanel()
      Returns the panel settings.
      void setup​(Generator generator)
      Push the generator instance to get settings values.
      void unsetup()
      Notify UI that generator settings panel has been closed and that settings values can be written into current generator instance.
    • Method Detail

      • getPanel

        JPanel getPanel()
        Returns the panel settings.
        Returns:
        the panel settings
      • setup

        void setup​(Generator generator)
        Push the generator instance to get settings values.
        Parameters:
        generator - the generator instance that is to be configured
      • unsetup

        void unsetup()
        Notify UI that generator settings panel has been closed and that settings values can be written into current generator instance.