fist.beans.FISTbeanDocProxy

  SubClasses: YOU MUST SUBCLASS

This class allows the developer to add documents to the viewer and have them loaded on-demand. It is used in conjunction with beans like the DocviewSwingFISTbean.

You must subclass one version of the proxyResolve method in order to have the document resolved.

CLASS CONSTRUCTOR
protected FISTbeanDocProxy();
  The constructor is protected - so you may only instantiate subclasses.
CLASS CONSTANTS
protected static final int PROXYTRIGGER_USER_CLICK;
protected static final int PROXYTRIGGER_PRINT_ALL;
CLASS METHODS
protected void setDocName(String name);
  Names the document.
protected void setDoc(FISTbeanDoc doc);
  Resolves the document.
CLASS METHODS TO BE OVERRIDDEN
protected void proxyResolve();
  Your override of this method should make a new FISTbeanDoc and call setDoc. Override this version of proxyResolve if you don't want to differentiate between triggers.
protected void proxyResolve(int trigger, boolean synchronous);
  • trigger - one of the "PROXYTRIGGER_" constants above. Specifies what triggered the proxy resolve.
  • synchronous - true if the trigger needs the document resolved immediately (i.e. setDoc must be called before you return).
  Your override of this method should make a new FISTbeanDoc and call setDoc. Override this version of proxyResolve if you want to handle triggers differently and/or support asynchronous resolving.
Resource Usage
public void releaseResources();
  Releases your hold on the resources of the proxy doc. NB the doc may still be used by any DocviewSwingFISTbean which is using it.