All Implemented Interfaces:
BindingRoot, DynamicPropertyProvider, DesignableContainer, LocaleListener, MutableDynamicPropertyProvider, StyleProvider, ComponentLifecycle, QualityMonitor, TopLevelContainer, VisionComponent, VisionContainer, ImageObserver, MenuContainer, VetoableChangeListener, Serializable, EventListener, Accessible

public class VisionTemplate extends BasicContainer implements TopLevelContainer
See Also:
  • Field Details

  • Constructor Details

    • VisionTemplate

      public VisionTemplate()
  • Method Details

    • getPathForComponent

      public String getPathForComponent(Component component)
      Specified by:
      getPathForComponent in interface BindingRoot
    • getComponentForPath

      public Component getComponentForPath(String path)
      Specified by:
      getComponentForPath in interface BindingRoot
    • assignInstanceName

      public void assignInstanceName(String instanceName)
      There is a reason this doesn't follow proper bean naming: it needs to be read-only.
    • setInstanceName

      @Deprecated public void setInstanceName(String dummy)
      Deprecated.
    • getInstanceName

      public String getInstanceName()
    • isEnableLayout

      public boolean isEnableLayout()
    • setEnableLayout

      public void setEnableLayout(boolean enableLayout)
    • layoutAsGroup

      public boolean layoutAsGroup()
      Specified by:
      layoutAsGroup in interface VisionContainer
      Overrides:
      layoutAsGroup in class BasicContainer
    • isInstalled

      public boolean isInstalled()
      Returns:
      true if this template is installed as a template instance. False if the template is open as a design master
    • setGroup

      public void setGroup(boolean group)
      Overrides:
      setGroup in class BasicContainer
    • setWidth

      public void setWidth(int newWidth)
    • setHeight

      public void setHeight(int newHeight)
    • setSize

      public void setSize(int width, int height)
      Overridden to get rid of the bounds2d rectangle that FPMILayout will put here.
      Overrides:
      setSize in class Component
    • initialize

      public void initialize(VisionClientContext context)
      Connect adapters, UDTInit, BindingInit
      Specified by:
      initialize in interface BindingRoot
    • startup

      public void startup()
      Startup Adapters, startup components
      Specified by:
      startup in interface BindingRoot
    • isStarted

      public boolean isStarted()
      Description copied from interface: BindingRoot
      Returns true if this BindingRoot is considered to be running/active. Typically, this means that its initialized, started, and hasn't been shutdown.
      Specified by:
      isStarted in interface BindingRoot
    • shutdown

      public void shutdown()
      Description copied from interface: BindingRoot
      Shutdown the root. Shut-down adapters, and shut-down any children ComponentLifecycles.
      Specified by:
      shutdown in interface BindingRoot
    • paintBackground

      protected void paintBackground(Graphics g)
      Overrides:
      paintBackground in class BasicContainer
    • getChildrenForSerialization

      public List<JComponent> getChildrenForSerialization()
    • setChildrenForSerialization

      public void setChildrenForSerialization(List<JComponent> children)
    • getInteractionController

      public InteractionController getInteractionController()
      Specified by:
      getInteractionController in interface BindingRoot
    • setInteractionController

      public void setInteractionController(InteractionController controller)
    • isPropertyDefinedAndPublic

      public boolean isPropertyDefinedAndPublic(String name)
    • getDropTargetProperty

      public DynamicPropertyDescriptor getDropTargetProperty()
    • getResourcePath

      public ResourcePath getResourcePath()
      Specified by:
      getResourcePath in interface DesignableContainer
    • setResourcePath

      public void setResourcePath(ResourcePath resourcePath)
    • getTemplateContext

      public VisionClientContext getTemplateContext()
      Returns:
      the client context used when this template was initialized