@Dependent public class LayoutEditorPluginImpl extends Object implements LayoutEditorPlugin
| Constructor and Description |
|---|
LayoutEditorPluginImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLayoutProperty(String key,
String value) |
com.google.gwt.user.client.ui.Widget |
asWidget() |
void |
clear() |
LayoutTemplate |
getLayout() |
List<LayoutEditorElement> |
getLayoutElements() |
String |
getLayoutProperty(String key) |
void |
init(String layoutName,
String emptyTitleText,
String emptySubTitleText,
LayoutTemplate.Style style) |
boolean |
isLocked() |
void |
load(Path currentPath,
Command loadCallBack) |
void |
loadDefaultLayout(String layoutName) |
void |
loadLayout(LayoutTemplate layoutTemplate) |
void |
lock() |
void |
save(Path path,
org.jboss.errai.common.client.api.RemoteCallback<Path> saveSuccessCallback) |
void |
setElementSelectionEnabled(boolean enabled) |
void |
setPreviewEnabled(boolean enabled) |
void |
setup() |
void |
unlock() |
void |
visit(LayoutElementVisitor visitor) |
@PostConstruct public void setup()
public void init(String layoutName, String emptyTitleText, String emptySubTitleText, LayoutTemplate.Style style)
init in interface LayoutEditorpublic void clear()
clear in interface LayoutEditorpublic com.google.gwt.user.client.ui.Widget asWidget()
asWidget in interface LayoutEditorpublic void loadLayout(LayoutTemplate layoutTemplate)
loadLayout in interface LayoutEditorpublic void loadDefaultLayout(String layoutName)
loadDefaultLayout in interface LayoutEditorpublic LayoutTemplate getLayout()
getLayout in interface LayoutEditorpublic void addLayoutProperty(String key, String value)
addLayoutProperty in interface LayoutEditorpublic String getLayoutProperty(String key)
getLayoutProperty in interface LayoutEditorpublic void setPreviewEnabled(boolean enabled)
setPreviewEnabled in interface LayoutEditorpublic void setElementSelectionEnabled(boolean enabled)
setElementSelectionEnabled in interface LayoutEditorpublic void load(Path currentPath, Command loadCallBack)
load in interface LayoutEditorPluginpublic void save(Path path, org.jboss.errai.common.client.api.RemoteCallback<Path> saveSuccessCallback)
save in interface LayoutEditorPluginpublic List<LayoutEditorElement> getLayoutElements()
getLayoutElements in interface LayoutEditorpublic void visit(LayoutElementVisitor visitor)
visit in interface LayoutEditorpublic boolean isLocked()
public void lock()
lock in interface LayoutEditorpublic void unlock()
unlock in interface LayoutEditorCopyright © 2012–2021 JBoss by Red Hat. All rights reserved.