public class ReadOnlyKeyboardHandler extends KeyboardAdaptor
| Constructor and Description |
|---|
ReadOnlyKeyboardHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
handleRepeatableKey(Event event) |
protected void |
moveCaretOutside(com.google.gwt.dom.client.Node node,
boolean before)
Places the caret outside of the specified node, either before or after.
|
protected void |
onDelete(Event event,
Element element)
Deletes a read-only element when it is the only target of the given event.
|
protected void |
onDelete(Event event,
Element element,
Range range,
boolean start)
Deletes a read-only element when it is not the only target of the given event.
|
handleKeyRelease, onKeyDown, onKeyPress, onKeyUpprotected void handleRepeatableKey(Event event)
handleRepeatableKey in class KeyboardAdaptorprotected void onDelete(Event event, Element element)
event - the native event that was firedelement - the read-only element to be deletedprotected void onDelete(Event event, Element element, Range range, boolean start)
event - the native event that was firedelement - the read-only element to be deletedrange - the range that touches the read-only elementstart - true if the start point of the given range is inside the read-only element, false if
the end point is inside the read-only elementprotected void moveCaretOutside(com.google.gwt.dom.client.Node node,
boolean before)
node - a DOM nodebefore - true to place the caret before the given node, false to place it afterCopyright © 2004–2016 XWiki. All rights reserved.