Class WindowCache
java.lang.Object
com.inductiveautomation.factorypmi.application.model.WindowCache
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescription_legacyDeserialize(InputStream is, Object owner) voidapplyDiff(List<? extends ChangeOperation> changes, ProgressListener listener) voidclear()Clears the entire cache.voidclear(ResourcePath path) Removes the id from the cachevoidClears the actual window references from any loaded WindowInfosvoidcloseWindow(FPMIWindow window) Looks up the ids to all windows that are specified as startup windowsintDeprecated.intgetWindowInfo(ResourcePath path) Returns the WindowInfo for the window specified by the given resource id.getWindowInfo(String path) Returns the WindowInfo for the window located at the given path.Returns a flattened list of all window pathsintgetWindowSize(String path) Returns a windows' size.Returns a thumbnail image for the named window, possibly nullbooleanisWindowPresent(String path) openWindow(String path, List<String> credentials, boolean openAdditional) Returns the FPMIWindow object reference for the given window name.voidsetRootPaneContainer(RootPaneContainer rootPaneContainer) voidshutdown()
- 
Constructor Details- 
WindowCache
 
- 
- 
Method Details- 
shutdownpublic void shutdown()
- 
applyDiff
- 
getWindowInfoReturns the WindowInfo for the window located at the given path. If the window doesn't exist, null is returned.- Parameters:
- path- Path to resource
- Returns:
- WindowInfo of resource or null if resource not found or window info not found.
 
- 
setRootPaneContainer
- 
getWindowInfoReturns the WindowInfo for the window specified by the given resource id. If the window doesn't exist, null is returned.
- 
openWindowReturns the FPMIWindow object reference for the given window name. If necessary (window is not already open), the window will be deserialized.
- 
_legacyDeserializepublic static List<Object> _legacyDeserialize(InputStream is, Object owner) throws SerializationException - Throws:
- SerializationException
 
- 
clearpublic void clear()Clears the entire cache.
- 
clearRemoves the id from the cache
- 
clearCachepublic void clearCache()Clears the actual window references from any loaded WindowInfos
- 
getWindowCompressedSizeDeprecated.usegetWindowSize(ProjectResourceId)instead
- 
getWindowSize
- 
getWindowEncoding
- 
getWindowCountpublic int getWindowCount()
- 
getWindowSizeReturns a windows' size. The window is deserialized if necessary, but then immediately closed. No locks are obtained.
- 
isWindowPresent
- 
getStartupWindowsLooks up the ids to all windows that are specified as startup windows
- 
getAboutWindow- Returns:
- Returns the id to the window to use as an about window in the runtime or null if not found
 
- 
closeWindow
- 
getWindowThumbnailReturns a thumbnail image for the named window, possibly null
- 
getWindowNamesAlphabeticalReturns a flattened list of all window paths
 
- 
getWindowSize(ProjectResourceId)instead