public class VisionDesignerImpl extends AbstractDesignerModuleHook implements VisionDesignerInterface
DesignerModuleHook and VisionDesignerInterface. Most of the heavy lifting is actually done in the WindowWorkspace class.| Modifier and Type | Class and Description |
|---|---|
class |
VisionDesignerImpl.Handler |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MODULE_ID |
VISION_MODULE_ID| Constructor and Description |
|---|
VisionDesignerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addExtensibleBindingType(BindingType binding)
Adds a new binding type to be used in the extensible binding system
|
long |
addNewTemplate(java.util.UUID parentFolder,
int width,
int height,
ProjectScope scope) |
long |
addNewTemplate(java.util.UUID parentFolder,
VisionTemplate template,
ProjectScope scope) |
long |
addNewWindow(java.util.UUID parentFolder,
FPMIWindow newWindow)
Adds a new window to the
FHMIApp being designed |
long |
addNewWindow(java.util.UUID parentFolder,
int width,
int height)
Adds a new window to the
FPMIApp being designed |
boolean |
addWindow(java.util.UUID parent,
WindowInfo wi)
Directly adds a window.
|
void |
addWindowDropHandler(WindowDropHandler handler)
Add a new drop handler for custom drop types onto windows and templates
|
void |
addWindowListener(VisionWindowListener listener)
Adds a listener to be notified when windows are opened and closed.
|
java.awt.Component |
cloneComponent(java.awt.Component comp) |
boolean |
configureBinding(java.awt.Component component,
java.lang.String property,
BindingConfiguration configuration)
Configures a new property binding for the component.property using the given configuration.
|
void |
configureDeserializer(XMLDeserializer deserializer) |
void |
configureSerializer(XMLSerializer s)
Provides the module a chance to add serialization delegates to the serializer custom for classes that might be
encountered when serializing objects provided by this module
|
BindingType |
getBindingType(java.lang.String bindingTypeKey) |
ClientScriptEditor |
getClientEventScriptEditor() |
DesignerPrefs |
getCurrentPrefs() |
DesignerContext |
getDesignerContext() |
java.util.Collection<BindingType> |
getExtensibleBindings() |
java.util.List<com.jidesoft.docking.DockableFrame> |
getFrames()
A list of DockableFrames that this module provides, that should be available to all workspaces.
|
WindowUtilities |
getGuiUtil() |
WindowUtilities |
getGuiUtil(java.lang.String desktopHandle)
Gets the WindowUtilities for a secondary desktop, by handle
|
VisionDesignerImpl.Handler |
getHandler() |
MenuBarMerge |
getModuleMenu()
Returns a menu merge for any global menu additions.
|
java.util.List<com.jidesoft.action.CommandBar> |
getModuleToolbars()
Returns the toolbars for the module.
|
NavUtilities |
getNavUtil()
Gets the NavUtilities (for the primary desktop
|
NavUtilities |
getNavUtil(java.lang.String desktopHandle)
Gets the NavUtilities for a secondary desktop, by handle
|
PaletteImpl |
getPalette() |
Project |
getProject() |
java.lang.String |
getResourceCategoryKey(Project project,
ProjectResource resource)
Used by modules that add project resources to an Ignition project.
|
java.lang.String |
getResourceDisplayName(Project project,
ProjectResource resource)
Allows a module to give an appropriate display name for the resource.
|
javax.swing.Icon |
getResourceIcon(Project project,
ProjectResource resource)
Allows a module to give an appropriate icon for a resource.
|
FPMIApp |
getRoot() |
WindowFolderNode |
getRootFolderNode() |
java.util.UUID |
getSelectedTemplateFolder() |
java.util.UUID |
getSelectedWindowFolder()
Returns the id of the currently selected window folder in the project browser tree.
|
java.util.List<WindowDropHandler> |
getWindowDropHandlers() |
WindowWorkspace |
getWorkspace() |
protected void |
initSearchProviders() |
long |
newDockedWindow(java.util.UUID parentFolder) |
long |
newMainWindow(java.util.UUID folder) |
long |
newPopupWindow(java.util.UUID parentFolder) |
void |
notifyActivationStateChanged(LicenseState licenseState)
Notifies this designer module that its license state has changed.
|
void |
notifyDesignableContainerClosed(long id) |
void |
notifyProjectSaveDone()
Notifies the module that the save operation has finished.
|
void |
notifyProjectSaveStart(SaveContext save)
Notifies the module that the user has requested that the project is saved.
|
void |
openBindingDialog(java.awt.Component component,
java.lang.String propertyName)
Opens the binding dialog for a given component.
|
void |
removeWindowListener(VisionWindowListener listiner)
Removes window listener
|
byte[] |
serializeProjectResource(java.lang.Object obj)
Serializes an object to be stored in a ProjectResource.
|
void |
setContext(DesignerContext context) |
void |
setWorkspace(WindowWorkspace workspace) |
void |
shutdown()
Called when the module is shut down.
|
void |
startup(DesignerContext designerContext,
LicenseState activationState)
The main entrypoint for the module hook.
|
configureFunctionFactory, createPermissionKeys, initializeScriptManagerpublic static final java.lang.String MODULE_ID
public void startup(DesignerContext designerContext, LicenseState activationState) throws java.lang.Exception
DesignerModuleHookDesignerModuleHook.shutdown() will be called and a new hook will be instantiatedstartup in interface DesignerModuleHookstartup in class AbstractDesignerModuleHookjava.lang.Exception - if the module was not able to be initialized for the given project.public void shutdown()
DesignerModuleHookshutdown in interface DesignerModuleHookshutdown in class AbstractDesignerModuleHookpublic void addWindowDropHandler(WindowDropHandler handler)
VisionDesignerInterfaceaddWindowDropHandler in interface VisionDesignerInterfacepublic java.util.List<WindowDropHandler> getWindowDropHandlers()
public java.lang.String getResourceCategoryKey(Project project, ProjectResource resource)
DesignerModuleHookUsed by modules that add project resources to an Ignition project. This will be called when the exporter is displaying all of the resources inside a project for export. Only project resources that match this module's ID will passed to this function.
Used by the import/export system.
getResourceCategoryKey in interface DesignerModuleHookgetResourceCategoryKey in class AbstractDesignerModuleHookresource - A project resource that was added by this module.public java.lang.String getResourceDisplayName(Project project, ProjectResource resource)
DesignerModuleHookAllows a module to give an appropriate display name for the resource. For most resources this won't be necessary (the resource's name itself should be used), but for some resources whose name is null, this may be appropriate.
Used by the import/export system.
getResourceDisplayName in interface DesignerModuleHookgetResourceDisplayName in class AbstractDesignerModuleHookpublic javax.swing.Icon getResourceIcon(Project project, ProjectResource resource)
DesignerModuleHookAllows a module to give an appropriate icon for a resource.
Used by the import/export system.
getResourceIcon in interface DesignerModuleHookgetResourceIcon in class AbstractDesignerModuleHookpublic MenuBarMerge getModuleMenu()
DesignerModuleHookgetModuleMenu in interface DesignerModuleHookgetModuleMenu in class AbstractDesignerModuleHookJMenuMergepublic java.util.List<com.jidesoft.action.CommandBar> getModuleToolbars()
DesignerModuleHookgetModuleToolbars in interface DesignerModuleHookgetModuleToolbars in class AbstractDesignerModuleHookpublic java.util.List<com.jidesoft.docking.DockableFrame> getFrames()
DesignerModuleHookgetFrames in interface DesignerModuleHookgetFrames in class AbstractDesignerModuleHookpublic void notifyActivationStateChanged(LicenseState licenseState)
DesignerModuleHooknotifyActivationStateChanged in interface DesignerModuleHooknotifyActivationStateChanged in class AbstractDesignerModuleHookpublic void addWindowListener(VisionWindowListener listener)
VisionClientInterfaceaddWindowListener in interface VisionClientInterfacepublic void removeWindowListener(VisionWindowListener listiner)
VisionClientInterfaceremoveWindowListener in interface VisionClientInterfacepublic void configureSerializer(XMLSerializer s)
DesignerModuleHookconfigureSerializer in interface DesignerModuleHookconfigureSerializer in class AbstractDesignerModuleHookpublic void configureDeserializer(XMLDeserializer deserializer)
configureDeserializer in interface DesignerModuleHookconfigureDeserializer in class AbstractDesignerModuleHookpublic void notifyProjectSaveStart(SaveContext save)
DesignerModuleHooknotifyProjectSaveStart in interface DesignerModuleHooknotifyProjectSaveStart in class AbstractDesignerModuleHookpublic void notifyProjectSaveDone()
DesignerModuleHooknotifyProjectSaveDone in interface DesignerModuleHooknotifyProjectSaveDone in class AbstractDesignerModuleHookprotected void initSearchProviders()
public void notifyDesignableContainerClosed(long id)
public void setContext(DesignerContext context)
public Project getProject()
public FPMIApp getRoot()
public VisionDesignerImpl.Handler getHandler()
public ClientScriptEditor getClientEventScriptEditor()
public long addNewTemplate(java.util.UUID parentFolder,
int width,
int height,
ProjectScope scope)
public long addNewTemplate(java.util.UUID parentFolder,
VisionTemplate template,
ProjectScope scope)
public long newMainWindow(java.util.UUID folder)
public long newDockedWindow(java.util.UUID parentFolder)
public long newPopupWindow(java.util.UUID parentFolder)
public long addNewWindow(java.util.UUID parentFolder,
FPMIWindow newWindow)
FHMIApp being designedpublic boolean addWindow(java.util.UUID parent,
WindowInfo wi)
public java.util.UUID getSelectedWindowFolder()
public java.util.UUID getSelectedTemplateFolder()
public WindowFolderNode getRootFolderNode()
public byte[] serializeProjectResource(java.lang.Object obj)
throws SerializationException
SerializationExceptionpublic void addExtensibleBindingType(BindingType binding)
VisionClientInterfaceaddExtensibleBindingType in interface VisionClientInterfacepublic BindingType getBindingType(java.lang.String bindingTypeKey)
getBindingType in interface VisionClientInterfacepublic NavUtilities getNavUtil()
VisionClientInterfacegetNavUtil in interface VisionClientInterfacepublic NavUtilities getNavUtil(java.lang.String desktopHandle)
VisionClientInterfacegetNavUtil in interface VisionClientInterfacepublic WindowUtilities getGuiUtil()
getGuiUtil in interface VisionClientInterfacepublic WindowUtilities getGuiUtil(java.lang.String desktopHandle)
VisionClientInterfacegetGuiUtil in interface VisionClientInterfacepublic java.util.Collection<BindingType> getExtensibleBindings()
public PaletteImpl getPalette()
getPalette in interface VisionDesignerInterfacepublic long addNewWindow(java.util.UUID parentFolder,
int width,
int height)
VisionDesignerInterfaceFPMIApp being designedaddNewWindow in interface VisionDesignerInterfacepublic java.awt.Component cloneComponent(java.awt.Component comp)
cloneComponent in interface VisionDesignerInterfacepublic DesignerPrefs getCurrentPrefs()
getCurrentPrefs in interface VisionDesignerInterfacepublic WindowWorkspace getWorkspace()
getWorkspace in interface VisionDesignerInterfacepublic void setWorkspace(WindowWorkspace workspace)
public DesignerContext getDesignerContext()
getDesignerContext in interface VisionDesignerInterfacepublic void openBindingDialog(java.awt.Component component,
java.lang.String propertyName)
throws NotBindableException
VisionDesignerInterfaceopenBindingDialog in interface VisionDesignerInterfaceNotBindableExceptionpublic boolean configureBinding(java.awt.Component component,
java.lang.String property,
BindingConfiguration configuration)
throws java.lang.Exception
VisionDesignerInterfaceBindingConfiguration.getBindingType()configureBinding in interface VisionDesignerInterfacejava.lang.Exception