|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ccs.cpc.CpCmdr
public abstract class CpCmdr
Main class for CPC. This is a facade which is available to internal viewers.
main
works, although you can't instantiate this class directly.
(Main invokes a subclass which contains the implementation).
Field Summary | |
---|---|
static java.lang.String |
VERSION
|
Constructor Summary | |
---|---|
CpCmdr()
|
Method Summary | |
---|---|
abstract ccs.utils.SwappingBuffer |
chromeFor(java.lang.String path)
Returns the chrome corresponding to a given file, located in cpc.chrome.cdb. |
abstract ccs.utils.SwappingBuffer |
docsFor(java.lang.String path)
Returns a file from CPC's documentation. |
abstract VDevice |
getDeviceForID(java.lang.String deviceID)
Given a device ID, returns the device it belongs to, ie. for any VDevice vd, vd === getDeviceForID(vd.getID()) . |
abstract ImageManager |
getImageManager()
|
abstract ccs.mime.MimeRegistry |
getMimeReg()
Returns the MIME Registry currently in use. |
abstract java.lang.String |
getStrainTitle()
Checkpoint Commander exists in two "strains" (biological sense): Checkpoint Commander Standard and Checkpoint Commander Plus. |
static void |
main(java.lang.String[] args)
Main application entry point. |
static boolean |
out(java.lang.String s)
|
abstract ProfileModelElement |
readProfileElement(java.lang.String classname,
java.lang.String key)
Read a Profile Element. |
abstract void |
writeProfileElement(ProfileModelElement element)
Write a Profile Element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String VERSION
Constructor Detail |
---|
public CpCmdr()
Method Detail |
---|
public abstract ccs.utils.SwappingBuffer chromeFor(java.lang.String path) throws java.io.IOException
java.io.IOException
public abstract ccs.utils.SwappingBuffer docsFor(java.lang.String path) throws java.io.IOException
java.io.IOException
public abstract ImageManager getImageManager()
public abstract ProfileModelElement readProfileElement(java.lang.String classname, java.lang.String key)
classname
- The name of the class used. Must implement
ProfileModelElement
.key
- An additional distinguishing key, if required. This allows two
elements of the same class to be added. This can be useful if, for example,
two different but related viewers use the same class for storage. Often this
isn't required, in which case it should be the empty string.
writeProfileElement
). Note that the returned instance is shared
between all instances of the viewer in question. However, it's often the
case that each viewer instance needs its own working copy, which won't be
affected by changes made by other viewer instances. If so, you should act
accordingly. Typically you proceed by having your
ProfileModelElement
implement Cloneable
, and cloning
it off.public abstract void writeProfileElement(ProfileModelElement element)
element
- The Profile Element to write.readProfileElement
public abstract java.lang.String getStrainTitle()
public abstract ccs.mime.MimeRegistry getMimeReg()
java.net.FilenameMap
) since it is user-extensible, and
when last checked had more up-to-date and more complete defaults.
public abstract VDevice getDeviceForID(java.lang.String deviceID)
VDevice
vd, vd === getDeviceForID(vd.getID())
.
public static void main(java.lang.String[] args)
public static boolean out(java.lang.String s)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |