Class AbstractActivity

java.lang.Object
org.jhotdraw8.application.AbstractDisableable
org.jhotdraw8.application.AbstractActivity
All Implemented Interfaces:
Activity, PropertyBean, Disableable
Direct Known Subclasses:
AbstractFileBasedActivity

public abstract class AbstractActivity extends AbstractDisableable implements Activity
AbstractActivity.
Author:
Werner Randelshofer
  • Property Details

  • Field Details

    • application

      protected final @NonNull javafx.beans.property.ObjectProperty<Application> application
    • properties

      protected final @NonNull javafx.collections.ObservableMap<org.jhotdraw8.fxcollection.typesafekey.Key<?>,Object> properties
    • title

      protected final @NonNull javafx.beans.property.StringProperty title
      The title of Stage that contains the activity will be bound to the title of the activity.
  • Constructor Details

    • AbstractActivity

      public AbstractActivity()
  • Method Details

    • disambiguationProperty

      public @NonNull javafx.beans.property.IntegerProperty disambiguationProperty()
      Description copied from interface: Activity
      Used by the application to display unique titles if multiple activities have the same title.
      Specified by:
      disambiguationProperty in interface Activity
      Returns:
      the disambiguation property
    • initActions

      protected abstract void initActions(@NonNull javafx.collections.ObservableMap<String,Action> actionMap)
    • initView

      protected abstract void initView()
    • titleProperty

      public @NonNull javafx.beans.property.StringProperty titleProperty()
      The title of Stage that contains the activity will be bound to the title of the activity.
      Specified by:
      titleProperty in interface Activity
      Returns:
      the title property
    • applicationProperty

      public @NonNull javafx.beans.property.ObjectProperty<Application> applicationProperty()
      Description copied from interface: Activity
      The application property is maintained by the Application that manages this activity.

      The value is set to the application before Activity.init() is called.

      The value is set to null after Activity.destroy() has been called.

      Specified by:
      applicationProperty in interface Activity
      Returns:
      the application property
    • getProperties

      public @NonNull javafx.collections.ObservableMap<org.jhotdraw8.fxcollection.typesafekey.Key<?>,Object> getProperties()
      Specified by:
      getProperties in interface PropertyBean
    • destroy

      public void destroy()
      Description copied from interface: Activity
      Destroys the activity.

      See life-cycle in Activity.

      Specified by:
      destroy in interface Activity
    • stop

      public void stop()
      Description copied from interface: Activity
      Stops the activity.

      See life-cycle in Activity.

      Specified by:
      stop in interface Activity
    • start

      public void start()
      Description copied from interface: Activity
      Starts the activity.

      See life-cycle in Activity.

      Specified by:
      start in interface Activity
    • init

      public void init()
      Description copied from interface: Activity
      Initializes the activity.

      See life-cycle in Activity.

      Specified by:
      init in interface Activity
    • initTitle

      protected abstract void initTitle()
    • actionsProperty

      public @NonNull javafx.beans.property.ReadOnlyMapProperty<String,Action> actionsProperty()
      Description copied from interface: Activity
      Contains all Action objects that are managed by this Activity.
      Specified by:
      actionsProperty in interface Activity
      Returns:
      the actions property