abbot.editor.recorder
Class JComboBoxRecorder

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.JComboBoxRecorder
All Implemented Interfaces:
SemanticEvents

public class JComboBoxRecorder
extends JComponentRecorder

Record basic semantic events you might find on an JComboBox.


Field Summary
 
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
JComboBoxRecorder(Resolver resolver)
           
 
Method Summary
 boolean accept(AWTEvent event)
          Make sure we only operate on a JComboBox.
protected  boolean canMultipleClick()
          Default to waiting for multiple clicks.
protected  Step createSelection(JComboBox combo, int index)
           
protected  Step createStep()
          Add handling for JComponent input-mapped actions.
protected  void init(int recordingType)
           
protected  boolean parseClick(AWTEvent event)
          Parse clicks to cancel the recording if we get a click that's not in the JList (or ESC).
 
Methods inherited from class abbot.editor.recorder.JComponentRecorder
createActionMap, getAction, isMappedEvent, parse, parseActionMapEvent
 
Methods inherited from class abbot.editor.recorder.ComponentRecorder
canDrag, createAWTMenuSelection, createClick, createDrag, createDrop, createInputMethod, createKey, createMenuSelection, createPopupMenuSelection, createWindowEvent, dragStarted, getLocation, getLocationArgument, isClick, isClose, isDragDrop, isKeyTyped, isMenuEvent, isOpen, isToolTip, isWindowEvent, 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
 

Constructor Detail

JComboBoxRecorder

public JComboBoxRecorder(Resolver resolver)
Method Detail

accept

public boolean accept(AWTEvent event)
Make sure we only operate on a JComboBox.

Overrides:
accept in class JComponentRecorder

init

protected void init(int recordingType)
Overrides:
init in class JComponentRecorder

canMultipleClick

protected boolean canMultipleClick()
Description copied from class: ComponentRecorder
Default to waiting for multiple clicks.

Overrides:
canMultipleClick in class ComponentRecorder

parseClick

protected boolean parseClick(AWTEvent event)
Parse clicks to cancel the recording if we get a click that's not in the JList (or ESC).

Overrides:
parseClick in class ComponentRecorder

createStep

protected Step createStep()
Description copied from class: JComponentRecorder
Add handling for JComponent input-mapped actions.

Overrides:
createStep in class JComponentRecorder

createSelection

protected Step createSelection(JComboBox combo,
                               int index)


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

SourceForge