@Dependent public class HtmlEditor extends BaseEditor<String,DefaultMetadata>
baseView, changeTitleNotification, concurrentDeleteAcceptedEvent, concurrentDeleteIgnoredEvent, concurrentRenameAcceptedEvent, concurrentRenameIgnoredEvent, concurrentUpdateSessionInfo, fileNameValidator, isReadOnly, isValidationRunning, makeMenuBarPromise, menuBuilder, menuBuilderManagedInstance, menuItems, menus, metadataOriginalHash, notification, originalHash, place, placeManager, promises, saveAndRenameCommandBuilder, type, versionRecordManager
Constructor and Description |
---|
HtmlEditor(HtmlResourceType htmlResourceType,
HtmlEditorPresenter editor,
org.jboss.errai.common.client.api.Caller<HtmlEditorService> htmlEditorService) |
Modifier and Type | Method and Description |
---|---|
protected Supplier<String> |
getContentSupplier() |
protected org.jboss.errai.common.client.api.Caller<? extends SupportsCopy> |
getCopyServiceCaller() |
protected org.jboss.errai.common.client.api.Caller<? extends SupportsDelete> |
getDeleteServiceCaller() |
void |
getMenus(Consumer<Menus> menusConsumer) |
protected org.jboss.errai.common.client.api.Caller<? extends SupportsSaveAndRename<String,DefaultMetadata>> |
getSaveAndRenameServiceCaller() |
com.google.gwt.user.client.ui.IsWidget |
getTitle()
Override this method and use @WorkbenchPartTitleDecoration
|
String |
getTitleText() |
com.google.gwt.user.client.ui.IsWidget |
getView() |
void |
init() |
protected void |
loadContent() |
void |
onStartup(ObservablePath path,
PlaceRequest place) |
protected void |
save()
Needs to be overwritten for save to work
|
addDownloadMenuItem, buildMenuBar, disableMenuItem, downloadMenuItem, enableMenuItem, getCopyValidator, getCurrentContentHash, getMetadataSupplier, getPathSupplier, getRenameServiceCaller, getRenameValidator, getSaveAndRename, getSaveAndRenameCommandBuilder, getSaveSuccessCallback, getValidateCommand, getVersionRecordManager, init, init, init, isDirty, isDirtySupplier, makeMenuBar, mayClose, onAfterValidate, onBeforeValidate, onRename, onRestore, onSave, onSuccess, onValidate, reload, setMetadataOriginalHash, setOriginalHash, showConcurrentUpdatePopup, showVersions
@Inject public HtmlEditor(HtmlResourceType htmlResourceType, HtmlEditorPresenter editor, org.jboss.errai.common.client.api.Caller<HtmlEditorService> htmlEditorService)
@PostConstruct public void init()
protected Supplier<String> getContentSupplier()
getContentSupplier
in class BaseEditor<String,DefaultMetadata>
public void onStartup(ObservablePath path, PlaceRequest place)
protected void loadContent()
loadContent
in class BaseEditor<String,DefaultMetadata>
protected void save()
BaseEditor
save
in class BaseEditor<String,DefaultMetadata>
protected org.jboss.errai.common.client.api.Caller<? extends SupportsDelete> getDeleteServiceCaller()
getDeleteServiceCaller
in class BaseEditor<String,DefaultMetadata>
protected org.jboss.errai.common.client.api.Caller<? extends SupportsSaveAndRename<String,DefaultMetadata>> getSaveAndRenameServiceCaller()
getSaveAndRenameServiceCaller
in class BaseEditor<String,DefaultMetadata>
protected org.jboss.errai.common.client.api.Caller<? extends SupportsCopy> getCopyServiceCaller()
getCopyServiceCaller
in class BaseEditor<String,DefaultMetadata>
public com.google.gwt.user.client.ui.IsWidget getTitle()
BaseEditor
getTitle
in class BaseEditor<String,DefaultMetadata>
public String getTitleText()
getTitleText
in class BaseEditor<String,DefaultMetadata>
public void getMenus(Consumer<Menus> menusConsumer)
getMenus
in class BaseEditor<String,DefaultMetadata>
public com.google.gwt.user.client.ui.IsWidget getView()
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.