|
LPEX 4.2.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.lpex.core.LpexCommonParser
com.ibm.lpex.html.HtmlParser
public class HtmlParser
Document parser for HTML.
Actions and their assigned keys added by this document parser:
Keys already defined (for example, by the active base editor profile and by the user profile) to an action different from nullAction are not redefined in here.
Commands added by this document parser:
Default editor action modified by this document parser:
Parser properties handled directly by this parser:
TODO)href, image, img, table.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
HtmlParser(LpexView lpexView)
Constructor. |
|
| Method Summary | |
|---|---|
String |
getCommentStyleCharacters()
Returns the style characters used for styling comments ("c$"). |
String |
getLanguage()
Returns "HTML", the language supported by this parser. |
protected String |
getPopupItem(String key)
|
protected String |
getPopupItems(int popupLocation)
Returns this parser's contribution to the popup. |
ResourceBundle |
getProfile()
Returns the parser's properties profile resource bundle. |
protected void |
initParser()
Initializes the parser. |
boolean |
isTokenDelimiter(char ch)
Returns true if the specified character is a token delimiter. |
void |
parseAll()
Total parse of the entire document. |
void |
parseElement(int element)
Incremental parse. |
protected void |
propertySet(String key)
Listens to changes to the taskTags parser property in this view. |
static void |
redefineContextHome(LpexView lpexView,
long commentClass)
Convenience utility to redefine the contextHome editor action for the HTML, XML, and XSL document parsers. |
void |
setStyleAttributes()
Defines this parser's style attributes. |
static void |
tagSelection(LpexView v,
String tag)
Adds a <tag> and </tag> pair to the selected text. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HtmlParser(LpexView lpexView)
lpexView - the document view associated with this parser| Method Detail |
|---|
protected void initParser()
initParser in class LpexCommonParserpublic void parseAll()
parseAll in class LpexCommonParserpublic void parseElement(int element)
parseElement in class LpexCommonParserelement - an element affected by a committed change in this viewLpexView.parsePending(int),
LpexView.elementParsed(int),
Total and incremental parsepublic ResourceBundle getProfile()
getProfile in class LpexCommonParserLpexCommonParser.getProperty(java.lang.String),
Parser propertiespublic String getLanguage()
getLanguage in class LpexCommonParserLpexCommonParser.LANGUAGE_HTMLprotected void propertySet(String key)
propertySet in class LpexCommonParserkey - base name of the parser property that was set, for example "autoIndent"LpexCommonParser.setProperty(String,String),
LpexCommonParser.getProperty(java.lang.String),
Parser properties
public static void redefineContextHome(LpexView lpexView,
long commentClass)
protected String getPopupItems(int popupLocation)
getPopupItems in class LpexCommonParserpopupLocation - the location on the pop-up menu of the items
requested, one of: LpexCommonParser.POPUP_TOP, LpexCommonParser.POPUP_FILTERVIEW,
LpexCommonParser.POPUP_SOURCE, LpexCommonParser.POPUP_END
null if noneLpexCommonParser.defineFilterAction(java.lang.String, java.lang.String)protected String getPopupItem(String key)
public void setStyleAttributes()
'_' (layout blanks),
't' (text),
'=' (equal),
'k' (tag name),
'u' (unrecognized tag),
'd' (tag delimiter),
'a' (tag attribute name),
'v' (tag attribute value),
'c' (comment),
'$' (comment task tag),
'e' (error).
public String getCommentStyleCharacters()
getCommentStyleCharacters in class LpexCommonParserpublic boolean isTokenDelimiter(char ch)
true if the specified character is a token delimiter.
isTokenDelimiter in class LpexCommonParserch - character queried, for example ')'LpexCommonParser.getToken(com.ibm.lpex.core.LpexDocumentLocation),
LpexCommonParser.tokenBegin(com.ibm.lpex.core.LpexDocumentLocation),
LpexCommonParser.tokenEnd(com.ibm.lpex.core.LpexDocumentLocation)
public static void tagSelection(LpexView v,
String tag)
v - document viewtag - HTML tag to add, e.g., "b"
|
LPEX 4.2.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||