Class LayoutEditorPresenter
- java.lang.Object
-
- org.uberfire.ext.layout.editor.client.LayoutEditorPresenter
-
@Dependent public class LayoutEditorPresenter extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceLayoutEditorPresenter.View
-
Constructor Summary
Constructors Constructor Description LayoutEditorPresenter(LayoutEditorPresenter.View view, Container container, LayoutGenerator layoutGenerator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLayoutProperty(String key, String value)voidclear()org.uberfire.ext.layout.editor.api.editor.LayoutTemplategetLayout()List<LayoutEditorElement>getLayoutElements()StringgetLayoutProperty(String key)org.uberfire.client.mvp.UberElement<LayoutEditorPresenter>getView()voidinitNew()voidloadEmptyLayout(String layoutName, String emptyTitleText, String emptySubTitleText)voidloadLayout(org.uberfire.ext.layout.editor.api.editor.LayoutTemplate layoutTemplate, String emptyTitleText, String emptySubTitleText)protected voidonClearAllPropertiesEvent(LayoutElementClearAllPropertiesEvent event)protected voidonLayoutPropertyChangedEvent(LayoutElementPropertyChangedEvent event)voidsetElementSelectionEnabled(boolean enabled)voidsetPageStyle(org.uberfire.ext.layout.editor.api.editor.LayoutTemplate.Style pageStyle)voidsetPreviewEnabled(boolean previewEnabled)voidsetup(Supplier<Boolean> lockSupplier)voidswitchToDesignMode()voidswitchToPreviewMode()voidvisit(LayoutElementVisitor visitor)
-
-
-
Constructor Detail
-
LayoutEditorPresenter
@Inject public LayoutEditorPresenter(LayoutEditorPresenter.View view, Container container, LayoutGenerator layoutGenerator)
-
-
Method Detail
-
initNew
@PostConstruct public void initNew()
-
setPreviewEnabled
public void setPreviewEnabled(boolean previewEnabled)
-
setElementSelectionEnabled
public void setElementSelectionEnabled(boolean enabled)
-
clear
public void clear()
-
getView
public org.uberfire.client.mvp.UberElement<LayoutEditorPresenter> getView()
-
getLayout
public org.uberfire.ext.layout.editor.api.editor.LayoutTemplate getLayout()
-
loadLayout
public void loadLayout(org.uberfire.ext.layout.editor.api.editor.LayoutTemplate layoutTemplate, String emptyTitleText, String emptySubTitleText)
-
loadEmptyLayout
public void loadEmptyLayout(String layoutName, String emptyTitleText, String emptySubTitleText)
-
setPageStyle
public void setPageStyle(org.uberfire.ext.layout.editor.api.editor.LayoutTemplate.Style pageStyle)
-
switchToDesignMode
public void switchToDesignMode()
-
switchToPreviewMode
public void switchToPreviewMode()
-
getLayoutElements
public List<LayoutEditorElement> getLayoutElements()
-
visit
public void visit(LayoutElementVisitor visitor)
-
onLayoutPropertyChangedEvent
protected void onLayoutPropertyChangedEvent(@Observes LayoutElementPropertyChangedEvent event)
-
onClearAllPropertiesEvent
protected void onClearAllPropertiesEvent(@Observes LayoutElementClearAllPropertiesEvent event)
-
-