(no subject)

sgfdgf ryejt <[email protected]> Thu, 3 Jun 2004 03:44:33 +0200 (CEST)
Newsgroups gmane.comp.java.luxor-xul.user
Message-ID <[email protected]>
Hi Gerald and all,

I have already posted this message in the "developper" forum, but the "user" forum might be more appropriate.

I am trying to create my own container xul tag (let's call it "CustomTag"), which represents a subclass of JInternalFrame.

I have just updated with the beta 8, and one of my problems seems to be fixed: indeed, the add(XulTag tag) method of my CustomTagDef class is invoked.

However, I can see another problem now. As it is a custom tag, the parent XULDef (<XUL>) doesn't add my custom tag to its definition lists (in the XulDef.add(XulTag node) method).

My config file is:

<tagdef name="customtag" class="CustomTagDef" processbody="true"/>

 

My xul code is like:

<XUL>
  <customtag>
    <label .../>
  </customtag>
</XUL>

So when the parsing is done, I find no way to access my CustomTagDef object in order to build the associated object (in my case my custom tag represents an object extending a JInternalFrame).

To access standard xul tag, like "window", this is pretty easy:

XulManager xul = XulManager.getXulManager();
XulDefMap defMap = xul.getDefMap();
Map windowMap = defMap.getWindows();


But how can I access my CustomTagDef object ?

A solution could be, in XulDef.add(XulTag node) :

Replacing:
else
  Xul.SyntaxError.UNSUPPORTED_TAG_INSIDE(node.getElementName(), Xul.Tag.XUL);

By:
else
  _handler.addCustomDef(node)

and implementing addCustomDef in XulDefMap.


What do you think ?

Thanks very much for your help.

 

Julien


		
---------------------------------
Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout !
Créez votre Yahoo! Mail

Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !