kom.gateway
Class Build.KOMactivity

java.lang.Object
  |
  +--java.util.Dictionary
        |
        +--java.util.Hashtable
              |
              +--kom.gateway.KomData
                    |
                    +--kom.gateway.Build.KOMsub
                          |
                          +--kom.gateway.Build.KOMactivity
Direct Known Subclasses:
Build.KOMuser
Enclosing class:
Build

public class Build.KOMactivity
extends Build.KOMsub

Class representing an activity (forum, user, chat etc)

See Also:
Serialized Form

Field Summary
private  Build.KOMmsg[] messages
          Will contain all messages when a complete display is requested
(package private)  java.util.Vector threads
          Message thread objects
 
Fields inherited from class kom.gateway.Build.KOMsub
id, parent
 
Fields inherited from class kom.gateway.KomData
ADDKEYANY, ADDKEYFIRST, ADDKEYLAST
 
Fields inherited from class java.util.Hashtable
count, ENTRIES, entrySet, KEYS, keySet, loadFactor, modCount, serialVersionUID, table, threshold, values, VALUES
 
Constructor Summary
(package private) Build.KOMactivity()
          Constructor
(package private) Build.KOMactivity(java.lang.String ref, java.lang.String cont)
          Constructor
 
Method Summary
private  void allmessages()
          Collects all messages in the activity and displays table of contents
private  java.util.Vector buildThreadEnds()
          Represents contents as a vector of KOMmsg[1], where the sole element of each array is the most recent of the messages in its thread
private  void createvote()
           
private  int dispall(Build.KOMthr thr, Build.KOMmsg ct)
          Shows a thread as part of a complete message list
protected  void dispcont(int[] lim)
          Displays contents of a forum or a user mailbox
private  int[] displimits(java.lang.String r, java.lang.String def)
          Computes contents limits
protected  void dispmenu()
          Displays the standard forum menu items
(package private)  void dispview()
          Displays view (sub-forum) records
(package private)  void expand()
          Fills this object with content (threads)
private  void fullover()
           
protected  void makeemail()
          Defines the "Pemail" value of the activity
 void normal()
          Creates standard part of forum (or other user) page
 void publish(java.lang.String orig)
          Adds activity to database or modifies it in database
private  void updateNewsGroup(java.lang.String upd)
          Updates a Usenet newsgroup
 
Methods inherited from class kom.gateway.Build.KOMsub
commented, dispgen, dispmemb, establishId, istype, mkcont, putid
 
Methods inherited from class kom.gateway.KomData
add, create, debugLog, display, disppriv, errorLog, get, getAllData, getBDATA, getCDATA, getData, getElem, getKeyList, getKeys, getName, getPDATA, getStringValues, getStringVector, getValues, init, isEmpty, mayput, put, put, putBDATA, putCDATA, putData, putfirst, putlast, putPDATA, putValue, qput, remove, setName, setValue, toString
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, readObject, rehash, remove, size, values, writeObject
 
Methods inherited from class java.lang.Object
, finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

threads

java.util.Vector threads
Message thread objects

messages

private Build.KOMmsg[] messages
Will contain all messages when a complete display is requested
Constructor Detail

Build.KOMactivity

Build.KOMactivity()
Constructor

Build.KOMactivity

Build.KOMactivity(java.lang.String ref,
                  java.lang.String cont)
Constructor
Parameters:
ref - Activity id or null
cont - String representation or null
Method Detail

expand

void expand()
Fills this object with content (threads)

buildThreadEnds

private java.util.Vector buildThreadEnds()
Represents contents as a vector of KOMmsg[1], where the sole element of each array is the most recent of the messages in its thread

publish

public void publish(java.lang.String orig)
Adds activity to database or modifies it in database
Overrides:
publish in class Build.KOMsub
Parameters:
orig - Possible original reference

dispmenu

protected void dispmenu()
Displays the standard forum menu items

normal

public void normal()
Creates standard part of forum (or other user) page
Overrides:
normal in class KomData

fullover

private void fullover()

updateNewsGroup

private void updateNewsGroup(java.lang.String upd)
Updates a Usenet newsgroup
Parameters:
upd - Value from "update="

displimits

private int[] displimits(java.lang.String r,
                         java.lang.String def)
Computes contents limits
Parameters:
r - Limits as a String
def - Default for r

makeemail

protected void makeemail()
Defines the "Pemail" value of the activity

allmessages

private void allmessages()
Collects all messages in the activity and displays table of contents

dispall

private int dispall(Build.KOMthr thr,
                    Build.KOMmsg ct)
Shows a thread as part of a complete message list
Parameters:
thr - Thread object
ct - First message in thread
Returns:
count of messages in thread

dispcont

protected void dispcont(int[] lim)
Displays contents of a forum or a user mailbox
Parameters:
lim - int[2] Limits (startindex, count)

dispview

void dispview()
Displays view (sub-forum) records

createvote

private void createvote()