Class HtmlEditorView
- java.lang.Object
-
- org.uberfire.ext.editor.commons.client.htmleditor.HtmlEditorView
-
- All Implemented Interfaces:
com.google.gwt.user.client.ui.IsWidget,org.jboss.errai.common.client.api.IsElement,org.jboss.errai.ui.client.local.api.IsElement,org.uberfire.client.mvp.HasPresenter<HtmlEditorPresenter>,org.uberfire.client.mvp.UberElement<HtmlEditorPresenter>,BaseEditorView,HtmlEditorPresenter.View,org.uberfire.ext.widgets.common.client.common.HasBusyIndicator
@Dependent @Templated public class HtmlEditorView extends Object implements HtmlEditorPresenter.View, org.jboss.errai.ui.client.local.api.IsElement
-
-
Field Summary
Fields Modifier and Type Field Description static intHTML_EDITOR_MARGIN
-
Constructor Summary
Constructors Constructor Description HtmlEditorView(org.jboss.errai.ui.client.local.spi.TranslationService translationService, HtmlEditorLibraryLoader libraryLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidalertReadOnly()com.google.gwt.user.client.ui.WidgetasWidget()protected voidconfigureScreenComponents(String editorId, String toolbarId)booleanconfirmClose()voiddestroy()protected voiddestroyEditor()voiddocksInteractionEvent(org.uberfire.client.workbench.docks.UberfireDocksInteractionEvent event)StringgetContent()protected StringgetOffsetHeight(org.jboss.errai.common.client.dom.HTMLElement el)EditorTitlegetTitleWidget()voidhideBusyIndicator()voidinit(HtmlEditorPresenter presenter)protected voidinitEditor(String editorId, String toolbarId)voidload()protected voidloadEditor(String editorId, String toolbarId)voidpostConstruct()voidrefreshTitle(String value)voidsetContent(String content)voidshowBusyIndicator(String message)voidshowLoading()voidshowSaving()voidsynchronizeView()
-
-
-
Field Detail
-
HTML_EDITOR_MARGIN
public static final int HTML_EDITOR_MARGIN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HtmlEditorView
@Inject public HtmlEditorView(org.jboss.errai.ui.client.local.spi.TranslationService translationService, HtmlEditorLibraryLoader libraryLoader)
-
-
Method Detail
-
init
public void init(HtmlEditorPresenter presenter)
- Specified by:
initin interfaceorg.uberfire.client.mvp.HasPresenter<HtmlEditorPresenter>
-
postConstruct
@PostConstruct public void postConstruct()
-
load
public void load()
- Specified by:
loadin interfaceHtmlEditorPresenter.View
-
destroy
public void destroy()
- Specified by:
destroyin interfaceHtmlEditorPresenter.View
-
getContent
public String getContent()
- Specified by:
getContentin interfaceHtmlEditorPresenter.View
-
setContent
public void setContent(String content)
- Specified by:
setContentin interfaceHtmlEditorPresenter.View
-
synchronizeView
public final void synchronizeView()
-
configureScreenComponents
protected void configureScreenComponents(String editorId, String toolbarId)
-
destroyEditor
protected void destroyEditor()
-
docksInteractionEvent
public void docksInteractionEvent(@Observes org.uberfire.client.workbench.docks.UberfireDocksInteractionEvent event)
-
getOffsetHeight
protected String getOffsetHeight(org.jboss.errai.common.client.dom.HTMLElement el)
-
alertReadOnly
public void alertReadOnly()
- Specified by:
alertReadOnlyin interfaceBaseEditorView
-
showLoading
public void showLoading()
- Specified by:
showLoadingin interfaceBaseEditorView
-
showSaving
public void showSaving()
- Specified by:
showSavingin interfaceBaseEditorView
-
getTitleWidget
public EditorTitle getTitleWidget()
- Specified by:
getTitleWidgetin interfaceBaseEditorView
-
refreshTitle
public void refreshTitle(String value)
- Specified by:
refreshTitlein interfaceBaseEditorView
-
showBusyIndicator
public void showBusyIndicator(String message)
- Specified by:
showBusyIndicatorin interfaceorg.uberfire.ext.widgets.common.client.common.HasBusyIndicator
-
hideBusyIndicator
public void hideBusyIndicator()
- Specified by:
hideBusyIndicatorin interfaceorg.uberfire.ext.widgets.common.client.common.HasBusyIndicator
-
confirmClose
public boolean confirmClose()
- Specified by:
confirmClosein interfaceBaseEditorView
-
asWidget
public com.google.gwt.user.client.ui.Widget asWidget()
- Specified by:
asWidgetin interfacecom.google.gwt.user.client.ui.IsWidget
-
-