java.lang.Object
org.jhotdraw8.application.AbstractDisableable
org.jhotdraw8.application.AbstractActivity
- All Implemented Interfaces:
Activity,PropertyBean,Disableable
- Direct Known Subclasses:
AbstractFileBasedActivity
AbstractActivity.
- Author:
- Werner Randelshofer
-
Property Summary
PropertiesTypePropertyDescription@NonNull javafx.beans.property.ObjectProperty<Application> The application property is maintained by theApplicationthat manages this activity.@NonNull javafx.beans.property.IntegerPropertyUsed by the application to display unique titles if multiple activities have the same title.@NonNull javafx.beans.property.StringPropertyThe title ofStagethat contains the activity will be bound to the title of the activity.Properties inherited from class org.jhotdraw8.application.AbstractDisableable
disabledProperties inherited from interface org.jhotdraw8.fxbase.control.Disableable
disabled -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final @NonNull javafx.beans.property.ObjectProperty<Application> protected final @NonNull javafx.collections.ObservableMap<org.jhotdraw8.fxcollection.typesafekey.Key<?>, Object> protected final @NonNull javafx.beans.property.StringPropertyThe title ofStagethat contains the activity will be bound to the title of the activity.Fields inherited from class org.jhotdraw8.application.AbstractDisableable
disabled, disablersFields inherited from interface org.jhotdraw8.application.Activity
APPLICATION_PROPERTY, DISAMBIGUATION_PROPERTY, TITLE_PROPERTYFields inherited from interface org.jhotdraw8.fxbase.control.Disableable
DISABLED_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NonNull javafx.beans.property.ObjectProperty<Application> The application property is maintained by theApplicationthat manages this activity.voiddestroy()Destroys the activity.@NonNull javafx.beans.property.IntegerPropertyUsed by the application to display unique titles if multiple activities have the same title.voidinit()Initializes the activity.protected abstract voidinitActions(@NonNull javafx.collections.ObservableMap<String, Action> actionMap) protected abstract voidprotected abstract voidinitView()voidstart()Starts the activity.voidstop()Stops the activity.@NonNull javafx.beans.property.StringPropertyThe title ofStagethat contains the activity will be bound to the title of the activity.Methods inherited from class org.jhotdraw8.application.AbstractDisableable
disabledProperty, disablersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jhotdraw8.application.Activity
getActions, getApplication, getDisambiguation, getNode, getTitle, setApplication, setDisambiguation, setTitleMethods inherited from interface org.jhotdraw8.fxbase.control.Disableable
addDisabler, disabledProperty, disablers, isDisabled, removeDisablerMethods inherited from interface org.jhotdraw8.fxbase.beans.PropertyBean
get, getNonNull, getProperty, put, remove, set, setNonNull, valueAt
-
Property Details
-
disambiguation
- Specified by:
disambiguationPropertyin interfaceActivity- Returns:
- the property
- See Also:
-
title
The title ofStagethat contains the activity will be bound to the title of the activity.- Specified by:
titlePropertyin interfaceActivity- Returns:
- the title of the activity
- See Also:
-
application
- Specified by:
applicationPropertyin interfaceActivity- Returns:
- the property
- See Also:
-
actions
- Specified by:
actionsPropertyin interfaceActivity- Returns:
- the activities
- See Also:
-
-
Field Details
-
application
-
properties
-
title
The title ofStagethat contains the activity will be bound to the title of the activity.
-
-
Constructor Details
-
AbstractActivity
public AbstractActivity()
-
-
Method Details
-
disambiguationProperty
Description copied from interface:ActivityUsed by the application to display unique titles if multiple activities have the same title.- Specified by:
disambiguationPropertyin interfaceActivity- Returns:
- the
disambiguationproperty
-
initActions
-
initView
protected abstract void initView() -
titleProperty
The title ofStagethat contains the activity will be bound to the title of the activity.- Specified by:
titlePropertyin interfaceActivity- Returns:
- the
titleproperty
-
applicationProperty
Description copied from interface:ActivityThe application property is maintained by theApplicationthat 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:
applicationPropertyin interfaceActivity- Returns:
- the
applicationproperty
-
getProperties
public @NonNull javafx.collections.ObservableMap<org.jhotdraw8.fxcollection.typesafekey.Key<?>,Object> getProperties()- Specified by:
getPropertiesin interfacePropertyBean
-
destroy
public void destroy()Description copied from interface:ActivityDestroys the activity.See life-cycle in
Activity. -
stop
public void stop()Description copied from interface:ActivityStops the activity.See life-cycle in
Activity. -
start
public void start()Description copied from interface:ActivityStarts the activity.See life-cycle in
Activity. -
init
public void init()Description copied from interface:ActivityInitializes the activity.See life-cycle in
Activity. -
initTitle
protected abstract void initTitle() -
actionsProperty
Description copied from interface:Activity- Specified by:
actionsPropertyin interfaceActivity- Returns:
- the
actionsproperty
-