Class ApplicationController<M extends ApplicationModel,W extends ApplicationView<?,?,?>>

java.lang.Object
org.scictrl.mp.orbitcorrect.mvc.ApplicationController<M,W>
Type Parameters:
M - ApplicationModel implementation type
W - ApplicationView implementation type

public abstract class ApplicationController<M extends ApplicationModel,W extends ApplicationView<?,?,?>> extends Object
Abstract class on which application should be built. It is the controller part of MVC. It has references to the ApplicationView and DataModel and ApplicationEngine, which has common application writing support for DataBush based applications.
Author:
igor@scictrl.com
  • Field Details

    • logger

      protected final org.apache.logging.log4j.Logger logger
      Logger instance.
  • Constructor Details

    • ApplicationController

      public ApplicationController(String name)
      Constructs new frame. New DBInitializer is created if needed. This constructor also calls initializeDataBush() method.
      Parameters:
      name - a String object
  • Method Details

    • handleException

      protected void handleException(Throwable exception)
      Called whenever the part throws an exception.
      Parameters:
      exception - java.lang.Throwable
    • addPropertyChangeListener

      public void addPropertyChangeListener(String n, PropertyChangeListener l)

      addPropertyChangeListener.

      Parameters:
      n - a String object
      l - a PropertyChangeListener object
    • addPropertyChangeListener

      public void addPropertyChangeListener(PropertyChangeListener l)

      addPropertyChangeListener.

      Parameters:
      l - a PropertyChangeListener object
    • getEngine

      public ApplicationEngine getEngine()

      Getter for the field engine.

      Returns:
      a ApplicationEngine object
    • getDataBush

      public DataBush getDataBush()

      getDataBush.

      Returns:
      a DataBush object
    • createNewEngine

      protected ApplicationEngine createNewEngine()

      createNewEngine.

      Returns:
      a ApplicationEngine object
    • createNewModel

      protected abstract M createNewModel()

      createNewModel.

      Returns:
      a M object
    • getModel

      public M getModel()

      Getter for the field model.

      Returns:
      a M object
    • createNewView

      protected abstract W createNewView()

      createNewView.

      Returns:
      a W object
    • getView

      public W getView()

      Getter for the field view.

      Returns:
      a W object
    • getName

      public String getName()

      Getter for the field name.

      Returns:
      a String object
    • shutdown

      public void shutdown()

      shutdown.