- All Superinterfaces:
Disableable,PropertyBean
- All Known Subinterfaces:
FileBasedApplication
- All Known Implementing Classes:
AbstractApplication,AbstractFileBasedApplication
An
Application handles the life-cycle of Activity objects and
provides windows to present them on screen.- Author:
- Werner Randelshofer
-
Property Summary
PropertiesTypePropertyDescriptionContains allActionobjects that are managed by thisApplication.javafx.beans.property.ReadOnlyObjectProperty<Activity> Provides the currently active activities.Contains allActivityobjects that are managed by thisApplication.@NonNull javafx.beans.property.IntegerPropertyThe maximal number of recent URIs.javafx.beans.property.ReadOnlyMapProperty<URI, javafx.scene.input.DataFormat> The set of recent URIs.Properties inherited from interface org.jhotdraw8.fxbase.control.Disableable
disabled -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final org.jhotdraw8.fxcollection.typesafekey.Key<String> static final org.jhotdraw8.fxcollection.typesafekey.Key<String> static final Stringstatic final Stringstatic final org.jhotdraw8.fxcollection.typesafekey.Key<String> static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final org.jhotdraw8.fxcollection.typesafekey.Key<String> Fields inherited from interface org.jhotdraw8.fxbase.control.Disableable
DISABLED_PROPERTY -
Method Summary
Modifier and TypeMethodDescriptionContains allActionobjects that are managed by thisApplication.javafx.beans.property.ReadOnlyObjectProperty<Activity> Provides the currently active activities.Contains allActivityobjects that are managed by thisApplication.default CompletionStage<Activity> Creates a new activity, initializes it, then invokes the callback.voidexit()Exits the application.Gets the value of theactionsproperty.Gets the value of theactiveActivityproperty.Gets the value of theactivitiesproperty.Gets the value of theactivityFactoryproperty.default intGets the value of themaxNumberOfRecentUrisproperty.Gets the value of themenuBarFactoryproperty.default @Nullable javafx.scene.NodegetNode()Returns the application node.default @NonNull PreferencesGets the value of thepreferencesproperty.Gets the value of therecentUrisproperty.Gets the value of theresourcesproperty.Gets the value of thestylesheetsproperty.@NonNull javafx.beans.property.IntegerPropertyThe maximal number of recent URIs.javafx.beans.property.ReadOnlyMapProperty<URI, javafx.scene.input.DataFormat> The set of recent URIs.default voidsetActivityFactory(Supplier<Activity> newValue) Sets the value of theactivityFactoryproperty.default voidsetMaxNumberOfRecentUris(int newValue) Sets the value of themaxNumberOfRecentUrisproperty.default voidsetMenuBarFactory(@Nullable Supplier<javafx.scene.control.MenuBar> newValue) Sets the value of themenuBarFactoryproperty.default voidsetPreferences(@NonNull Preferences preferences) Sets the value of thepreferencesproperty.default voidsetResources(@NonNull Resources newValue) Sets the value of theresourcesproperty.Methods inherited from interface org.jhotdraw8.fxbase.control.Disableable
addDisabler, disabledProperty, disablers, isDisabled, removeDisablerMethods inherited from interface org.jhotdraw8.fxbase.beans.PropertyBean
get, getNonNull, getProperties, getProperty, put, remove, set, setNonNull, valueAt
-
Property Details
-
activities
Contains allActivityobjects that are managed by thisApplication.- See Also:
-
preferences
@NonNull NonNullObjectProperty<Preferences> preferencesProperty- See Also:
-
actions
Contains allActionobjects that are managed by thisApplication.- See Also:
-
recentUris
javafx.beans.property.ReadOnlyMapProperty<URI,javafx.scene.input.DataFormat> recentUrisPropertyThe set of recent URIs. The set must be ordered by most recently used first. Only the first items as specified inmaxNumberOfRecentUrisProperty()of the set are used and persisted in user preferences.- See Also:
-
maxNumberOfRecentUris
@NonNull javafx.beans.property.IntegerProperty maxNumberOfRecentUrisPropertyThe maximal number of recent URIs. Specifies how many items ofrecentUrisProperty()are used and persisted in user preferences. This number is also persisted in user preferences.- See Also:
-
activeActivity
javafx.beans.property.ReadOnlyObjectProperty<Activity> activeActivityPropertyProvides the currently active activities. This is the last activities which was focus owner. Returns null, if the application has no views.- See Also:
-
activityFactory
- See Also:
-
resources
@NonNull NonNullObjectProperty<Resources> resourcesProperty- See Also:
-
stylesheets
- See Also:
-
-
Field Details
-
ACTIONS_PROPERTY
- See Also:
-
ACTIVITIES_PROPERTY
- See Also:
-
ACTIVITY_FACTORY_PROPERTY
- See Also:
-
RESOURCE_BUNDLE_PROPERTY
- See Also:
-
MENU_BAR_FACTORY_PROPERTY
- See Also:
-
RECENT_URIS_PROPERTY
- See Also:
-
PREFERENCES_PROPERTY
- See Also:
-
MAX_NUMBER_OF_RECENT_URIS_PROPERTY
- See Also:
-
STYLESHEETS_PROPERTY
- See Also:
-
NAME_KEY
-
VERSION_KEY
-
COPYRIGHT_KEY
-
LICENSE_KEY
-
-
Method Details
-
activitiesProperty
Contains allActivityobjects that are managed by thisApplication.- Returns:
- the activities
- See Also:
-
getExecutor
Executor getExecutor() -
preferencesProperty
@NonNull NonNullObjectProperty<Preferences> preferencesProperty()- Returns:
- the
preferencesproperty - See Also:
-
actionsProperty
Contains allActionobjects that are managed by thisApplication.- Returns:
- the activities
- See Also:
-
getActions
Gets the value of theactionsproperty.- Property description:
- Contains all
Actionobjects that are managed by thisApplication. - Returns:
- the value of the
actionsproperty - See Also:
-
getPreferences
Gets the value of thepreferencesproperty.- Property description:
- Returns:
- the value of the
preferencesproperty - See Also:
-
setPreferences
Sets the value of thepreferencesproperty.- Property description:
- Parameters:
preferences- the value for thepreferencesproperty- See Also:
-
recentUrisProperty
javafx.beans.property.ReadOnlyMapProperty<URI,javafx.scene.input.DataFormat> recentUrisProperty()The set of recent URIs. The set must be ordered by most recently used first. Only the first items as specified inmaxNumberOfRecentUrisProperty()of the set are used and persisted in user preferences.- Returns:
- the recent Uris
- See Also:
-
getRecentUris
default @NonNull javafx.collections.ObservableMap<URI,javafx.scene.input.DataFormat> getRecentUris()Gets the value of therecentUrisproperty.- Property description:
- The set of recent URIs. The set must be ordered by most recently used
first. Only the first items as specified in
maxNumberOfRecentUrisProperty()of the set are used and persisted in user preferences. - Returns:
- the value of the
recentUrisproperty - See Also:
-
maxNumberOfRecentUrisProperty
@NonNull javafx.beans.property.IntegerProperty maxNumberOfRecentUrisProperty()The maximal number of recent URIs. Specifies how many items ofrecentUrisProperty()are used and persisted in user preferences. This number is also persisted in user preferences.- Returns:
- the number of recent Uris
- See Also:
-
getActivities
Gets the value of theactivitiesproperty.- Property description:
- Contains all
Activityobjects that are managed by thisApplication. - Returns:
- the value of the
activitiesproperty - See Also:
-
activeActivityProperty
javafx.beans.property.ReadOnlyObjectProperty<Activity> activeActivityProperty()Provides the currently active activities. This is the last activities which was focus owner. Returns null, if the application has no views.- Returns:
- The active activities.
- See Also:
-
getActiveActivity
Gets the value of theactiveActivityproperty.- Property description:
- Provides the currently active activities. This is the last activities which was focus owner. Returns null, if the application has no views.
- Returns:
- the value of the
activeActivityproperty - See Also:
-
exit
void exit()Exits the application. -
getNode
Returns the application node.- Returns:
- the node
-
createActivity
Creates a new activity, initializes it, then invokes the callback.- Returns:
- A callback.
-
getMaxNumberOfRecentUris
default int getMaxNumberOfRecentUris()Gets the value of themaxNumberOfRecentUrisproperty.- Property description:
- The maximal number of recent URIs. Specifies how many items of
recentUrisProperty()are used and persisted in user preferences. This number is also persisted in user preferences. - Returns:
- the value of the
maxNumberOfRecentUrisproperty - See Also:
-
setMaxNumberOfRecentUris
default void setMaxNumberOfRecentUris(int newValue) Sets the value of themaxNumberOfRecentUrisproperty.- Property description:
- The maximal number of recent URIs. Specifies how many items of
recentUrisProperty()are used and persisted in user preferences. This number is also persisted in user preferences. - Parameters:
newValue- the value for themaxNumberOfRecentUrisproperty- See Also:
-
activityFactoryProperty
- Returns:
- the
activityFactoryproperty - See Also:
-
getActivityFactory
Gets the value of theactivityFactoryproperty.- Property description:
- Returns:
- the value of the
activityFactoryproperty - See Also:
-
setActivityFactory
Sets the value of theactivityFactoryproperty.- Property description:
- Parameters:
newValue- the value for theactivityFactoryproperty- See Also:
-
resourcesProperty
@NonNull NonNullObjectProperty<Resources> resourcesProperty()- Returns:
- the
resourcesproperty - See Also:
-
getMenuBarFactory
Gets the value of themenuBarFactoryproperty.- Property description:
- Returns:
- the value of the
menuBarFactoryproperty - See Also:
-
stylesheetsProperty
- Returns:
- the
stylesheetsproperty - See Also:
-
getStylesheets
Gets the value of thestylesheetsproperty.- Property description:
- Returns:
- the value of the
stylesheetsproperty - See Also:
-
setMenuBarFactory
Sets the value of themenuBarFactoryproperty.- Property description:
- Parameters:
newValue- the value for themenuBarFactoryproperty- See Also:
-
getResources
Gets the value of theresourcesproperty.- Property description:
- Returns:
- the value of the
resourcesproperty - See Also:
-
setResources
Sets the value of theresourcesproperty.- Property description:
- Parameters:
newValue- the value for theresourcesproperty- See Also:
-