|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Interface Summary | |
SelectableFilter | determines the result of DefaultSelectionModel#isSelectable |
SelectionChangeListener | |
SelectionModel | SelectionModel for Tree and Table components. |
SingleSelectionModel | SelectionModel for Tree and Table components. |
TitleProvider | creates a String to be displayed as "title" attribute (hover) |
Unselectable | Implementors of this tagging interface will not be selectable by DefaultSelectionModel or AbstractSelectionModel |
Class Summary | |
AbstractSelectionModel | simplifies implementation of the SelectionModel |
DefaultSelectionModel | default SelectionModel for Tree and Table |
SelectionChangeEvent | |
SelectionChangeSupport | |
SelectionMgr | Selection Manager |
SelectionModelDecorator | decorates a selection model |
Allows to select elements via checkboxes or radiobuttons. The selection is evaluated when validate() is called.
Usage pattern
class MyComponent extends ComponentSupport { selectionMgr = new SelectionMgr(); public Document render(RequestContext context) throws Exception { Document document = XmlUtils.createDocument(); selectionMgr.startRendering(context); for (int nodeIndex = 0; nodeIndex < nodeCount; nodeIndex++) { Object node = ... Element elem = renderElement(node); selectionMgr.renderButton(element, node); } selectionMgr.stopRendering(); return document; } public boolean validate(RequestContext context) { selectionMgr.validate(context); ... } }
|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |