com.borland.jbuilder.designer
Interface Designer


public interface Designer


Method Summary
 boolean activate(CmtComponentSource componentSource, CmtModelNode root, CmtModelNode node, DesignerViewer dc)
          (re)activate a view on a given model node, creating UI as needed.
 void annotate(CmtComponentSource componentSource, CmtComponents components)
          Have a designer annotate a component source with design model specific tree(s).
 void close(CmtComponentSource componentSource, DesignerViewer dc)
          Finish editing a give component source & cleanup view related allocation.
 java.lang.String getModelName()
          Get the name of the designer's model.
 void open(CmtComponentSource componentSource, DesignerViewer dc)
          Open a view on a given component source.
 

Method Detail

getModelName

public java.lang.String getModelName()
Get the name of the designer's model. This name must match the name that the model returns in getName, and may be seen by the user, so should be localized.

annotate

public void annotate(CmtComponentSource componentSource,
                     CmtComponents components)
Have a designer annotate a component source with design model specific tree(s). Called the first time the component source is opened, & every subsequent time it is changed on reopen. Is not called if the component source has previous annotations available. No view related work should be done here.

open

public void open(CmtComponentSource componentSource,
                 DesignerViewer dc)
Open a view on a given component source. Will be called sometime after annotate, the first time the user tries to activate the designer. Will also be called on re-opens, event if annotate is skipped.

activate

public boolean activate(CmtComponentSource componentSource,
                        CmtModelNode root,
                        CmtModelNode node,
                        DesignerViewer dc)
(re)activate a view on a given model node, creating UI as needed. Will be called right after open the first time, and then again every time the user tries to activate the designer. The designer should return true if it is OK to activate, false to refuse

close

public void close(CmtComponentSource componentSource,
                  DesignerViewer dc)
Finish editing a give component source & cleanup view related allocation. Annotations should be left in place & will be available for the next edit session