Added new method :
public Object PlugletTagInfo.getDOMElement(); (It is possible to use JavaDOM from pluglets now.) a=idk@eng.sun.com r=sdv@sparc.spb.su git-svn-id: svn://10.0.0.236/trunk@60968 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -39,4 +39,22 @@ public interface PlugletTagInfo {
|
||||
* @return Returns the value of the named attribute as a <code>String</code>.
|
||||
*/
|
||||
public String getAttribute(String name);
|
||||
|
||||
/**
|
||||
* Returns the DOM element corresponding to the tag which references
|
||||
* this pluglet in the document.
|
||||
*
|
||||
* REMINDERS:
|
||||
* <ul>
|
||||
* <li> You need to have JavaDOM installed.
|
||||
* (see http://www.mozilla.org/projects/blacwood/dom)
|
||||
* </li>
|
||||
* <li>
|
||||
* You need to cast return value to org.w3c.dom.Element
|
||||
* </li>
|
||||
* </ul>
|
||||
* @return Return org.w3c.dom.Element correspondig to the tag
|
||||
*/
|
||||
public Object getDOMElement();
|
||||
}
|
||||
|
||||
|
||||
@@ -52,6 +52,7 @@ public class PlugletTagInfo2Impl implements PlugletTagInfo2 {
|
||||
}
|
||||
return result;
|
||||
}
|
||||
public native Object getDOMElement();
|
||||
public native String getParameter(String name);
|
||||
/* Get the type of the HTML tag that was used ot instantiate this
|
||||
* pluglet. Currently supported tags are EMBED, APPLET and OBJECT.
|
||||
|
||||
Reference in New Issue
Block a user