DeepaMehta

Application Framework


Hooks are the interface between the framework and the application developer.
Hooks are decoupling the framework from specific applications.

The table below lists the hooks of the DeepaMehta Application Framework.

Hooks

Life Cycle

1 init To be responsive to topic loading TypeTopic
AssociationTypeTopic
TopicTypeTopic
TopicMapTopic
ContainerTopic
TopicContainerTopic
DataConsumerTopicTopic
DataDefinitionTopic
DataSourceTopic
UserTopic
WorkgroupTopic

MovieTopic
ActorTopic
2 evoke To be responsive to topic creation TopicTypeTopic
TopicMapTopic
UserTopic
WorkgroupTopic
3 die To be responsive to topic deletion TopicMapTopic

Reacting upon dedicated situations

4 nameChanged To be responsive to topic renaming TopicMapTopic
UserTopic
WorkgroupTopic
5 nameChangedChained To be responsive to topic renaming TopicMapTopic
6 typeChanged To be responsive to topic retyping ProxyTopic
7 published To be responsive to topicmap publishing DocumentTopic
8 moved To be responsive to topic movement
9 deleteAllowed To allow/prohibit deleting a topic TopicTypeTopic
AssociationTypeTopic

Revealing topics on-the-fly

10 revealTopicTypes To reveal topic types on-the-fly DataConsumerTopic
11 revealAssociationTypes To reveal association types on-the-fly DataConsumerTopic
12 revealRelatedTopics To reveal topics on-the-fly DataConsumerTopic

Providing Commands

13 contextCommands To provide commands appearing in the topic context menu TopicMapTopic
14 workspaceCommands To provide commands appearing in the personal workspace menu TopicMapTopic
15 viewCommands To provide commands appearing in the topicmap contextmenu ProjectTopic
17 buttonCommand To provide commands appearing as buttons in the property panel FileTopic

MovieContainerTopic

Executing Commands

17 executeCommand To handle commands of this 3 types:
  1. The default command triggered by doubleclicking the topic
  2. Commands triggered by topic contextmenu (added by contextCommands hook)
  3. Commands triggered by buttons in the properties editor (added by buttonCommand hook)
TopicMapTopic ApplicationTopic
DocumentTopic
ElementContainerTopic
FileTopic
IconTopic
WebpageTopic

MovieContainerTopic
ActorContainerTopic
18 executeChainedCommand To handle commands of 3 types TopicMapTopic
ApplicationTopic
DocumentTopic
IconTopic
19 executeWorkspaceCommand To handle workspace commands TopicMapTopic
ApplicationTopic
DocumentTopic
IconTopic

Handling Properties

20 propertiesChangeAllowed To reject changed property values
21 propertiesChanged To be responsive to property changes TopicMapTopic
22 getNameProperty To be responsive to property changes TopicMapTopic
23 getTopicName To be responsive to property changes TopicMapTopic
24 makeProperties To transform property values for being displayed TopicMapTopic
25 disabledProperties To enable/disable fields of the property panel ContainerTopic
26 hiddenProperties To omit properties from being displayed in the property panel ContainerTopic
27 propertyLabel To change the displayed name of derived properties TopicTypeTopic

Handling Associations

28 associationAllowed To set an additional topic label being displayed above the topic ContainerTopic
29 associated To set an additional topic label being displayed above the topic ContainerTopic
30 associationRemoved To set an additional topic label being displayed above the topic ContainerTopic

Providing additional topic label

31 getLabel To set an additional topic label being displayed above the topic ContainerTopic

Handling Detail Window

32 getDetail To provide a topic detail window. ProxyTopic
ContainerTopic
33 processDetailHook To process changed topic detail data. ### ProxyTopic
### ContainerTopic

Topicmap Hooks

34 openTopicmap A topicmap can react when it is opened KompetenzsternTopic
35 exportTopicmap ### export ### ProjectTopic
36 getSVGStylesheetName ### export ### ProjectTopic
37 getFOStylesheetName ### export ### ProjectTopic
38 getExportDocumentType ### export ### ProjectTopic
39 getExportDocumentName ### export ### ProjectTopic
40 getExportFileBaseName ### export ### ProjectTopic





14.11.2004 (2.0b3), Jörg Richter jri@freenet.de