@ApplicationScoped public class LayoutComponentPalettePresenter extends Object implements LayoutDragComponentPalette
Modifier and Type | Class and Description |
---|---|
static interface |
LayoutComponentPalettePresenter.View |
Constructor and Description |
---|
LayoutComponentPalettePresenter() |
LayoutComponentPalettePresenter(LayoutComponentPalettePresenter.View view,
org.jboss.errai.ioc.client.api.ManagedInstance<LayoutDragComponentGroupPresenter> layoutDragComponentGroupInstance,
ClientExperimentalFeaturesRegistryService experimentalFeaturesRegistryService) |
Modifier and Type | Method and Description |
---|---|
void |
addDraggableComponent(String groupName,
String componentId,
LayoutDragComponent component) |
void |
addDraggableGroup(LayoutComponentPaletteGroupProvider groupProvider) |
void |
addDraggableGroups(Collection<LayoutComponentPaletteGroupProvider> groupProviders) |
void |
clear() |
Map<String,LayoutDragComponentGroupPresenter> |
getLayoutDragComponentGroups() |
UberElement<LayoutComponentPalettePresenter> |
getView() |
boolean |
hasDraggableComponent(String groupName,
String componentId) |
boolean |
hasDraggableGroup(String groupName) |
void |
removeDraggableComponent(String groupName,
String componentId) |
void |
removeDraggableGroup(String groupName) |
public LayoutComponentPalettePresenter()
@Inject public LayoutComponentPalettePresenter(LayoutComponentPalettePresenter.View view, org.jboss.errai.ioc.client.api.ManagedInstance<LayoutDragComponentGroupPresenter> layoutDragComponentGroupInstance, ClientExperimentalFeaturesRegistryService experimentalFeaturesRegistryService)
public UberElement<LayoutComponentPalettePresenter> getView()
public Map<String,LayoutDragComponentGroupPresenter> getLayoutDragComponentGroups()
public void clear()
clear
in interface LayoutDragComponentPalette
public void addDraggableGroups(Collection<LayoutComponentPaletteGroupProvider> groupProviders)
addDraggableGroups
in interface LayoutDragComponentPalette
public void addDraggableGroup(LayoutComponentPaletteGroupProvider groupProvider)
addDraggableGroup
in interface LayoutDragComponentPalette
public void removeDraggableGroup(String groupName)
removeDraggableGroup
in interface LayoutDragComponentPalette
public boolean hasDraggableGroup(String groupName)
hasDraggableGroup
in interface LayoutDragComponentPalette
public void addDraggableComponent(String groupName, String componentId, LayoutDragComponent component)
addDraggableComponent
in interface LayoutDragComponentPalette
public void removeDraggableComponent(String groupName, String componentId)
removeDraggableComponent
in interface LayoutDragComponentPalette
public boolean hasDraggableComponent(String groupName, String componentId)
hasDraggableComponent
in interface LayoutDragComponentPalette
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.