Class PageEditorImpl
java.lang.Object
ru.cg.webbpm.studio.subsystems.page_designer.designer.impl.file_editor.PageEditorImpl
- All Implemented Interfaces:
FileEditor
,NativeFileEditor
,OpenInBrowserSupportEditor
,PageEditor
- Direct Known Subclasses:
ComponentEditorImpl
- Author:
- Abdulin Ildar
-
Property Summary
Properties -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Alerts
protected WebBrowser
protected final CompileExManager
protected final ComponentManager
protected final ComponentSearchManager
protected ActionContextMenu
protected final PageEditorContextMenuFactory
protected Path
protected final FileManager
protected final InspectorManager
protected final NavigationManager
protected final PageContextManager
protected final PageManager
protected final Preview
protected final ProjectManager
protected final SourcesPreviewGenerator
protected final ValidationManager
protected final WebBrowserFactory
Fields inherited from interface ru.cg.webbpm.studio.subsystems.page_designer.designer.api.file_editor.PageEditor
DATA_FORMAT
-
Constructor Summary
ConstructorsConstructorDescriptionPageEditorImpl
(Path file, InspectorManager inspectorManager, Preview previewUrlProvider, WebBrowserFactory webBrowserFactory, PageContextManager pageContextFactory, PageEditorContextMenuFactory contextMenuFactory, ProjectManager projectManager, CompileExManager compileExManager, ComponentSearchManager componentSearchManager, PageManager pageManager, ComponentManager componentManager, FileManager fileManager, Alerts alerts, ValidationManager validationManager, NavigationManager navigationManager, SourcesPreviewGenerator sourcesPreviewGenerator, DeployManager deployManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected PageContext
protected PageEditorTreeCell
javafx.scene.Node
getFile()
javafx.beans.property.StringProperty
getName()
void
itemSelected
(PageObjectContext pageObjectContext) void
onClose()
This method is invoked when the editor is closed.void
openInspector
(javafx.scene.control.TreeItem<PageHierarchyItemData> treeItem) void
refresh()
void
save()
Save changesvoid
setFileName
(String newName) javafx.beans.property.SimpleBooleanProperty
void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ru.cg.webbpm.studio.platform.api.file_editor.NativeFileEditor
deselectNotify, isModified, isValid, selectNotify
-
Property Details
-
showChildrenCount
public javafx.beans.property.SimpleBooleanProperty showChildrenCountProperty
-
-
Field Details
-
OPENED_PAGE_IDS
-
inspectorManager
-
preview
-
pageContextManager
-
contextMenuFactory
-
webBrowserFactory
-
projectManager
-
fileManager
-
sourcesPreviewGenerator
-
alerts
-
contextMenu
-
browser
-
compileExManager
-
componentManager
-
componentSearchManager
-
pageManager
-
validationManager
-
file
-
-
Constructor Details
-
Method Details
-
getComponent
public javafx.scene.Node getComponent()- Specified by:
getComponent
in interfaceNativeFileEditor
- Returns:
- component which represents editor in the UI.
The method should never return
null
.
-
showChildrenCountProperty
public javafx.beans.property.SimpleBooleanProperty showChildrenCountProperty() -
itemSelected
- Specified by:
itemSelected
in interfacePageEditor
-
createPageContext
-
createTreeCell
-
openInspector
- Specified by:
openInspector
in interfacePageEditor
-
getName
- Specified by:
getName
in interfaceNativeFileEditor
- Returns:
- editor's name, a string that identifies editor among
other editors. For example, UI form might have two editor: "GUI Designer"
and "Text". So "GUI Designer" can be a name of one editor and "Text"
can be a name of other editor. The method should never return
null
.
-
save
public void save()Description copied from interface:NativeFileEditor
Save changes- Specified by:
save
in interfaceNativeFileEditor
-
getPageContext
- Specified by:
getPageContext
in interfacePageEditor
-
getSelectedPageObjectContext
- Specified by:
getSelectedPageObjectContext
in interfacePageEditor
-
getWebUrl
- Specified by:
getWebUrl
in interfaceOpenInBrowserSupportEditor
-
getHierarchySearchVBox
- Specified by:
getHierarchySearchVBox
in interfacePageEditor
-
onClose
public void onClose()Description copied from interface:NativeFileEditor
This method is invoked when the editor is closed.- Specified by:
onClose
in interfaceNativeFileEditor
-
getFile
- Specified by:
getFile
in interfaceNativeFileEditor
- Returns:
- the path of the edited file
-
getFileName
public javafx.beans.property.StringProperty getFileName()- Specified by:
getFileName
in interfaceNativeFileEditor
-
setFileName
- Specified by:
setFileName
in interfaceNativeFileEditor
-
update
- Specified by:
update
in interfaceNativeFileEditor
-
refresh
public void refresh()- Specified by:
refresh
in interfaceNativeFileEditor
-