Class LayoutEditorPluginImpl
- java.lang.Object
-
- org.uberfire.ext.layout.editor.client.LayoutEditorPluginImpl
-
- All Implemented Interfaces:
LayoutEditor,LayoutEditorPlugin
@Dependent public class LayoutEditorPluginImpl extends Object implements LayoutEditorPlugin
-
-
Constructor Summary
Constructors Constructor Description LayoutEditorPluginImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLayoutProperty(String key, String value)com.google.gwt.user.client.ui.WidgetasWidget()voidclear()org.uberfire.ext.layout.editor.api.editor.LayoutTemplategetLayout()List<LayoutEditorElement>getLayoutElements()StringgetLayoutProperty(String key)voidinit(String layoutName, String emptyTitleText, String emptySubTitleText, org.uberfire.ext.layout.editor.api.editor.LayoutTemplate.Style style)booleanisLocked()voidload(org.uberfire.backend.vfs.Path currentPath, org.uberfire.mvp.Command loadCallBack)voidloadDefaultLayout(String layoutName)voidloadLayout(org.uberfire.ext.layout.editor.api.editor.LayoutTemplate layoutTemplate)voidlock()voidsave(org.uberfire.backend.vfs.Path path, org.jboss.errai.common.client.api.RemoteCallback<org.uberfire.backend.vfs.Path> saveSuccessCallback)voidsetElementSelectionEnabled(boolean enabled)voidsetPreviewEnabled(boolean enabled)voidsetup()voidunlock()voidvisit(LayoutElementVisitor visitor)
-
-
-
Method Detail
-
setup
@PostConstruct public void setup()
-
init
public void init(String layoutName, String emptyTitleText, String emptySubTitleText, org.uberfire.ext.layout.editor.api.editor.LayoutTemplate.Style style)
- Specified by:
initin interfaceLayoutEditor
-
clear
public void clear()
- Specified by:
clearin interfaceLayoutEditor
-
asWidget
public com.google.gwt.user.client.ui.Widget asWidget()
- Specified by:
asWidgetin interfaceLayoutEditor
-
loadLayout
public void loadLayout(org.uberfire.ext.layout.editor.api.editor.LayoutTemplate layoutTemplate)
- Specified by:
loadLayoutin interfaceLayoutEditor
-
loadDefaultLayout
public void loadDefaultLayout(String layoutName)
- Specified by:
loadDefaultLayoutin interfaceLayoutEditor
-
getLayout
public org.uberfire.ext.layout.editor.api.editor.LayoutTemplate getLayout()
- Specified by:
getLayoutin interfaceLayoutEditor
-
addLayoutProperty
public void addLayoutProperty(String key, String value)
- Specified by:
addLayoutPropertyin interfaceLayoutEditor
-
getLayoutProperty
public String getLayoutProperty(String key)
- Specified by:
getLayoutPropertyin interfaceLayoutEditor
-
setPreviewEnabled
public void setPreviewEnabled(boolean enabled)
- Specified by:
setPreviewEnabledin interfaceLayoutEditor
-
setElementSelectionEnabled
public void setElementSelectionEnabled(boolean enabled)
- Specified by:
setElementSelectionEnabledin interfaceLayoutEditor
-
load
public void load(org.uberfire.backend.vfs.Path currentPath, org.uberfire.mvp.Command loadCallBack)- Specified by:
loadin interfaceLayoutEditorPlugin
-
save
public void save(org.uberfire.backend.vfs.Path path, org.jboss.errai.common.client.api.RemoteCallback<org.uberfire.backend.vfs.Path> saveSuccessCallback)- Specified by:
savein interfaceLayoutEditorPlugin
-
getLayoutElements
public List<LayoutEditorElement> getLayoutElements()
- Specified by:
getLayoutElementsin interfaceLayoutEditor
-
visit
public void visit(LayoutElementVisitor visitor)
- Specified by:
visitin interfaceLayoutEditor
-
isLocked
public boolean isLocked()
-
lock
public void lock()
- Specified by:
lockin interfaceLayoutEditor
-
unlock
public void unlock()
- Specified by:
unlockin interfaceLayoutEditor
-
-