Package org.htmlunit.html
Class DoTypeProcessor
- java.lang.Object
-
- org.htmlunit.html.DoTypeProcessor
-
- All Implemented Interfaces:
java.io.Serializable
class DoTypeProcessor extends java.lang.Object implements java.io.SerializableThe processor forHtmlElement.doType(char, boolean)andHtmlElement.doType(int, boolean).
-
-
Field Summary
Fields Modifier and Type Field Description private DomNodedomNode_EitherHtmlElementorDomText.private static java.util.Map<java.lang.Integer,java.lang.Character>SPECIAL_KEYS_MAP_
-
Constructor Summary
Constructors Constructor Description DoTypeProcessor(DomNode domNode)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private booleanacceptChar(char ch)private static voidadd(java.lang.StringBuilder newValue, char c, int selectionStart, int selectionEnd)private static voidadd(java.lang.StringBuilder newValue, java.lang.String string, int selectionStart, int selectionEnd)(package private) voiddoType(java.lang.String currentValue, SelectionDelegate selectionDelegate, char c, HtmlElement element, boolean lastType)(package private) voiddoType(java.lang.String currentValue, SelectionDelegate selectionDelegate, int keyCode, HtmlElement element, boolean lastType)private voidtypeDone(java.lang.String newValue, boolean notifyAttributeChangeListeners)
-
-
-
Field Detail
-
SPECIAL_KEYS_MAP_
private static final java.util.Map<java.lang.Integer,java.lang.Character> SPECIAL_KEYS_MAP_
-
domNode_
private final DomNode domNode_
EitherHtmlElementorDomText.
-
-
Constructor Detail
-
DoTypeProcessor
DoTypeProcessor(DomNode domNode)
-
-
Method Detail
-
doType
void doType(java.lang.String currentValue, SelectionDelegate selectionDelegate, char c, HtmlElement element, boolean lastType)
-
add
private static void add(java.lang.StringBuilder newValue, char c, int selectionStart, int selectionEnd)
-
add
private static void add(java.lang.StringBuilder newValue, java.lang.String string, int selectionStart, int selectionEnd)
-
typeDone
private void typeDone(java.lang.String newValue, boolean notifyAttributeChangeListeners)
-
acceptChar
private boolean acceptChar(char ch)
-
doType
void doType(java.lang.String currentValue, SelectionDelegate selectionDelegate, int keyCode, HtmlElement element, boolean lastType)
-
-