H - AbstractCanvasHandler@Dependent @MultipleSelection public class DomainObjectAwareLienzoMultipleSelectionControl<H extends AbstractCanvasHandler> extends org.kie.workbench.common.stunner.client.lienzo.canvas.controls.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) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
destroy() |
Optional<Object> |
getSelectedItemDefinition() |
protected void |
handleCanvasClearSelectionEvent(CanvasClearSelectionEvent event) |
protected void |
handleCanvasElementSelectedEvent(CanvasSelectionEvent event) |
protected void |
onClearSelection() |
protected void |
onDestroy() |
protected void |
onSelect(Collection<String> uuids) |
SelectionControl<H,Element> |
select(String uuid) |
onEnable, 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)
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 org.kie.workbench.common.stunner.client.lienzo.canvas.controls.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 org.kie.workbench.common.stunner.client.lienzo.canvas.controls.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 org.kie.workbench.common.stunner.client.lienzo.canvas.controls.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–2020 JBoss by Red Hat. All rights reserved.