org.htmlparser.tags
Class AppletTag
- Cloneable, Node, Serializable, Tag
AppletTag represents an <Applet> tag.
It extends a basic tag by providing accessors to the class, codebase,
archive and parameters.
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 tag with the given name.
|
Enumeration | getParameterNames()- Get an enumeration over the (String) parameter names.
|
void | setAppletClass(String newAppletClass)- Set the
CODE attribute.
|
void | setAppletParams(Hashtable newAppletParams)- Set the enclosed
PARM children.
|
void | setArchive(String newArchive)- Set the
ARCHIVE attribute.
|
void | setCodeBase(String newCodeBase)- Set the
CODEBASE attribute.
|
String | toString()- Output a string representing this applet tag.
|
accept, childAt, children, collectInto, digupStringNode, elements, findPositionOf, findPositionOf, findPositionOf, getChild, getChildCount, getChildrenAsNodeArray, getChildrenHTML, getEndTag, getStringText, getText, putChildrenInto, putEndTagInto, removeChild, searchByName, searchFor, searchFor, searchFor, searchFor, setEndTag, toHtml, toPlainTextString, toString, toString |
accept, breaksFlow, getAttribute, getAttributeEx, getAttributesEx, getEndTag, getEndTagEnders, getEnders, getEndingLineNumber, getIds, getRawTagName, getStartingLineNumber, getTagBegin, getTagEnd, getTagName, getText, getThisScanner, isEmptyXmlTag, isEndTag, removeAttribute, setAttribute, setAttribute, setAttribute, setAttributeEx, setAttributesEx, setEmptyXmlTag, setEndTag, setTagBegin, setTagEnd, setTagName, setText, setThisScanner, toHtml, toPlainTextString, toString |
accept, clone, collectInto, doSemanticAction, getChildren, getEndPosition, getFirstChild, getLastChild, getNextSibling, getPage, getParent, getPreviousSibling, getStartPosition, getText, setChildren, setEndPosition, setPage, setParent, setStartPosition, setText, toHtml, toHtml, toPlainTextString, toString |
AppletTag
public AppletTag()
Create a new applet tag.
createAppletParamsTable
public Hashtable createAppletParamsTable()
Extract the applet PARAM tags from the child list.
- The list of applet parameters (keys and values are String objects).
getAppletClass
public String getAppletClass()
Get the class name of the applet.
- The value of the
CODE attribute.
getAppletParams
public Hashtable getAppletParams()
Get the applet parameters.
- The list of parameter values (keys and values are String objects).
getArchive
public String getArchive()
Get the jar file of the applet.
- The value of the
ARCHIVE attribute, or null if it wasn't specified.
getCodeBase
public String getCodeBase()
Get the code base of the applet.
- The value of the
CODEBASE attribute, or null if it wasn't specified.
getEndTagEnders
public String[] getEndTagEnders()
Return the set of end tag names that cause this tag to finish.
- getEndTagEnders in interface Tag
- getEndTagEnders in interface TagNode
- The names of following end tags that stop further scanning.
getIds
public String[] getIds()
Return the set of names handled by this tag.
- getIds in interface Tag
- getIds in interface TagNode
- The names to be matched that create tags of this type.
getParameter
public String getParameter(String key)
Get the PARAM tag with the given name.
NOTE: This was called (erroneously) getAttribute() in previous versions.
key - The applet parameter name to get.
- The value of the parameter or
null if there is no parameter of that name.
getParameterNames
public Enumeration getParameterNames()
Get an enumeration over the (String) parameter names.
- An enumeration of the
PARAM tag NAME attributes.
setAppletClass
public void setAppletClass(String newAppletClass)
Set the CODE attribute.
newAppletClass - The new applet class.
setAppletParams
public void setAppletParams(Hashtable newAppletParams)
Set the enclosed PARM children.
newAppletParams - The new parameters.
setArchive
public void setArchive(String newArchive)
Set the ARCHIVE attribute.
newArchive - The new archive file.
setCodeBase
public void setCodeBase(String newCodeBase)
Set the CODEBASE attribute.
newCodeBase - The new applet code base.
toString
public String toString()
Output a string representing this applet tag.
- toString in interface Node
- toString in interface CompositeTag
- A string showing the contents of the applet tag.
| © 2005 Derrick Oswald Mai 08, 2008 |
| HTML Parser is an open source library released under LGPL. |  |