abbot.editor.recorder
Class JTextComponentRecorder
java.lang.Object
abbot.editor.recorder.SemanticRecorder
abbot.editor.recorder.ComponentRecorder
abbot.editor.recorder.ContainerRecorder
abbot.editor.recorder.JComponentRecorder
abbot.editor.recorder.JTextComponentRecorder
- All Implemented Interfaces:
- SemanticEvents
public class JTextComponentRecorder
- extends JComponentRecorder
Record basic semantic events you might find on an JTextComponent.
Method Summary |
protected Step |
createClick(Component comp,
int x,
int y,
int mods,
int count)
The text component click should click on the text index instead of a
mouse coordinate. |
protected Step |
createDrop(Component comp,
int start,
int end)
|
protected Step |
createStep()
Add handling for JComponent input-mapped actions. |
protected boolean |
dragStarted(Component target,
int x,
int y,
int modifiers,
MouseEvent dragEvent)
Coalesce initial click with subsequent drags to produce a
selection. |
protected void |
init(int rtype)
|
protected boolean |
isMappedEvent(KeyEvent ev)
Don't store the action "default-typed"; store the key event instead. |
protected boolean |
parseDrop(AWTEvent event)
|
Methods inherited from class abbot.editor.recorder.ComponentRecorder |
canDrag, canMultipleClick, createAWTMenuSelection, createDrag, createInputMethod, createKey, createMenuSelection, createPopupMenuSelection, createWindowEvent, getLocation, getLocationArgument, isClick, isClose, isDragDrop, isKeyTyped, isMenuEvent, isOpen, isToolTip, isWindowEvent, parseClick, parseInputMethod, parseKeyEvent, parseMenuSelection, parseWindowEvent, setFinished |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SE_SELECTION
public static final int SE_SELECTION
- See Also:
- Constant Field Values
JTextComponentRecorder
public JTextComponentRecorder(Resolver resolver)
init
protected void init(int rtype)
- Overrides:
init
in class JComponentRecorder
isMappedEvent
protected boolean isMappedEvent(KeyEvent ev)
- Don't store the action "default-typed"; store the key event instead.
- Overrides:
isMappedEvent
in class JComponentRecorder
dragStarted
protected boolean dragStarted(Component target,
int x,
int y,
int modifiers,
MouseEvent dragEvent)
- Coalesce initial click with subsequent drags to produce a
selection.
- Overrides:
dragStarted
in class ComponentRecorder
parseDrop
protected boolean parseDrop(AWTEvent event)
- Overrides:
parseDrop
in class ComponentRecorder
createStep
protected Step createStep()
- Description copied from class:
JComponentRecorder
- Add handling for JComponent input-mapped actions.
- Overrides:
createStep
in class JComponentRecorder
createClick
protected Step createClick(Component comp,
int x,
int y,
int mods,
int count)
- The text component click should click on the text index instead of a
mouse coordinate.
- Overrides:
createClick
in class ComponentRecorder
createDrop
protected Step createDrop(Component comp,
int start,
int end)
- Overrides:
createDrop
in class ComponentRecorder
Copyright © 2002-2008 Timothy Wall. All Rights Reserved.
Abbot is hosted on