Having standard representations for UIs that manipulate replicated data (specifically, ComponentViews) give us the opportunity to build generic utility GUI components for applications that use ComponentView. A growing set of these is located in the edu.vt.cs.collab.bridge.swing package:
- Classes that support presentation of
ComponentViews:
-
ComponentViewPanel handles loading and displaying a single (but changable) ComponentView
-
LayeredComponentViewPanel handles displaying a set of ComponentViews, arranged in a ListModel in a layered pane.
-
ComponentViewMenuBar handles loading a ComponentView's menus into a standard JMenuBar.
- Classes that support presentation of and selection among sets of objects (specified in
ListModel objects):
-
ComponentViewMenu handles selection of one of a set of ComponentViews.
-
DefaultComponentListCellRenderer renders ComponentView icons and associated EmbeddedObjectDescriptor names in a JList
-
StaticThumbnailListCellRenderer renders ComponentView thumbnails and associated EmbeddedObjectDescriptor names in a JList. The thumbnails are static in that a snapshot of the thumbnail is rendered when the list is drawn, and is not automatically re-rendered if the thumbnail changes.
-
TabbedComponentViewPane displays a tabbed pane of ComponentViews. ComponentView icons and associated EmbeddedObjectDescriptor names are displayed on the tabs.
|