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 boolean
acceptChar
(char ch) private static void
add
(StringBuilder newValue, char c, int selectionStart, int selectionEnd) private static void
add
(StringBuilder newValue, String string, int selectionStart, int selectionEnd) (package private) void
doType
(String currentValue, SelectionDelegate selectionDelegate, char c, HtmlElement element, boolean lastType) (package private) void
doType
(String currentValue, SelectionDelegate selectionDelegate, int keyCode, HtmlElement element, boolean lastType) private void
-
Field Details
-
SPECIAL_KEYS_MAP_
-
domNode_
EitherHtmlElement
orDomText
.
-
-
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)
-