A mechanism for displaying data using custom layout templates. DataView uses an {@link Template} as its internal templating mechanism.
A {@link #itemSelector} MUST be provided for the DataView to determine whatnodes it will be working with.
- Events:
- BeforeAdd : DataViewEvent(view, item, index)
Fires before an item is added or inserted. Listeners can cancel the action by calling {@link BaseEvent#setCancelled(boolean)}.
- view : this
- item : the item being added
- index : the index at which the item will be added
- BeforeRemove : DataViewEvent(view, item)
Fires before an item is removed. Listeners can cancel the action by calling {@link BaseEvent#setCancelled(boolean)}.
- view : this
- item : the item being removed
- Add : DataViewEvent(view, item, index)
Fires after an item has been added or inserted.
- view : this
- item : the item that was added
- index : the index at which the item will be added
- Remove : DataViewEvent(view, item)
Fires after an item has been removed.
- view : this
- item : the item that was removed
- SelectionChange : DataViewEvent(view, selected)
Fires after the selection changes.
- view : this
- selected : the selected items
- ContextMenu : DataViewEvent(view)
Fires before the view's context menu is shown. Listeners can cancel the action by calling {@link BaseEvent#setCancelled(boolean)}.
- Inherited Events:
- ScrollContainer Scroll
- BoxComponent Move
- BoxComponent Resize
- Component Enable
- Component Disable
- Component BeforeHide
- Component Hide
- Component BeforeShow
- Component Show
- Component Attach
- Component Detach
- Component BeforeRender
- Component Render
- Component BrowserEvent
- Component BeforeStateRestore
- Component StateRestore
- Component BeforeStateSave
- Component SaveState
@deprecated see {@link ListView}