Class JbpmDesignerEditorImpl
java.lang.Object
ru.cg.webbpm.studio.subsystems.bpmn.jbpm_designer.editor.JbpmDesignerEditorImpl
- All Implemented Interfaces:
FileEditor
,NativeFileEditor
,OpenInBrowserSupportEditor
,Bpmn2Editor
,JbpmDesignerEditor
todo apply mvc
- Author:
- Golovlyev
-
Constructor Summary
ConstructorsConstructorDescriptionJbpmDesignerEditorImpl
(JbpmDeploymentManager deploymentManager, WebBrowserFactory webBrowserFactory, JbpmDesignerEventPublisher jbpmDesignerEventPublisher, FileManager fileManager, Alerts alerts, Path file, String processId, WebServerManager webServerManager, Project projectContext) -
Method Summary
Modifier and TypeMethodDescriptionjavafx.scene.Node
getFile()
javafx.beans.property.StringProperty
getName()
javafx.beans.property.Property<Boolean>
void
onClose()
This method is invoked when the editor is closed.void
refresh()
void
save()
Save changesvoid
selectNode
(String nodeId) void
setFileName
(String newName) void
setOnCloseListener
(JbpmDesignerEditorListener listener) void
setProcessId
(String processId) void
setProcessName
(String processName) 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, isValid, selectNotify
-
Constructor Details
-
JbpmDesignerEditorImpl
public JbpmDesignerEditorImpl(JbpmDeploymentManager deploymentManager, WebBrowserFactory webBrowserFactory, JbpmDesignerEventPublisher jbpmDesignerEventPublisher, FileManager fileManager, Alerts alerts, Path file, String processId, WebServerManager webServerManager, Project projectContext)
-
-
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
.
-
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
.
-
getWebUrl
- Specified by:
getWebUrl
in interfaceOpenInBrowserSupportEditor
-
setProcessId
- Specified by:
setProcessId
in interfaceBpmn2Editor
-
getProcessId
- Specified by:
getProcessId
in interfaceBpmn2Editor
-
setProcessName
- Specified by:
setProcessName
in interfaceBpmn2Editor
-
getProcessName
- Specified by:
getProcessName
in interfaceBpmn2Editor
-
selectNode
- Specified by:
selectNode
in interfaceBpmn2Editor
-
isModified
- Specified by:
isModified
in interfaceNativeFileEditor
- Returns:
- whether the editor's content is modified in comparison with its file.
-
save
public void save()Description copied from interface:NativeFileEditor
Save changes- Specified by:
save
in interfaceNativeFileEditor
-
onClose
public void onClose()Description copied from interface:NativeFileEditor
This method is invoked when the editor is closed.- Specified by:
onClose
in interfaceNativeFileEditor
-
setOnCloseListener
-
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
-