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 Summary
ConstructorsConstructorDescriptionCachedComponent
(InstanceCache cache, ResourcePath windowId, String componentPath) -
Method Summary
Modifier and TypeMethodDescriptionvoid
changed()
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()void
locate()
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
-
component
Finds the component for the given path.- Throws:
WindowLockedException
-
window
Pulls the top level container for the component's parent's resource id out of the cache.- Throws:
WindowLockedException
-
getDesigner
-
getWorkspace
-
changed
public void changed()You must call this if you modify this component so the system knows which windows to commit. -
locate
public void locate()Opens the window in the WindowWorkspace and tries to select the component -
getChild
- Throws:
WindowLockedException
-
getCache
-
getWindowId
-
getWindowPath
safe to call whether the window is open or not, unlike FPMIWindow.getPath() -
getComponentPath
-