On 6/9/14 1:09 PM, "Harbs" <harbs.li...@gmail.com> wrote:
>Here¹s a wacky idea: > >I can leave tables as group elements for managing table cell elements and >formatting inheritance purposes. >I can introduce a TableLeafElement class whose sole purpose is describing >the contents of the table and satisfying getLeaf() calls. I¹d override >getLeaf() for TableElement to return TableLeafElement. Worth a try. > >On Jun 9, 2014, at 10:59 PM, Harbs <harbs.li...@gmail.com> wrote: > >> Bah! >> >> I¹ve been relying on replaceChildren(), findChild(), etc.for >>TableCellElements. >> >> None of that will work if I change TableElement to a leafŠ >> >> I could really use multiple inheritance. >> >> Why was TLF designed that elements are either leaf elements of group >>elements? Couldn¹t elements conceivably be both / either? Even in Flash, the tree consists of containers (Sprite and Shapes) and leaf nodes (Graphics, Bitmaps). I think it can get messy or slow if there are lots of leaves and each one still needs to be checked for children.