Nebula Gallery Explained

From Eclipsepedia

Jump to: navigation, search

The Nebula Gallery widget


Model

Gallery is the main widget, which can contain 2 levels of items (GalleryItem). First level ones are called groups and are drawn by the GroupRenderer. Others are items and drawn by the Item Renderer.

The widget draws group one after another, either vertically or horizontally (and never both).


Gallery-groups.png

Renderers

The Gallery widget comes with 4 renderers  :

Groups renderers : DefaultGroupRenderer, NoGroupRenderer Item renderers : DefaultItemRenderer, ListItemRenderer

New renderers can easily be created to add new behaviors and styles.

Drag and Drop

The Gallery Widget supports drag and drop and provides a dedicated drag and drop effect. GalleryDragSourceEffect