CONTENT
- The domain model of the editorpublic abstract class BaseKogitoEditor<CONTENT> extends Object
org.uberfire.ext.editor.commons.client.BaseEditor
for Kogito.Modifier | Constructor and Description |
---|---|
protected |
BaseKogitoEditor() |
protected |
BaseKogitoEditor(org.uberfire.ext.editor.commons.client.BaseEditorView baseView,
org.uberfire.client.mvp.PlaceManager placeManager) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
buildMenuBar() |
void |
disableMenuItem(org.uberfire.ext.editor.commons.client.menu.MenuItems menuItem) |
void |
enableMenuItem(org.uberfire.ext.editor.commons.client.menu.MenuItems menuItem) |
protected org.uberfire.ext.editor.commons.client.BaseEditorView |
getBaseEditorView() |
abstract elemental2.promise.Promise |
getContent()
Used by Kogito to get the XML content of the editor.
|
protected Supplier<CONTENT> |
getContentSupplier() |
protected Integer |
getCurrentContentHash() |
protected org.uberfire.workbench.model.menu.Menus |
getMenus() |
protected Integer |
getOriginalContentHash() |
protected org.uberfire.client.mvp.PlaceManager |
getPlaceManager() |
protected org.uberfire.mvp.PlaceRequest |
getPlaceRequest() |
protected com.google.gwt.user.client.ui.IsWidget |
getTitle() |
protected void |
init(org.uberfire.mvp.PlaceRequest place) |
boolean |
isDirty()
Used by Kogito to determine whether the content has unsaved changes.
|
boolean |
isReadOnly() |
protected abstract void |
makeMenuBar() |
boolean |
mayClose() |
abstract void |
resetContentHash()
Used by Kogito to reset the editors "dirty" state following a successful save.
|
abstract elemental2.promise.Promise |
setContent(String path,
String value)
Used by Kogito to set the XML content of the editor.
|
protected void |
setMenus(org.uberfire.workbench.model.menu.Menus menus) |
void |
setOriginalContentHash(Integer originalHash) |
protected BaseKogitoEditor()
protected BaseKogitoEditor(org.uberfire.ext.editor.commons.client.BaseEditorView baseView, org.uberfire.client.mvp.PlaceManager placeManager)
protected void init(org.uberfire.mvp.PlaceRequest place)
protected abstract void makeMenuBar()
protected abstract void buildMenuBar()
public void disableMenuItem(org.uberfire.ext.editor.commons.client.menu.MenuItems menuItem)
public void enableMenuItem(org.uberfire.ext.editor.commons.client.menu.MenuItems menuItem)
protected org.uberfire.mvp.PlaceRequest getPlaceRequest()
protected org.uberfire.client.mvp.PlaceManager getPlaceManager()
protected org.uberfire.workbench.model.menu.Menus getMenus()
protected void setMenus(org.uberfire.workbench.model.menu.Menus menus)
protected org.uberfire.ext.editor.commons.client.BaseEditorView getBaseEditorView()
protected com.google.gwt.user.client.ui.IsWidget getTitle()
public void setOriginalContentHash(Integer originalHash)
protected Integer getOriginalContentHash()
protected Integer getCurrentContentHash()
public boolean isReadOnly()
public boolean mayClose()
public boolean isDirty()
public abstract elemental2.promise.Promise setContent(String path, String value)
path
- Relative path to the content resourcevalue
- Editor's contentpublic abstract elemental2.promise.Promise getContent()
String
representation of the editors content to persist to an underlying persistent store.public abstract void resetContentHash()
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.