Class WindowInfo
java.lang.Object
com.inductiveautomation.factorypmi.application.model.TopLevelContainerInfoBase
com.inductiveautomation.factorypmi.application.model.WindowInfo
WindowInfo is a wrapper type that contains an FPMIWindow. The serialized bytes inside a "window" project resource are
 actually a serialized WindowInfo, not a direct FPMIWindow. In this way, the client app can deserialize all of the
 WindowInfos upon startup, and know information about them (such as their thumbnail, whether they should open on
 startup, etc) without incurring the cost of deserializing the whole window. They also hold a reference to the
 FPMIWindow itself when it is open or cached.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Stringstatic final intstatic final Stringstatic final Stringstatic final Stringstatic final ResourceTypestatic final Stringstatic final Stringstatic final StringFields inherited from class com.inductiveautomation.factorypmi.application.model.TopLevelContainerInfoBasePROJECT_RESOURCE_8_VERSION, PROJECT_RESOURCE_LEGACY_VERSION, THUMBNAIL_KEY, windowThumbnail, windowThumbnailBytes
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionRetrieves the FPMIWindow for this WindowInfo.Creates a duplicate of this Window Info, but not the currently opened window (if any).String[]byte[]The encoding of these bytes conforms to one ofSerializationEncodingand isn't always binary.Returns any window instances that are currently open.intbooleanbooleanbooleanvoidnotifyWindowClosed(FPMIWindow window) voidnotifyWindowOpened(FPMIWindow window) Adds this window to the list of opened windows, and clears any cached copy of the window.voidsetAboutWindow(boolean aboutWindow) voidsetOpenOnStart(boolean b) voidsetParameters(String[] parameters) voidsetPermissions(ComponentPermissions permissions) voidsetResourcePath(ResourcePath resourcePath) voidsetSecuritySettings(SecuritySettings settings) voidsetSerializedBase64(String base64) Deprecated.voidsetSerializedCode(byte[] compressedXml) Deprecated.voidsetSerializedCode(byte[] data, SerializationEncoding encoding) voidsetWindow(FPMIWindow window) Deprecated.voidsetWindowName(String string) voidsetWindowThumbnailBase64(String windowThumbnailBase64) Deprecated.voidsetXmlFormatVersion(int xmlFormatVersion) Methods inherited from class com.inductiveautomation.factorypmi.application.model.TopLevelContainerInfoBasegetWindowThumbnail, getWindowThumbnailBytes, setWindowThumbnail, setWindowThumbnailBytes
- 
Field Details- 
RESOURCE_TYPE
- 
CURRENT_XML_FORMAT_VERSIONpublic static final int CURRENT_XML_FORMAT_VERSION- See Also:
 
- 
OPEN_ON_START_KEY- See Also:
 
- 
ABOUT_WINDOW_KEY- See Also:
 
- 
XML_FORMAT_VERSION_KEY- See Also:
 
- 
PARAMETER_NAMES_KEY- See Also:
 
- 
WINDOW_BINARY_KEY- See Also:
 
- 
WINDOW_XML_KEY- See Also:
 
- 
PERMISSIONS_KEY- See Also:
 
 
- 
- 
Constructor Details- 
WindowInfopublic WindowInfo()
 
- 
- 
Method Details- 
duplicateCreates a duplicate of this Window Info, but not the currently opened window (if any). Relies on the commited values. Sets modified=false and newWindow=true
- 
isOpenOnStartpublic boolean isOpenOnStart()
- 
setOpenOnStartpublic void setOpenOnStart(boolean b) 
- 
setSerializedCodeDeprecated.in favor ofsetSerializedCode(byte[], SerializationEncoding)where an encoding is supplied. still used by 7.9 resourcesSets the code of this window to 'code', which isSerializationEncoding.AUTOwhich will recreate this window.
- 
setSerializedCode
- 
getSerializedCodepublic byte[] getSerializedCode()The encoding of these bytes conforms to one ofSerializationEncodingand isn't always binary.
- 
getSerializedCodeEncoding
- 
setSerializedBase64Deprecated.
- 
notifyWindowOpenedAdds this window to the list of opened windows, and clears any cached copy of the window.
- 
notifyWindowClosed
- 
_getWindowRetrieves the FPMIWindow for this WindowInfo. If the window is open, this will return it directly. If the window is in the cache, it will return the cached (but closed) window.
- 
isWindowOpenpublic boolean isWindowOpen()
- 
getWindowInstancesReturns any window instances that are currently open.
- 
setWindowDeprecated.Old function name now renamed to _setWindow() to avoid serializing the live window instance.
- 
setSecuritySettings
- 
getPermissions
- 
setPermissions
- 
getWindowName
- 
setWindowName
- 
getParameters
- 
setParameters
- 
isAboutWindowpublic boolean isAboutWindow()- Returns:
- Returns the aboutWindow.
 
- 
setAboutWindowpublic void setAboutWindow(boolean aboutWindow) - Parameters:
- aboutWindow- The aboutWindow to set.
 
- 
getXmlFormatVersionpublic int getXmlFormatVersion()
- 
setXmlFormatVersionpublic void setXmlFormatVersion(int xmlFormatVersion) 
- 
getResourcePath
- 
setResourcePath
- 
setWindowThumbnailBase64Deprecated.
 
- 
setSerializedCode(byte[], SerializationEncoding)where an encoding is supplied.