public abstract class AbstractSelectionControl<H extends AbstractCanvasHandler> extends Object implements SelectionControl<H,Element>, CanvasRegistrationControl<H,Element>, CanvasControl.SessionAware<ClientSession>
CanvasControl.SessionAware<S extends ClientSession>| Modifier | Constructor and Description |
|---|---|
|
AbstractSelectionControl(javax.enterprise.event.Event<CanvasSelectionEvent> canvasSelectionEvent,
javax.enterprise.event.Event<CanvasClearSelectionEvent> clearSelectionEvent) |
protected |
AbstractSelectionControl(MapSelectionControl<H> selectionControl,
javax.enterprise.event.Event<CanvasSelectionEvent> canvasSelectionEvent,
javax.enterprise.event.Event<CanvasClearSelectionEvent> clearSelectionEvent) |
@Inject public AbstractSelectionControl(javax.enterprise.event.Event<CanvasSelectionEvent> canvasSelectionEvent, javax.enterprise.event.Event<CanvasClearSelectionEvent> clearSelectionEvent)
protected AbstractSelectionControl(MapSelectionControl<H> selectionControl, javax.enterprise.event.Event<CanvasSelectionEvent> canvasSelectionEvent, javax.enterprise.event.Event<CanvasClearSelectionEvent> clearSelectionEvent)
public final void init(H canvasHandler)
init in interface CanvasControl<H extends AbstractCanvasHandler>protected void onEnable(H canvasHandler)
public final void register(Element element)
register in interface CanvasRegistrationControl<H extends AbstractCanvasHandler,Element>protected void onRegister(Element element)
public final void deregister(Element element)
deregister in interface CanvasRegistrationControl<H extends AbstractCanvasHandler,Element>protected void onDeregister(Element element)
public SelectionControl<H,Element> select(String uuid)
select in interface SelectionControl<H extends AbstractCanvasHandler,Element>protected void onSelect(Collection<String> uuids)
public SelectionControl<H,Element> deselect(String uuid)
deselect in interface SelectionControl<H extends AbstractCanvasHandler,Element>public boolean isSelected(Element element)
isSelected in interface SelectionControl<H extends AbstractCanvasHandler,Element>public Collection<String> getSelectedItems()
getSelectedItems in interface SelectionControl<H extends AbstractCanvasHandler,Element>public final SelectionControl<H,Element> clearSelection()
clearSelection in interface SelectionControl<H extends AbstractCanvasHandler,Element>protected void onClearSelection()
public Optional<Object> getSelectedItemDefinition()
getSelectedItemDefinition in interface SelectionControl<H extends AbstractCanvasHandler,Element>public void clear()
clear in interface CanvasRegistrationControl<H extends AbstractCanvasHandler,Element>public void destroy()
destroy in interface CanvasControl<H extends AbstractCanvasHandler>protected void onDestroy()
protected void handleShapeRemovedEvent(CanvasShapeRemovedEvent shapeRemovedEvent)
protected void handleCanvasElementSelectedEvent(CanvasSelectionEvent event)
protected void handleCanvasClearSelectionEvent(CanvasClearSelectionEvent event)
public void bind(ClientSession session)
bind in interface CanvasControl.SessionAware<ClientSession>protected MapSelectionControl<H> getSelectionControl()
public static Collection<String> shapesToIdentifiers(Collection<?> shapes)
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.