public class JComponentRecorder extends ContainerRecorder
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.
| Modifier and Type | Field and Description |
|---|---|
static int |
SE_ACTION_MAP |
events| Constructor and Description |
|---|
JComponentRecorder(Resolver resolver) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(java.awt.AWTEvent event)
Add handling for JComponent input-mapped actions.
|
protected Step |
createActionMap(javax.swing.JComponent target,
java.lang.String actionKey)
Create a JComponent input-mapped action invocation.
|
protected Step |
createStep()
Add handling for JComponent input-mapped actions.
|
protected javax.swing.Action |
getAction(java.awt.event.KeyEvent ke) |
protected void |
init(int rtype) |
protected boolean |
isMappedEvent(java.awt.event.KeyEvent ke) |
boolean |
parse(java.awt.AWTEvent event)
Add handling for JComponent input-mapped actions.
|
protected boolean |
parseActionMapEvent(java.awt.AWTEvent event)
Add handling for JComponent input-mapped actions.
|
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, setFinishedaddActionListener, getRecordingType, getResolver, getStep, isFinished, record, setRecordingType, setStatus, setSteppublic static final int SE_ACTION_MAP
public JComponentRecorder(Resolver resolver)
protected void init(int rtype)
init in class ComponentRecorderpublic boolean accept(java.awt.AWTEvent event)
accept in class ComponentRecorderprotected javax.swing.Action getAction(java.awt.event.KeyEvent ke)
protected boolean isMappedEvent(java.awt.event.KeyEvent ke)
public boolean parse(java.awt.AWTEvent event)
parse in class ComponentRecorderprotected boolean parseActionMapEvent(java.awt.AWTEvent event)
protected Step createStep()
createStep in class ComponentRecorderprotected Step createActionMap(javax.swing.JComponent target, java.lang.String actionKey)
Abbot is hosted on