Package bibliothek.gui.dock.themes.basic.action

Elements handling the view of DockActions.
They way from a DockAction to its view normally involves four objects: The DockAction itself, providing the basic set of properties A handler listening to changes of the action and forwarding the changes to the model.

See: Description

Package bibliothek.gui.dock.themes.basic.action Description

Elements handling the view of DockActions.
They way from a DockAction to its view normally involves four objects:
  1. The DockAction itself, providing the basic set of properties
  2. A handler listening to changes of the action and forwarding the changes to the model. Selecting only those properties which are necessary for the view.
  3. A model containing and translating properties into a form the view can use.
  4. Some view like a MiniButton using the model to paint itself
The model may be omitted when there is not much to translate between handler and view. In that case, the handler directly accesses the view.
It is even possible that the view directly accesses the action, but that is only used in very simple situations (like the SeparatorAction, which does not do anything).
The view creates and provides the model. The handler has to be created and connected by the code of the DockTheme. Normally view and handler are created and connected in the ActionViewConverter, using a ViewGenerator. However, details may differ for other themes than the BasicTheme