public final class MapSelectionControl<H extends AbstractCanvasHandler> extends AbstractCanvasHandlerControl<H> implements SelectionControl<H,Element>, CanvasRegistrationControl<H,Element>
CanvasControl.SessionAware<S extends ClientSession>canvasHandlerdestroy, initclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroy, initpublic static <H extends AbstractCanvasHandler> MapSelectionControl<H> build(Consumer<CanvasSelectionEvent> selectionEventConsumer, Consumer<CanvasClearSelectionEvent> clearSelectionEventConsumer)
protected void doInit()
doInit in class AbstractCanvasHandlerControl<H extends AbstractCanvasHandler>public void clear()
clear in interface CanvasRegistrationControl<H extends AbstractCanvasHandler,Element>public void register(Element element)
register in interface CanvasRegistrationControl<H extends AbstractCanvasHandler,Element>public void deregister(Element element)
deregister in interface CanvasRegistrationControl<H extends AbstractCanvasHandler,Element>public SelectionControl<H,Element> select(String uuid)
select in interface SelectionControl<H extends AbstractCanvasHandler,Element>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 SelectionControl<H,Element> clearSelection()
clearSelection in interface SelectionControl<H extends AbstractCanvasHandler,Element>public Optional<Object> getSelectedItemDefinition()
getSelectedItemDefinition in interface SelectionControl<H extends AbstractCanvasHandler,Element>public boolean isReadonly()
public void setReadonly(boolean readonly)
public SelectionControl<H,Element> select(Collection<String> uuids)
public SelectionControl<H,Element> deselect(Collection<String> uuids)
public boolean isSelected(String uuid)
protected void doDestroy()
doDestroy in class AbstractCanvasHandlerControl<H extends AbstractCanvasHandler>public void onShapeRemoved(CanvasShapeRemovedEvent shapeRemovedEvent)
public void onCanvasElementSelected(CanvasSelectionEvent event)
public void onCanvasClearSelection(CanvasClearSelectionEvent event)
public AbstractCanvasHandler getCanvasHandler()
public AbstractCanvas getCanvas()
protected String getRootUUID()
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.