|
SWT LPEX v3.0.4 |
|||||||||||
| 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
Document parser for HTML.
Actions and their assigned keys added by this document parser:
Keys already defined (e.g., by the active base profile) to an action different from nullAction are not redefined in here.
Command added by this document parser:
Default editor action modified by this document parser:
Template expansion (Ctrl+R) for an empty document and for the following keywords is provided in this parser's Profile.properties:
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
HtmlParser(LpexView lpexView)
Constructor for the parser. |
|
| Method Summary | |
|---|---|
static int |
contextStartPosition(LpexView lpexView,
long commentClass)
Returns the start of text in the current element of the specified view. |
String |
getCommentStyleCharacters()
Returns the style character used for styling comments ("c"). |
String |
getLanguage()
Returns "HTML", the language supported by this parser. |
protected String |
getPopupItems(int popupLocation)
Returns parser's contribution to the popup. |
ResourceBundle |
getProfile()
Returns the parser's properties profile resource bundle. |
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. |
void |
setStyleAttributes()
Defines 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 |
public void parseAll()
parseAll in class LpexCommonParserpublic void parseElement(int element)
parseElement in class LpexCommonParserelement - the (first) element whose committed change triggered the
parse, or the element that precedes/follows a deleted
block. The parser may identify other neighbouring
elements that will have to be reparsed as a unitLpexView.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_HTML
public static int contextStartPosition(LpexView lpexView,
long commentClass)
This method is only suitable for the HTML, XML, and XSL document parsers.
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)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),
'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)
public static void tagSelection(LpexView v,
String tag)
v - document viewtag - HTML tag to add, e.g., "b"
|
SWT LPEX v3.0.4 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||