Here is the the method as it is now:
public Table addElement(Element element)
{
addElementToRegistry(element);
return(this);
}
Would it not be as easy as changing it to this:
public Table addElement(Element element)
{
addElementToRegistry(element);
return(element); //replace *this* with *element* (which is the
newly added element)
}
Is that what you need?
-----Original Message-----
How much of the upset would be to return Element from addElement,
removeElement and other methods that normally return the more specific
class(A, Html, Table etc.)?
--
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]