wtanaka.praya.obj
Class TrashFolder

java.lang.Object
  |
  +--wtanaka.praya.obj.Obj
        |
        +--wtanaka.praya.obj.NormalFolder
              |
              +--wtanaka.praya.obj.SystemFolder
                    |
                    +--wtanaka.praya.obj.TrashFolder
All Implemented Interfaces:
java.io.Externalizable, Fillable, java.io.Serializable

public class TrashFolder
extends SystemFolder
implements java.io.Serializable

This is a trashcan. It contains deleted messages.

Return to Sourceforge or the Praya Homepage

Version:
$Name: $ $Date: 2001/10/03 07:17:28 $
Author:
$Author: wtanaka $
See Also:
Serialized Form

Fields inherited from class wtanaka.praya.obj.NormalFolder
folderListeners, m_storage, MAGIC_NUMBER, name, parent, serialVersionUID, sortKey
 
Fields inherited from class wtanaka.praya.obj.Obj
CONTENTS, date, DATE, FROM, privThread, REVCONTENTS, REVDATE, REVFROM, REVSCORE, REVSUBJECT, SCORE, secretObject, SUBJECT
 
Constructor Summary
TrashFolder(NormalFolder parent)
           
 
Method Summary
 void add(Obj a)
          Adds the given object to the end of this folder.
 boolean isTrashCanUsed()
          Whether or not removed messages should be placed in the trash.
 
Methods inherited from class wtanaka.praya.obj.NormalFolder
addFolderListener, elements, fireAdded, fireRemoved, getChildAt, getContents, getName, getNumChildren, getParent, indexOf, mergeSort, readExternal, remove, remove, remove, removeFolderListener, selectSort, setName, sort, toString, writeExternal
 
Methods inherited from class wtanaka.praya.obj.Obj
getFrom, getSubject, getTimeStamp, isPrivileged, lessThan, setPrivilegedThread, setSecretObject, setTimeStamp
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Constructor Detail

TrashFolder

public TrashFolder(NormalFolder parent)
Method Detail

add

public void add(Obj a)
Description copied from class: NormalFolder
Adds the given object to the end of this folder.
Overrides:
add in class NormalFolder
Following copied from class: wtanaka.praya.obj.NormalFolder
Parameters:
a - the object to add to the folder. It cannot be null.

isTrashCanUsed

public boolean isTrashCanUsed()
Description copied from class: NormalFolder
Whether or not removed messages should be placed in the trash.
Overrides:
isTrashCanUsed in class NormalFolder
Following copied from class: wtanaka.praya.obj.NormalFolder
Returns:
true if we should put removed messages in the trash (for instance for most normal folders) false if we should kill them (for instance, for the trash can and protocol folders)