Class AntecedentSwing

All Implemented Interfaces:
Comparable<SwingConfiguratorInterface>, SwingConfiguratorInterface

Configures an ExpressionTurnout object with a Swing JPanel.
  • Constructor Details

  • Method Details

    • createPanel

      protected void createPanel(@CheckForNull Base object, @Nonnull JPanel buttonPanel)
      Specified by:
      createPanel in class AbstractDigitalExpressionSwing
    • validate

      public boolean validate(@Nonnull List<String> errorMessages)
      Validate the form.

      The parameter errorMessage is used to give the error message in case of an error. If there are errors, the error messages is added to the list errorMessage.

      Parameters:
      errorMessages - the error messages in case of an error
      Returns:
      true if data in the form is valid, false otherwise
    • createNewObject

      Create a new object with the data entered.This method must also register the object in its manager.
      Parameters:
      systemName - system name
      userName - user name
      Returns:
      a male socket for the new object
    • updateObject

      public void updateObject(@Nonnull Base object)
      Updates the object with the data in the form.
      Parameters:
      object - the object to update
    • toString

      public String toString()
      Returns the name of the class that this class configures.
      Specified by:
      toString in interface SwingConfiguratorInterface
      Overrides:
      toString in class Object
      Returns:
      the name of the class this class configures.
    • dispose

      public void dispose()
      Description copied from interface: SwingConfiguratorInterface
      Dispose the panel and remove all the listeners that this class may have registered.