Class WindowCache
- java.lang.Object
- 
- com.inductiveautomation.factorypmi.application.model.WindowCache
 
- 
 public class WindowCache extends java.lang.Object
- 
- 
Constructor SummaryConstructors Constructor Description WindowCache(ClientContext context)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.List<java.lang.Object>_legacyDeserialize(java.io.InputStream is, java.lang.Object owner)voidapplyDiff(java.util.List<? extends ChangeOperation> changes, ProgressListener listener)voidclear()Clears the entire cache.voidclear(ResourcePath path)Removes the id from the cachevoidclearCache()Clears the actual window references from any loaded WindowInfosvoidcloseWindow(FPMIWindow window)ResourcePathgetAboutWindow()java.util.List<java.lang.String>getStartupWindows()Looks up the ids to all windows that are specified as startup windowsintgetWindowCompressedSize(ProjectResourceId id)intgetWindowCount()WindowInfogetWindowInfo(ResourcePath path)Returns the WindowInfo for the window specified by the given resource id.WindowInfogetWindowInfo(java.lang.String path)Returns the WindowInfo for the window located at the given path.java.util.List<java.lang.String>getWindowNamesAlphabetical()Returns a flattened list of all window pathsjava.awt.DimensiongetWindowSize(java.lang.String path)Returns a windows' size.java.awt.image.BufferedImagegetWindowThumbnail(ResourcePath path)Returns a thumbnail image for the named window, possibly nullbooleanisWindowPresent(java.lang.String path)FPMIWindowopenWindow(java.lang.String path, java.util.List<java.lang.String> credentials, boolean openAdditional)Returns the FPMIWindow object reference for the given window name.voidsetRootPaneContainer(javax.swing.RootPaneContainer rootPaneContainer)voidshutdown()
 
- 
- 
- 
Constructor Detail- 
WindowCachepublic WindowCache(ClientContext context) 
 
- 
 - 
Method Detail- 
shutdownpublic void shutdown() 
 - 
applyDiffpublic void applyDiff(java.util.List<? extends ChangeOperation> changes, ProgressListener listener) 
 - 
getWindowInfopublic WindowInfo getWindowInfo(java.lang.String path) Returns 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.
 
 - 
setRootPaneContainerpublic void setRootPaneContainer(javax.swing.RootPaneContainer rootPaneContainer) 
 - 
getWindowInfopublic WindowInfo getWindowInfo(ResourcePath path) Returns the WindowInfo for the window specified by the given resource id. If the window doesn't exist, null is returned.
 - 
openWindowpublic FPMIWindow openWindow(java.lang.String path, java.util.List<java.lang.String> credentials, boolean openAdditional) Returns the FPMIWindow object reference for the given window name. If necessary (window is not already open), the window will be deserialized.
 - 
_legacyDeserializepublic static java.util.List<java.lang.Object> _legacyDeserialize(java.io.InputStream is, java.lang.Object owner) throws SerializationException- Throws:
- SerializationException
 
 - 
clearpublic void clear() Clears the entire cache.
 - 
clearpublic void clear(ResourcePath path) Removes the id from the cache
 - 
clearCachepublic void clearCache() Clears the actual window references from any loaded WindowInfos
 - 
getWindowCompressedSizepublic int getWindowCompressedSize(ProjectResourceId id) 
 - 
getWindowCountpublic int getWindowCount() 
 - 
getWindowSizepublic java.awt.Dimension getWindowSize(java.lang.String path) Returns a windows' size. The window is deserialized if necessary, but then immediately closed. No locks are obtained.
 - 
isWindowPresentpublic boolean isWindowPresent(java.lang.String path) 
 - 
getStartupWindowspublic java.util.List<java.lang.String> getStartupWindows() Looks up the ids to all windows that are specified as startup windows
 - 
getAboutWindowpublic ResourcePath getAboutWindow() - Returns:
- Returns the id to the window to use as an about window in the runtime or null if not found
 
 - 
closeWindowpublic void closeWindow(FPMIWindow window) 
 - 
getWindowThumbnailpublic java.awt.image.BufferedImage getWindowThumbnail(ResourcePath path) Returns a thumbnail image for the named window, possibly null
 - 
getWindowNamesAlphabeticalpublic java.util.List<java.lang.String> getWindowNamesAlphabetical() Returns a flattened list of all window paths
 
- 
 
-