Class CachedComponent
java.lang.Object
com.inductiveautomation.factorypmi.designer.search.CachedComponent
Convenience object that encapsulates proper caching logic for holding onto a Component reference
- 
Constructor SummaryConstructorsConstructorDescriptionCachedComponent(InstanceCache cache, ResourcePath windowId, String componentPath) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidchanged()You must call this if you modify this component so the system knows which windows to commit.Finds the component for the given path.getCache()getChild(int index) safe to call whether the window is open or not, unlike FPMIWindow.getPath()voidlocate()Opens the window in the WindowWorkspace and tries to select the componentwindow()Pulls the top level container for the component's parent's resource id out of the cache.
- 
Constructor Details- 
CachedComponent
 
- 
- 
Method Details- 
componentFinds the component for the given path.- Throws:
- WindowLockedException
 
- 
windowPulls the top level container for the component's parent's resource id out of the cache.- Throws:
- WindowLockedException
 
- 
getDesigner
- 
getWorkspace
- 
changedpublic void changed()You must call this if you modify this component so the system knows which windows to commit.
- 
locatepublic void locate()Opens the window in the WindowWorkspace and tries to select the component
- 
getChild- Throws:
- WindowLockedException
 
- 
getCache
- 
getWindowId
- 
getWindowPathsafe to call whether the window is open or not, unlike FPMIWindow.getPath()
- 
getComponentPath
 
-