wtanaka.praya.obj
Class ProtoObj

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

public abstract class ProtoObj
extends ReadOnlySystemFolder
implements java.io.Serializable

Represents an instance of a protocol in the UI. Has subitems containing things related to the protocol (users, channels, config items, etc.)

Return to Sourceforge or the Praya Homepage

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

Field Summary
protected  java.awt.Frame myFrame
           
protected  Protocol myProtocol
           
 
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
ProtoObj(NormalFolder containing, Protocol parent)
          Constructs a new ProtoObj
 
Method Summary
 void cleanUp()
          Cleans up the protocol for removal.
abstract  Obj getChildAt(int index)
          Gets a child of this folder.
 java.lang.String getName()
           
abstract  int getNumChildren()
           
 Protocol getProtocol()
           
 void setFrame(java.awt.Frame f)
           
abstract  void update(Obj instance)
          informs the protocol obj that one of its configuration options has changed through the ui.
 
Methods inherited from class wtanaka.praya.obj.ReadOnlySystemFolder
add, remove, remove, setName
 
Methods inherited from class wtanaka.praya.obj.NormalFolder
addFolderListener, elements, fireAdded, fireRemoved, getContents, getParent, indexOf, isTrashCanUsed, mergeSort, readExternal, remove, 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
 

Field Detail

myProtocol

protected Protocol myProtocol

myFrame

protected java.awt.Frame myFrame
Constructor Detail

ProtoObj

public ProtoObj(NormalFolder containing,
                Protocol parent)
         throws java.lang.SecurityException
Constructs a new ProtoObj
Parameters:
containing - the folder outside this obj
parent - the associated protocol
Method Detail

getNumChildren

public abstract int getNumChildren()
Overrides:
getNumChildren in class NormalFolder

getChildAt

public abstract Obj getChildAt(int index)
Description copied from class: NormalFolder
Gets a child of this folder.
Overrides:
getChildAt in class NormalFolder
Following copied from class: wtanaka.praya.obj.NormalFolder
Returns:
the indexth child of this folder.
Throws:
ArrayIndexOutOfBoundsException - if the given child does not exist.

setFrame

public void setFrame(java.awt.Frame f)

getProtocol

public Protocol getProtocol()

cleanUp

public void cleanUp()
Cleans up the protocol for removal. (disconnect and whatnot)

update

public abstract void update(Obj instance)
informs the protocol obj that one of its configuration options has changed through the ui.
Parameters:
instance - the option that changed.

getName

public java.lang.String getName()
Overrides:
getName in class NormalFolder