Defining views for an operation

To connect an operation and an operation view, do the following:
  1. Define the view in the toolkit view definition file or in the operation's self-defined file. The following is an example definition for the view.
    <view id="myPanel" context="myPanelCtx"
        defaultOperation="myPanelOp" implClass="mypackage.MyPanel"/>
  2. Instantiate the view using a method call such as the following example:
    (CoordinatedPanel) myPanel = (CoordinatedPanel)
    DSECoordinatedPanel.readObject("myPanel");
    In this example, the view named myPanel is an instance of mypackage.MyPanel. The view externalizer updates the instance with the corresponding attributes belonging to the context and the default operation attached to the panel through the initializeFrom(Tag aTag) method implemented by the toolkit.