H - AbstractCanvasHandler@Dependent @MultipleSelection public class DomainObjectAwareLienzoMultipleSelectionControl<H extends AbstractCanvasHandler> extends LienzoMultipleSelectionControl<H>
LienzoMultipleSelectionControl to also support selection of a single DomainObject.
Selection of an Element, clearance of the canvas or destruction of the underlying session also deselects
any DomainObject.CanvasControl.SessionAware<S extends ClientSession>| Constructor and Description |
|---|
DomainObjectAwareLienzoMultipleSelectionControl(javax.enterprise.event.Event<CanvasSelectionEvent> canvasSelectionEvent,
javax.enterprise.event.Event<CanvasClearSelectionEvent> clearSelectionEvent,
DRDContextMenu drdContextMenu) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
destroy() |
Optional<Object> |
getSelectedItemDefinition() |
protected List<Node<? extends Definition<?>,Edge>> |
getSelectedNodes(H canvasHandler) |
protected Stream<? extends Element<? extends Definition<?>>> |
getSelectedNodesStream(H canvasHandler) |
protected void |
handleCanvasClearSelectionEvent(CanvasClearSelectionEvent event) |
protected void |
handleCanvasElementSelectedEvent(CanvasSelectionEvent event) |
protected boolean |
isClickedOnShape(H canvasHandler,
int canvasX,
int canvasY) |
protected void |
onClearSelection() |
protected void |
onDestroy() |
protected void |
onEnable(H canvasHandler) |
protected void |
onSelect(Collection<String> uuids) |
SelectionControl<H,Element> |
select(String uuid) |
onShapeLocationsChangedbind, clearSelection, deregister, deselect, getSelectedItems, getSelectionControl, handleShapeRemovedEvent, init, isSelected, onDeregister, onRegister, register, shapesToIdentifiers@Inject public DomainObjectAwareLienzoMultipleSelectionControl(javax.enterprise.event.Event<CanvasSelectionEvent> canvasSelectionEvent, javax.enterprise.event.Event<CanvasClearSelectionEvent> clearSelectionEvent, DRDContextMenu drdContextMenu)
protected void onEnable(H canvasHandler)
onEnable in class LienzoMultipleSelectionControl<H extends AbstractCanvasHandler>protected boolean isClickedOnShape(H canvasHandler, int canvasX, int canvasY)
protected List<Node<? extends Definition<?>,Edge>> getSelectedNodes(H canvasHandler)
protected Stream<? extends Element<? extends Definition<?>>> getSelectedNodesStream(H canvasHandler)
public Optional<Object> getSelectedItemDefinition()
getSelectedItemDefinition in interface SelectionControl<H extends AbstractCanvasHandler,Element>getSelectedItemDefinition in class AbstractSelectionControl<H extends AbstractCanvasHandler>protected void onSelect(Collection<String> uuids)
onSelect in class LienzoMultipleSelectionControl<H extends AbstractCanvasHandler>public SelectionControl<H,Element> select(String uuid)
select in interface SelectionControl<H extends AbstractCanvasHandler,Element>select in class AbstractSelectionControl<H extends AbstractCanvasHandler>public void clear()
clear in interface CanvasRegistrationControl<H extends AbstractCanvasHandler,Element>clear in class AbstractSelectionControl<H extends AbstractCanvasHandler>protected void onClearSelection()
onClearSelection in class LienzoMultipleSelectionControl<H extends AbstractCanvasHandler>public void destroy()
destroy in interface CanvasControl<H extends AbstractCanvasHandler>destroy in class AbstractSelectionControl<H extends AbstractCanvasHandler>protected void onDestroy()
onDestroy in class LienzoMultipleSelectionControl<H extends AbstractCanvasHandler>protected void handleCanvasElementSelectedEvent(CanvasSelectionEvent event)
handleCanvasElementSelectedEvent in class AbstractSelectionControl<H extends AbstractCanvasHandler>protected void handleCanvasClearSelectionEvent(CanvasClearSelectionEvent event)
handleCanvasClearSelectionEvent in class AbstractSelectionControl<H extends AbstractCanvasHandler>Copyright © 2001–2021 JBoss by Red Hat. All rights reserved.