|
HTML Parser Home Page | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.htmlparser.AbstractNode
org.htmlparser.lexer.nodes.TagNode
org.htmlparser.tags.Tag
org.htmlparser.tags.CompositeTag
org.htmlparser.tags.AppletTag
AppletTag represents an <Applet> tag. It extends a basic tag by providing accessors to the class, codebase, archive and parameters.
| Field Summary |
| Fields inherited from class org.htmlparser.tags.CompositeTag |
mDefaultScanner, mEndTag |
| Fields inherited from class org.htmlparser.lexer.nodes.TagNode |
breakTags, mAttributes |
| Fields inherited from class org.htmlparser.AbstractNode |
children, mPage, nodeBegin, nodeEnd, parent |
| Constructor Summary | |
AppletTag()
Create a new applet tag. |
|
| Method Summary | |
Hashtable |
createAppletParamsTable()
Extract the applet PARAM tags from the child list. |
String |
getAppletClass()
Get the class name of the applet. |
Hashtable |
getAppletParams()
Get the applet parameters. |
String |
getArchive()
Get the jar file of the applet. |
String |
getCodeBase()
Get the code base of the applet. |
String[] |
getEndTagEnders()
Return the set of end tag names that cause this tag to finish. |
String[] |
getIds()
Return the set of names handled by this tag. |
String |
getParameter(String key)
Get the PARAM |
Enumeration |
getParameterNames()
Get an enumeration over the (String) parameter names. |
void |
setAppletClass(String newAppletClass)
Set the CODE |
void |
setAppletParams(Hashtable newAppletParams)
Set the enclosed PARM |
void |
setArchive(String newArchive)
Set the ARCHIVE |
void |
setCodeBase(String newCodeBase)
Set the CODEBASE |
String |
toString()
Output a string representing this applet tag. |
| Methods inherited from class org.htmlparser.tags.CompositeTag |
accept, childAt, children, collectInto, digupStringNode, elements, findPositionOf, findPositionOf, findPositionOf, getChild, getChildCount, getChildrenAsNodeArray, getChildrenHTML, getEndTag, getStartTag, getStringText, getText, putChildrenInto, putEndTagInto, removeChild, searchByName, searchFor, searchFor, searchFor, searchFor, setEndTag, setStartTag, toHtml, toPlainTextString, toString |
| Methods inherited from class org.htmlparser.tags.Tag |
accept, clone, getEnders, getThisScanner, setThisScanner |
| Methods inherited from class org.htmlparser.lexer.nodes.TagNode |
breaksFlow, getAttribute, getAttributeEx, getAttributes, getAttributesEx, getEndingLineNumber, getParsed, getRawTagName, getStartingLineNumber, getTagBegin, getTagEnd, getTagName, isEmptyXmlTag, isEndTag, removeAttribute, setAttribute, setAttribute, setAttribute, setAttributes, setAttributesEx, setEmptyXmlTag, setTagBegin, setTagEnd, setTagName, setText |
| Methods inherited from class org.htmlparser.AbstractNode |
doSemanticAction, elementBegin, elementEnd, getChildren, getEndPosition, getPage, getParent, getStartPosition, setChildren, setEndPosition, setPage, setParent, setStartPosition, toHTML |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AppletTag()
| Method Detail |
public String[] getIds()
getIds in class Tagpublic String[] getEndTagEnders()
getEndTagEnders in class Tagpublic Hashtable createAppletParamsTable()
PARAM tags from the child list.
public String getAppletClass()
CODE attribute.public Hashtable getAppletParams()
public String getArchive()
ARCHIVE attribute, or null if it wasn't specified.public String getCodeBase()
CODEBASE attribute, or null if it wasn't specified.public String getParameter(String key)
PARAM tag with the given name.
NOTE: This was called (erroneously) getAttribute() in previous versions.
- Overrides:
getParameter in class TagNode
- Parameters:
key - The applet parameter name to get.
- Returns:
- The value of the parameter or
null if there is no parameter of that name.
public Enumeration getParameterNames()
PARAM tag NAME attributes.public void setAppletClass(String newAppletClass)
CODE attribute.
- Parameters:
newAppletClass - The new applet class.
public void setAppletParams(Hashtable newAppletParams)
PARM children.
- Parameters:
newAppletParams - The new parameters.
public void setArchive(String newArchive)
ARCHIVE attribute.
- Parameters:
newArchive - The new archive file.
public void setCodeBase(String newCodeBase)
CODEBASE attribute.
- Parameters:
newCodeBase - The new applet code base.
public String toString()
toString in interface NodetoString in class CompositeTag
|
© 2004 Somik Raha Mar 14, 2004
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||