Package org.htmlunit.html
Class DoTypeProcessor
java.lang.Object
org.htmlunit.html.DoTypeProcessor
- All Implemented Interfaces:
Serializable
The processor for
HtmlElement.doType(char, boolean)
and HtmlElement.doType(int, boolean).-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanacceptChar(char ch) private static voidadd(StringBuilder newValue, char c, int selectionStart, int selectionEnd) private static voidadd(StringBuilder newValue, String string, int selectionStart, int selectionEnd) (package private) voiddoType(String currentValue, SelectionDelegate selectionDelegate, char c, HtmlElement element, boolean lastType) (package private) voiddoType(String currentValue, SelectionDelegate selectionDelegate, int keyCode, HtmlElement element, boolean lastType) private void
-
Field Details
-
SPECIAL_KEYS_MAP_
-
domNode_
EitherHtmlElementorDomText.
-
-
Constructor Details
-
DoTypeProcessor
DoTypeProcessor(DomNode domNode)
-
-
Method Details
-
doType
void doType(String currentValue, SelectionDelegate selectionDelegate, char c, HtmlElement element, boolean lastType) -
add
-
add
private static void add(StringBuilder newValue, String string, int selectionStart, int selectionEnd) -
typeDone
-
acceptChar
private boolean acceptChar(char ch) -
doType
void doType(String currentValue, SelectionDelegate selectionDelegate, int keyCode, HtmlElement element, boolean lastType)
-