wtanaka.praya.obj
Class ProtoFolder

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

public class ProtoFolder
extends ReadOnlySystemFolder
implements java.io.Serializable

A folder containing the protocols instantiated in the system.

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
ProtoFolder(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.
 void remove(FolderSelectionModel selection)
          Removes selected items from the folder.
 void remove(int i)
          Removes the object at the given index from the folder.
 void remove(Obj a)
          Removes the given object from the folder.
 
Methods inherited from class wtanaka.praya.obj.ReadOnlySystemFolder
setName
 
Methods inherited from class wtanaka.praya.obj.NormalFolder
addFolderListener, elements, fireAdded, fireRemoved, getChildAt, getContents, getName, getNumChildren, getParent, indexOf, mergeSort, readExternal, removeFolderListener, selectSort, 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

ProtoFolder

public ProtoFolder(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 ReadOnlySystemFolder
Following copied from class: wtanaka.praya.obj.NormalFolder
Parameters:
a - the object to add to the folder. It cannot be null.

remove

public void remove(Obj a)
Description copied from class: NormalFolder
Removes the given object from the folder.
Overrides:
remove in class ReadOnlySystemFolder
Following copied from class: wtanaka.praya.obj.NormalFolder
Parameters:
a - the object to remove from the folder.

remove

public void remove(int i)
Description copied from class: NormalFolder
Removes the object at the given index from the folder.
Overrides:
remove in class ReadOnlySystemFolder
Following copied from class: wtanaka.praya.obj.NormalFolder
Parameters:
the - index of the object to remove from the folder.

remove

public void remove(FolderSelectionModel selection)
Description copied from class: NormalFolder
Removes selected items from the folder. This is a way to remove a lot of elements in O(N) time instead of O(N^2)
Overrides:
remove in class NormalFolder

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)