@Dependent public class LayoutEditorPresenter extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
LayoutEditorPresenter.View |
Constructor and Description |
---|
LayoutEditorPresenter(LayoutEditorPresenter.View view,
Container container,
LayoutGenerator layoutGenerator) |
Modifier and Type | Method and Description |
---|---|
void |
addLayoutProperty(String key,
String value) |
void |
clear() |
LayoutTemplate |
getLayout() |
List<LayoutEditorElement> |
getLayoutElements() |
String |
getLayoutProperty(String key) |
UberElement<LayoutEditorPresenter> |
getView() |
void |
initNew() |
void |
loadEmptyLayout(String layoutName,
String emptyTitleText,
String emptySubTitleText) |
void |
loadLayout(LayoutTemplate layoutTemplate,
String emptyTitleText,
String emptySubTitleText) |
protected void |
onClearAllPropertiesEvent(LayoutElementClearAllPropertiesEvent event) |
protected void |
onLayoutPropertyChangedEvent(LayoutElementPropertyChangedEvent event) |
void |
setElementSelectionEnabled(boolean enabled) |
void |
setPageStyle(LayoutTemplate.Style pageStyle) |
void |
setPreviewEnabled(boolean previewEnabled) |
void |
switchToDesignMode() |
void |
switchToPreviewMode() |
void |
visit(LayoutElementVisitor visitor) |
@Inject public LayoutEditorPresenter(LayoutEditorPresenter.View view, Container container, LayoutGenerator layoutGenerator)
@PostConstruct public void initNew()
public void setPreviewEnabled(boolean previewEnabled)
public void setElementSelectionEnabled(boolean enabled)
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 List<LayoutEditorElement> getLayoutElements()
public void visit(LayoutElementVisitor visitor)
protected void onLayoutPropertyChangedEvent(@Observes LayoutElementPropertyChangedEvent event)
protected void onClearAllPropertiesEvent(@Observes LayoutElementClearAllPropertiesEvent event)
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.