Introduction
SteelBlue (modules)
Table of contents
Roles
TBD
Displayable
This role models something that can be displayed as a text.
MutableDisplayable
This is mutable a variant of Displayable
, that is the related property can be changed and change listeners are supported.
PlainTextDisplayable
This specialisation of Displayable
makes it clear that the rendered string is a plain text.
HtmlDisplayable
This specialisation of Displayable
makes it clear that the rendered string is a HTML text.
Changeable
This role models something that can be changed.
IconProvider, MutableIconProvider
These roles model something that can have an icon. The mutable version supports change listeners.
UserAction
This role represents a callback that can be attached to a UI component that can be activated with a mouse click, such as a button or a menu itme.
It can have in turn further roles (typically at least a Displayable
and an IconProvider
) and an enabled/disabled property.
UserActionProvider
This role is a factory of UserAction
s.
Selectable
This role represents a callback that can be attached to a UI component that contains a list of items that can be selected.
Styleable
This role represents something that can have a style attached to it, for controlling some aspect of rendering; for instance, a lefT/right/center text justification, or a font style such as bold or italic.
Visibility
This role represents something that can be made visible or invisible.
PresentationModel
The PresentationModel
is a specific role that works as an adapter between the model classes and a UI. It is basically a bag of roles, partly coming from
the adapter object, and partly added in second moment.
PresentationModel
TBD
PresentationModelAggregate
This role is an aggregate of PresentationModel
s associated to a name. It is suitable for modelling data that must be rendered on a table or a treeview.
TBD
PresentationModelFactory
TBD