abbot.editor.recorder
Class JComponentRecorder

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
All Implemented Interfaces:
SemanticEvents
Direct Known Subclasses:
AbstractButtonRecorder, JComboBoxRecorder, JInternalFrameRecorder, JListRecorder, JTabbedPaneRecorder, JTableRecorder, JTextComponentRecorder, JTreeRecorder

public class JComponentRecorder
extends ContainerRecorder

Record basic semantic events you might find on an JComponent.

Watches for events that trigger an action from the component's action map. As of 1.3.1, KEY_TYPED and KEY_RELEASED events can trigger an action.


Field Summary
static int 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
JComponentRecorder(Resolver resolver)
           
 
Method Summary
 boolean accept(AWTEvent event)
          Add handling for JComponent input-mapped actions.
protected  Step createActionMap(JComponent target, String actionKey)
          Create a JComponent input-mapped action invocation.
protected  Step createStep()
          Add handling for JComponent input-mapped actions.
protected  Action getAction(KeyEvent ke)
           
protected  void init(int rtype)
           
protected  boolean isMappedEvent(KeyEvent ke)
           
 boolean parse(AWTEvent event)
          Add handling for JComponent input-mapped actions.
protected  boolean parseActionMapEvent(AWTEvent event)
          Add handling for JComponent input-mapped actions.
 
Methods inherited from class abbot.editor.recorder.ComponentRecorder
canDrag, canMultipleClick, createAWTMenuSelection, createClick, createDrag, createDrop, createInputMethod, createKey, createMenuSelection, createPopupMenuSelection, createWindowEvent, dragStarted, getLocation, getLocationArgument, isClick, isClose, isDragDrop, isKeyTyped, isMenuEvent, isOpen, isToolTip, isWindowEvent, parseClick, parseDrop, 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_ACTION_MAP

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

JComponentRecorder

public JComponentRecorder(Resolver resolver)
Method Detail

init

protected void init(int rtype)
Overrides:
init in class ComponentRecorder

accept

public boolean accept(AWTEvent event)
Add handling for JComponent input-mapped actions.

Overrides:
accept in class ComponentRecorder

getAction

protected Action getAction(KeyEvent ke)

isMappedEvent

protected boolean isMappedEvent(KeyEvent ke)

parse

public boolean parse(AWTEvent event)
Add handling for JComponent input-mapped actions.

Overrides:
parse in class ComponentRecorder

parseActionMapEvent

protected boolean parseActionMapEvent(AWTEvent event)
Add handling for JComponent input-mapped actions.


createStep

protected Step createStep()
Add handling for JComponent input-mapped actions.

Overrides:
createStep in class ComponentRecorder

createActionMap

protected Step createActionMap(JComponent target,
                               String actionKey)
Create a JComponent input-mapped action invocation.



Copyright © 2002-2008 Timothy Wall. All Rights Reserved.
Abbot is hosted on

SourceForge