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

Interface Summary
BasicButtonModelListener A listener that can be added to a BasicButtonModel and will be informed about changes in the model.
BasicDropDownButtonTrigger A trigger used by the BasicDropDownButtonModel to remotely open the drop down menu of a DropDownAction.
BasicResourceInitializer A BasicResourceInitializer is a helper class used by a BasicButtonModel to lazily initialize resources.
BasicTitleViewItem<A> A view item that will be shown between some buttons on a DockTitle.
BasicTrigger Used as a callback by a BasicButtonModel to ensure the availability of properties and to inform when the user triggers a view like a button.
DockActionImportanceOrder DockActionImportanceOrder is used by ButtonPanel to decide which actions are more important than others.
 

Class Summary
AbstractBasicHandler<D extends DockAction,M extends BasicButtonModel> Collection of methods that are interesting for classes that wrap around a BasicButtonModel.
BasicButtonHandler A handler to connect a ButtonDockAction with a BasicButtonModel.
BasicButtonModel A class containing all properties and methods needed to handle a button-component that shows the contents of a DockAction.
A model is normally instantiated by a JComponent which uses this as argument for the constructor of the model.
BasicButtonModelAdapter A simple implementation of BasicButtonModelListener forwarding any event expect BasicButtonModelAdapter.triggered(), BasicButtonModelAdapter.bound(BasicButtonModel, DockController) and BasicButtonModelAdapter.unbound(BasicButtonModel, DockController) to BasicButtonModelAdapter.changed().
BasicDropDownButtonHandler A handler connecting a DropDownAction with a BasicDropDownButtonModel and its view.
BasicDropDownButtonModel An expanded BasicButtonModel that can handle the properties needed to represent a DropDownAction.
BasicHandler<D extends StandardDockAction> A class connecting a DockAction with a BasicButtonModel.
BasicMenuHandler A handler connecting a MenuDockAction with a BasicButtonModel.
BasicSelectableHandler A handler connecting a SelectableDockAction with a BasicButtonModel.
BasicSelectableHandler.Check An implementation used to connect a SelectableDockAction of type ActionType.CHECK with a BasicButtonModel
BasicSelectableHandler.Radio An implementation used to connect a SelectableDockAction of type ActionType.RADIO with a BasicButtonModel
BasicSeparatorHandler A handler that shows a JSeparator for a SeparatorAction.
DefaultDockActionImportanceOrder This class orders DockActions depending on the annotation DockActionImportance.
DropDownItemHandle Represents an action and a view which are children of a DropDownAction
 

Annotation Types Summary
DockActionImportance A DockActionImportance can be used to mark a DockAction as being more or less important.
 

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