capsis.commongui¶
This package contains graphical user interface tools based on the capsis.kernel.
Package projectmanager¶
- Contains a ProjectManager drawing the Projects of the capsis.kernel package
- Current always knows the current Step and Project
- Any object can listen to Current to be told when the current step / project changes
- Defines a StepButton for each Step in the Projects
- Right clicking on a StepButton opens a StpPopup with basic options related to the capsis.kernel package (Evolution, DeleteStep...)
- Possible to add custom Commands in the popup (see below)
Package command¶
- Contains basic commands related to the capsis.kernel
- Contains a CommandManager knowing these commands
- Other commands can be added from outside with a name
- The CommandManager can return a command from its name
How to add a command in the contextual StepPopup¶
- Create an Action with a Constructor taking a single param of type JFrame
- This Action must extend AbstractAction and implement Command (see capsis.commongui.command.Evolution)
- The module who wants to have this action in its StepButtons popup must have its GModel subclass implementing SpecificActions
- in the getSpecificActions () method, return a Collection of classNames of the actions to be added in the popup (fully qualified names)
- See jeeb.simeo.module.amapscene.model.AmsModel and jeeb.simeo.gui.command.Export as examples