ccs.cpc.impl
Class HelperApp

java.lang.Object
  extended by ccs.cpc.Viewer
      extended by ccs.cpc.impl.HelperApp
All Implemented Interfaces:
java.lang.Comparable<Viewer>

public final class HelperApp
extends Viewer


Nested Class Summary
static class HelperApp.FileLinkage
           
 
Nested classes/interfaces inherited from class ccs.cpc.Viewer
Viewer.FileCap
 
Field Summary
 
Fields inherited from class ccs.cpc.Viewer
editness, fileness
 
Constructor Summary
HelperApp(java.lang.String name, boolean doesEdit, Viewer.FileCap fileness, java.lang.String cmd, HelperApp.FileLinkage linkage, boolean isPreprocXSPF)
           
 
Method Summary
static Viewer createExternalFrom(java.io.DataInputStream dis, int marshalver)
           
 java.lang.String getCmdline()
           
 java.lang.String getID()
          Return a unique ID for this viewer, unique at least within the current profile.
 HelperApp.FileLinkage getLinkage()
           
 ViewerRuntime getRuntime(PluginCallback callback, VFile target)
          create a suitable runtime instance of this viewer, viewing a given target.
 boolean isPreprocessXSPF()
           
(package private)  void setCmdline(java.lang.String cmdline)
           
 void setEditness(boolean editness)
          Set whether the viewer edits files.
 void setFileness(Viewer.FileCap fileness)
          Sets the viewer's capacity to be launched with or without a file (or either).
 void setLinkage(HelperApp.FileLinkage linkage)
           
 void setPreprocessXSPF(boolean preproc)
           
protected  void submarshal(java.io.DataOutputStream dos)
           
 void validate(java.awt.Frame frame)
           
 
Methods inherited from class ccs.cpc.Viewer
compareTo, createFrom, getEditness, getFileness, getName, marshalTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HelperApp

public HelperApp(java.lang.String name,
                 boolean doesEdit,
                 Viewer.FileCap fileness,
                 java.lang.String cmd,
                 HelperApp.FileLinkage linkage,
                 boolean isPreprocXSPF)
Method Detail

getID

public java.lang.String getID()
Description copied from class: Viewer
Return a unique ID for this viewer, unique at least within the current profile.

Specified by:
getID in class Viewer

submarshal

protected void submarshal(java.io.DataOutputStream dos)
                   throws java.io.IOException
Specified by:
submarshal in class Viewer
Throws:
java.io.IOException

getCmdline

public java.lang.String getCmdline()

setCmdline

void setCmdline(java.lang.String cmdline)

setEditness

public void setEditness(boolean editness)
Set whether the viewer edits files.


setFileness

public void setFileness(Viewer.FileCap fileness)
Sets the viewer's capacity to be launched with or without a file (or either).


setLinkage

public void setLinkage(HelperApp.FileLinkage linkage)

setPreprocessXSPF

public void setPreprocessXSPF(boolean preproc)

getLinkage

public HelperApp.FileLinkage getLinkage()

isPreprocessXSPF

public boolean isPreprocessXSPF()

getRuntime

public ViewerRuntime getRuntime(PluginCallback callback,
                                VFile target)
                         throws java.io.IOException
Description copied from class: Viewer
create a suitable runtime instance of this viewer, viewing a given target.

Specified by:
getRuntime in class Viewer
Throws:
java.io.IOException

validate

public void validate(java.awt.Frame frame)
              throws ccs.LoseException
Overrides:
validate in class Viewer
Throws:
ccs.LoseException

createExternalFrom

public static final Viewer createExternalFrom(java.io.DataInputStream dis,
                                              int marshalver)
                                       throws java.io.IOException
Throws:
java.io.IOException