## Working with Context Menus

The most important thing to try while working with GenJ is triggering the context-menus. A right-click (your platform might have a different mouse action to trigger them) on the information displayed in one of the views will reveal actions you can take.

The context-menu is always structured the same way : at first place it shows a sub-menu for what you have clicked on and then, in the next level of the menu, further options are offered that broaden the context.

In the following example the context for a Name-property is shown. The first sub-menu is for the property itself and actions on it, the second sub-menu is for the entitiy (here an Individual) this property belongs to, the third sub-menu is for the file (Gedcom) the entity belongs to.

The sub-menu for the Individual 'I008' shows the following actions:

- Add Child - a child (and family if necessary) for I008
- Add Spouse - a spouse (and family if necessary) for I008
- Add Sibling - a sibling (and parents if necessary) for I008
- Add Repository - a external repository with information concerning I008
- Add Multimedia Object - an object storing binary data
- Add Note - a note describing I008
- Add Submitter - the person who submitted the information about I008
- Add Source - the source for information about I008
- Add Association - an association with another Individual
- Delete - to remove the entity I008

The next example again shows a context-menu for a property but this time the actions for the property itself are shown (first sub-menu).

These are the actions offered:

- Add Note - this note can keep data specific to that birth
- Add Source - this source can capture where the information about the birth came from
- Add Multimedia Object - this object can store binary data that concerns the birth
- Delete - remove the information about the birth (property BIRT) completely

Lastly an example which emphasizes the dynamic way the content of the context-menus is generated. The following logic was applied when constructing the menu for a right-click on a node in the Tree View:

- the context being clicked on isn't a representation of a property but of an entity (here Individual I008) so the first sub-menu is that for the Individual
- the view the context-menu is displayed in - Tree View - has added a special view-dependent action Add Bookmark

The actions shown in the sub-menu allow the creation of new Entities in file example.ged. It's advisable though to "grow existing information" instead of creating standalone entities like Individuals or Families. To create related/referenced entities use the sub-menus for properties or entities as described above.