CVSROOT:        /cvs/gnome
Module name:    yarrr
Changes by:     walters 05/03/29 17:21:45

Modified files:
        web/stylesheets: chat.css 
        src/org/gnome/yarrr/xmlrpc: XmlRpcHandler.java 
                                    XmlRpcMarshaller.java 
                                    XmlRpcDemarshaller.java 
        src/com/keypoint: PngEncoderB.java 
        .              : build.xml ChangeLog .classpath 
        web            : topic.jsp topic.js comment.js 
Added files:
        web            : referencableobject.js 

Log message:
2005-03-24  Colin Walters  <[EMAIL PROTECTED]>
Jonathan Blandford  <[EMAIL PROTECTED]>

* PngEncoderB.java: Kill warnings.
* ActiveTopic.java: Extend ReferenceableObject.  This implies lots of changes
such as removal of now-redundant methods such as getLiveComment, etc.
Include a list of ClosedComment objects as well as a Discussion object.
The Discussion object is what holds the Chat now.
signalChanged method now takes a ReferencableObject instead of just a
String.
Convert some System.out.print* to logging.
pollForChanges now takes a String clientid.  This allows us to "cancel"
existing polls when we try a new one.
* Chat.java: Extend ReferencableObject.  addMessage returns current version.
* ClosedComment.java: New class, represents "closed" comment.
* Discussion.java: New class, represents a "discussion", which is a set of
live comments and a chat.  A topic can have multiple discussions.
* LiveComment.java: Extend ReferencableObject.  Remove bits about closing;
this moves into ClosedComment class.
* log4j.properties: New file, has logging stuff.
* ReferencableObject.java: New class; represents an object that can be remoted
over XML-RPC, essentially.
* ReferencableObjectRegistry.java: New class; stores a mapping from strings
(references) to ReferencableObjects.
* Stroke.java: remove call to recursivelyMarshal in marshalling code; this
should be wrong.
* Topic.java: Extend ReferencableObject.  Remove redundant code.
* Whiteboard.java: Extend ReferencableObject.  Remove generated javadoc crap.
* Yarrr.java: Add a mapping from topic names to topics.  Change mapping of
activeTopics from Longs to strings.  Fix up init code to use this as well
as to create some new test objects such as a Discussion etc.  Change
lookupActiveTopic to take Topic.  Add a getRegistry method to return
the ReferencableObjectRegistry.
* YarrrServlet.java: Use new topic lookup machinery.  Get reference to topic
and pass into JSP.
* YarrrXmlRpcMethods.java: Lots of refactoring; now most methods directly take
the object they primarily manipulate as a first parameter, instead of e.g.
an ActiveTopic and an integer id for the object, which we previously used to 
look
up the actual object of interest.
* XmlRpcDemarshaller.java: Extend DemarshallingException to wrap other 
throwables.
* XmlRpcHandler.java: recursivelyMarshal can throw a MarshallingException.  Log
return values.
* XmlRpcMarshaller.java: New MarshallingException.
* comment.js: Subclass from ReferencableObject.  Take container element id and
generate textarea on the fly.
* referencableobject.js: New JavaScript object; basically any object that has an
id which we get from the server.  Also contains a ReferencableObjectRegistry
which is the client-side analog of the server Java class of the same name.
* topic.js: Huge number of changes.  Update to use newer xmlrpc interface.  All
objects now subclass ReferencableObject.  They also generate their own HTML on 
the
fly instead of having bits hardcoded in topic.jsp.  Everything is made entirely
async now.  Hardcoded references to theTopic have been killed.  refresh() is 
killed
in favor of Topic.poll, which dynamically determines which objects the user is
interested in.  Whiteboard stuff is probably broken :)
* topic.jsp: Add referencableobject.js.  Handle topicid being string now.  
Remove
hardcoded HTML bits; all interesting content is now generated dynamically client
side.
* chat.css: Update for new HTML.
* .classpath: Add log4j.
* build.xml: Include log4j.properties file in the WAR.
* Hate javascript debugging.

URL : 
http://cvs.gnome.org/bonsai/cvsquery.cgi?branch=&dir=yarrr&who=walters&date=explicit&mindate=2005-03-29%2017:20&maxdate=2005-03-29%2017:22

_______________________________________________
cvs-commits-list mailing list
cvs-commits-list@gnome.org
http://mail.gnome.org/mailman/listinfo/cvs-commits-list

Reply via email to