@Dependent public class LayoutEditorPresenter extends Object implements LayoutDragComponentPalette
| Modifier and Type | Class and Description |
|---|---|
static interface |
LayoutEditorPresenter.View |
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,LayoutDragComponentGroupPresenter> |
layoutDragComponentGroups |
| Constructor and Description |
|---|
LayoutEditorPresenter(LayoutEditorPresenter.View view,
Container container,
LayoutGenerator layoutGenerator,
org.jboss.errai.ioc.client.api.ManagedInstance<LayoutDragComponentGroupPresenter> layoutDragComponentGroupInstance) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDraggableComponent(String groupName,
String componentId,
LayoutDragComponent component) |
void |
addDraggableGroup(LayoutDragComponentGroup group) |
void |
addLayoutProperty(String key,
String value) |
void |
clear() |
LayoutTemplate |
getLayout() |
String |
getLayoutProperty(String key) |
UberElement<LayoutEditorPresenter> |
getView() |
boolean |
hasDraggableComponent(String groupName,
String componentId) |
boolean |
hasDraggableGroup(String groupName) |
void |
initNew() |
void |
loadEmptyLayout(String layoutName,
String emptyTitleText,
String emptySubTitleText) |
void |
loadLayout(LayoutTemplate layoutTemplate,
String emptyTitleText,
String emptySubTitleText) |
void |
removeDraggableComponent(String groupName,
String componentId) |
void |
removeDraggableGroup(String groupName) |
void |
setPageStyle(LayoutTemplate.Style pageStyle) |
void |
setPreviewEnabled(boolean previewEnabled) |
void |
switchToDesignMode() |
void |
switchToPreviewMode() |
protected Map<String,LayoutDragComponentGroupPresenter> layoutDragComponentGroups
@Inject public LayoutEditorPresenter(LayoutEditorPresenter.View view, Container container, LayoutGenerator layoutGenerator, org.jboss.errai.ioc.client.api.ManagedInstance<LayoutDragComponentGroupPresenter> layoutDragComponentGroupInstance)
@PostConstruct public void initNew()
public void setPreviewEnabled(boolean previewEnabled)
public void clear()
public UberElement<LayoutEditorPresenter> getView()
public LayoutTemplate getLayout()
public void loadLayout(LayoutTemplate layoutTemplate, String emptyTitleText, String emptySubTitleText)
public void loadEmptyLayout(String layoutName, String emptyTitleText, String emptySubTitleText)
public void setPageStyle(LayoutTemplate.Style pageStyle)
public void switchToDesignMode()
public void switchToPreviewMode()
public void addDraggableGroup(LayoutDragComponentGroup group)
addDraggableGroup in interface LayoutDragComponentPalettepublic void removeDraggableGroup(String groupName)
removeDraggableGroup in interface LayoutDragComponentPalettepublic boolean hasDraggableGroup(String groupName)
hasDraggableGroup in interface LayoutDragComponentPalettepublic void addDraggableComponent(String groupName, String componentId, LayoutDragComponent component)
addDraggableComponent in interface LayoutDragComponentPalettepublic void removeDraggableComponent(String groupName, String componentId)
removeDraggableComponent in interface LayoutDragComponentPalettepublic boolean hasDraggableComponent(String groupName, String componentId)
hasDraggableComponent in interface LayoutDragComponentPaletteCopyright © 2012–2017 JBoss by Red Hat. All rights reserved.