J
Jim Cobban
I am in the process of adding support for the target attribute of the
"anchor" tag into the help display portion of my application. So I had to
find the value of the target attribute. Looking at the documentation for
JDK 1.4.2 it appears that should be available through the new
HyperlinkEvent.getSourceElement method.
I find it annoying that this method returns javax.swing.text.Element rather
than org.w3c.dom.Element particularly because the former class has an
obscure and over-generalized interface compared to the latter. The
documentation for the former states "It is intended to capture the spirit of
an SGML element." Well if it is intended to capture the spirit of the SGML
element why the h*** didn't they just use the SGML element? Especially
since org.w3c.dom.Element is also part of J2SE 1.4.2.
--
Jim Cobban (e-mail address removed)
34 Palomino Dr.
Kanata, ON, CANADA
K2M 1M1
+1-613-592-9438
"anchor" tag into the help display portion of my application. So I had to
find the value of the target attribute. Looking at the documentation for
JDK 1.4.2 it appears that should be available through the new
HyperlinkEvent.getSourceElement method.
I find it annoying that this method returns javax.swing.text.Element rather
than org.w3c.dom.Element particularly because the former class has an
obscure and over-generalized interface compared to the latter. The
documentation for the former states "It is intended to capture the spirit of
an SGML element." Well if it is intended to capture the spirit of the SGML
element why the h*** didn't they just use the SGML element? Especially
since org.w3c.dom.Element is also part of J2SE 1.4.2.
--
Jim Cobban (e-mail address removed)
34 Palomino Dr.
Kanata, ON, CANADA
K2M 1M1
+1-613-592-9438