abbot.editor.recorder
Class JTextComponentRecorder

java.lang.Object
  extended by abbot.editor.recorder.SemanticRecorder
      extended by abbot.editor.recorder.ComponentRecorder
          extended by abbot.editor.recorder.ContainerRecorder
              extended by abbot.editor.recorder.JComponentRecorder
                  extended by abbot.editor.recorder.JTextComponentRecorder
All Implemented Interfaces:
SemanticEvents

public class JTextComponentRecorder
extends JComponentRecorder

Record basic semantic events you might find on an JTextComponent.


Field Summary
static int SE_SELECTION
           
 
Fields inherited from class abbot.editor.recorder.JComponentRecorder
SE_ACTION_MAP
 
Fields inherited from class abbot.editor.recorder.SemanticRecorder
events
 
Fields inherited from interface abbot.editor.recorder.SemanticEvents
SE_ANY, SE_CLICK, SE_DRAG, SE_DROP, SE_IM, SE_KEY, SE_MENU, SE_NONE, SE_TEXT, SE_WINDOW
 
Constructor Summary
JTextComponentRecorder(Resolver resolver)
           
 
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.JComponentRecorder
accept, createActionMap, getAction, parse, parseActionMapEvent
 
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 abbot.editor.recorder.SemanticRecorder
addActionListener, getRecordingType, getResolver, getStep, isFinished, record, setRecordingType, setStatus, setStep
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SE_SELECTION

public static final int SE_SELECTION
See Also:
Constant Field Values
Constructor Detail

JTextComponentRecorder

public JTextComponentRecorder(Resolver resolver)
Method Detail

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

SourceForge