RE: [Htmlparser-developer] Label Tag
Brought to you by:
derrickoswald
From: <dha...@or...> - 2003-04-28 06:38:04
|
Hi Somik, > You need to evolve the LabelTag interface, to have setLabel - which maps on > to the children of the label tag. Setting the text involves creation of > string nodes and adding them as children to the label (don't forget to > delete the previous children). I've added getChildren() to CompositeTag to > help you out. Well, I think I am understanding the Parser better. >> Also the following is required: >> 1. Obviously toHtml() must consider the changed text. > Nope. toHtml() considers the internal tag representation alone. You should > map to that in the specific tag code. Can you tell me what you mean by "internal tag representation". What you are saying is that basically I need to write toHtml() in the LabelTag class the way it should be. >> 2. LabelTag should have setLabel() method synoymous to getLabel() which >> internally calls setText() of Tag class. > Yes- it will be great if you can write setLabel() - and no, it should not > call setText(). Well so basically I will have to create StringNodes and try to set that as the label. Sounds interesting. Will definitely try it out. Regards, Dhaval |