© 2006-2007 ETH Zurich

org.ximtec.igesture.geco.gui.action
Class LoadGestureSetAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.sigtec.graphix.widget.BasicAction
          extended by org.ximtec.igesture.geco.gui.action.LoadGestureSetAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action

public class LoadGestureSetAction
extends org.sigtec.graphix.widget.BasicAction

Loads a gesture set

Version:
0.9, Nov 20, 2007
Author:
Michele Croci, mcroci@gmail.com, Beat Signer, signer@inf.ethz.ch
See Also:
Serialized Form

Field Summary
static String KEY
          The key used to retrieve action details from the resource bundle.
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
LoadGestureSetAction(MainView mainView)
           
 
Method Summary
 void actionPerformed(ActionEvent event)
          Opens a dialog to allow the user to choose a gesture set.
 GestureSet loadGestureSet(File file)
          Loads the gesture set.
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY

public static final String KEY
The key used to retrieve action details from the resource bundle.

See Also:
Constant Field Values
Constructor Detail

LoadGestureSetAction

public LoadGestureSetAction(MainView mainView)
Method Detail

actionPerformed

public void actionPerformed(ActionEvent event)
Opens a dialog to allow the user to choose a gesture set.

Parameters:
event - the action event.

loadGestureSet

public GestureSet loadGestureSet(File file)
Loads the gesture set.

Parameters:
file - the file containing the gesture set to be loaded.

© 2006-2007 ETH Zurich

Copyright © 2007-2010 Global Information Systems Group, ETH Zurich. All Rights Reserved.