ccs.cpc.impl
Class ProfileModel
java.lang.Object
ccs.beetree.BeeObject
ccs.cdb.CDBObject
ccs.cpc.impl.ProfileModel
- All Implemented Interfaces:
- java.io.Serializable
public class ProfileModel
- extends ccs.cdb.CDBObject
- See Also:
- Serialized Form
Fields inherited from class ccs.cdb.CDBObject |
clone, key, marshalVersion, owner |
Fields inherited from class ccs.beetree.BeeObject |
cipher, encodedLength, isBodiless, isForceDirectDecrypt, isZip, slack |
Method Summary |
void |
cpmarshal(java.io.DataOutputStream dos)
override this to marshal your data, just like marshal . |
void |
cpunmarshal(java.io.DataInputStream dis,
int marshalver)
override this to unmarshal your data, just like unmarshal . |
(package private) ProfileModelElement |
getElement(java.lang.String classname,
java.lang.String key)
Return the element with the supplied class name and key, if any; else null. |
byte[] |
getPassword()
|
(package private) java.util.Comparator<VFile> |
getVFileSorter()
Obtain a comparator which implements the currently selected sort order. |
(package private) void |
putElement(ProfileModelElement element)
Add or update the supplied element. |
void |
setPassword(byte[] password,
ccs.crypt.Cipher cipherInstance)
|
Methods inherited from class ccs.cdb.CDBObject |
canChangeKeyProgrammatically, canDeleteProgrammatically, canUpdateProgrammatically, cpgetKey, cpgetMarshalledLength, cppreMarshal, cppreUnmarshal, cpsetKey, getCDB, getKey, getMarshalledLength, marshal, preMarshal, preUnmarshal, setCDB, setKey, transientMarshal, transientUnmarshal, unmarshal |
Methods inherited from class ccs.beetree.BeeObject |
lock, unlock |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mimeReg
public ccs.mime.MimeRegistry mimeReg
mimeBind
MimeBindery mimeBind
viewerReg
ViewerRegistry viewerReg
isSingle
boolean isSingle
isConfirm
boolean isConfirm
isCompress
boolean isCompress
wipeMode
int wipeMode
isPreview
boolean isPreview
isDownCase
boolean isDownCase
isLoop
boolean isLoop
xpos
int xpos
ypos
int ypos
width
int width
height
int height
cacheLimit
int cacheLimit
isMkdirGoesThere
boolean isMkdirGoesThere
fontFamily
java.lang.String fontFamily
fontFlags
int fontFlags
fontSize
int fontSize
sortOrder
ProfileModel.FileSortOrder sortOrder
ProfileModel
public ProfileModel()
cpmarshal
public void cpmarshal(java.io.DataOutputStream dos)
throws java.io.IOException
- Description copied from class:
ccs.cdb.CDBObject
- override this to marshal your data, just like
marshal
.
The data will be in the object's fields when this is called (rather than
within any UI objects).
- Specified by:
cpmarshal
in class ccs.cdb.CDBObject
- Parameters:
dos
- The stream to marshal onto.
- Throws:
java.io.IOException
- If this breaks (breaks the CDB too).
cpunmarshal
public void cpunmarshal(java.io.DataInputStream dis,
int marshalver)
throws java.io.IOException
- Description copied from class:
ccs.cdb.CDBObject
- override this to unmarshal your data, just like
unmarshal
.
- Specified by:
cpunmarshal
in class ccs.cdb.CDBObject
- Parameters:
dis
- The stream to unmarshal frommarshalver
- The marshal version of the data in src - i.e. the
version of this class which wrote the data. This may be
different from the current marshalVersion
. If so (i.e. the
stored data is the wrong version) your method should allow for it.
This allows comparatively painless data migration between versions of
your objects.
- Throws:
java.io.IOException
- if this breaks (breaks the CDB too).
setPassword
public void setPassword(byte[] password,
ccs.crypt.Cipher cipherInstance)
throws ccs.CipherException
- Throws:
ccs.CipherException
getPassword
public byte[] getPassword()
getVFileSorter
java.util.Comparator<VFile> getVFileSorter()
- Obtain a comparator which implements the currently selected sort order.
putElement
void putElement(ProfileModelElement element)
- Add or update the supplied element. Note that callers should then call
model.write() to commit the change to disk.
getElement
ProfileModelElement getElement(java.lang.String classname,
java.lang.String key)
- Return the element with the supplied class name and key, if any; else null.
NB. The object this returns is shared between all instances of the viewer
in question. However, it's often the case that each instance needs its own
working copy, which won't be affected by changes made by other instances.
If so, you should take whatever steps are required, such as having your
ProfileModelElement
implement Cloneable
, and cloning
it off.