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 SummaryConstructorsConstructorDescriptionJbpmDesignerEditorImpl(JbpmDeploymentManager deploymentManager, WebBrowserFactory webBrowserFactory, JbpmDesignerEventPublisher jbpmDesignerEventPublisher, FileManager fileManager, Alerts alerts, Path file, String processId, WebServerManager webServerManager, Project projectContext) 
- 
Method SummaryModifier and TypeMethodDescriptionjavafx.scene.NodegetFile()javafx.beans.property.StringPropertygetName()javafx.beans.property.Property<Boolean>voidonClose()This method is invoked when the editor is closed.voidrefresh()voidsave()Save changesvoidselectNode(String nodeId) voidsetFileName(String newName) voidsetOnCloseListener(JbpmDesignerEditorListener listener) voidsetProcessId(String processId) voidsetProcessName(String processName) voidMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ru.cg.webbpm.studio.platform.api.file_editor.NativeFileEditordeselectNotify, isValid, selectNotify
- 
Constructor Details- 
JbpmDesignerEditorImplpublic JbpmDesignerEditorImpl(JbpmDeploymentManager deploymentManager, WebBrowserFactory webBrowserFactory, JbpmDesignerEventPublisher jbpmDesignerEventPublisher, FileManager fileManager, Alerts alerts, Path file, String processId, WebServerManager webServerManager, Project projectContext) 
 
- 
- 
Method Details- 
getComponentpublic javafx.scene.Node getComponent()- Specified by:
- getComponentin interface- NativeFileEditor
- Returns:
- component which represents editor in the UI.
 The method should never return null.
 
- 
getName- Specified by:
- getNamein interface- NativeFileEditor
- 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:
- getWebUrlin interface- OpenInBrowserSupportEditor
 
- 
setProcessId- Specified by:
- setProcessIdin interface- Bpmn2Editor
 
- 
getProcessId- Specified by:
- getProcessIdin interface- Bpmn2Editor
 
- 
setProcessName- Specified by:
- setProcessNamein interface- Bpmn2Editor
 
- 
getProcessName- Specified by:
- getProcessNamein interface- Bpmn2Editor
 
- 
selectNode- Specified by:
- selectNodein interface- Bpmn2Editor
 
- 
isModified- Specified by:
- isModifiedin interface- NativeFileEditor
- Returns:
- whether the editor's content is modified in comparison with its file.
 
- 
savepublic void save()Description copied from interface:NativeFileEditorSave changes- Specified by:
- savein interface- NativeFileEditor
 
- 
onClosepublic void onClose()Description copied from interface:NativeFileEditorThis method is invoked when the editor is closed.- Specified by:
- onClosein interface- NativeFileEditor
 
- 
setOnCloseListener
- 
getFile- Specified by:
- getFilein interface- NativeFileEditor
- Returns:
- the path of the edited file
 
- 
getFileNamepublic javafx.beans.property.StringProperty getFileName()- Specified by:
- getFileNamein interface- NativeFileEditor
 
- 
setFileName- Specified by:
- setFileNamein interface- NativeFileEditor
 
- 
update- Specified by:
- updatein interface- NativeFileEditor
 
- 
refreshpublic void refresh()- Specified by:
- refreshin interface- NativeFileEditor
 
 
-