org.xnap.commons.gui.shortcut
Class AbstractShortcut

java.lang.Object
  extended by org.xnap.commons.gui.shortcut.AbstractShortcut
All Implemented Interfaces:
Shortcut
Direct Known Subclasses:
ActionShortcut, DefaultShortcut

public abstract class AbstractShortcut
extends Object
implements Shortcut


Field Summary
 
Fields inherited from interface org.xnap.commons.gui.shortcut.Shortcut
CATEGORY, DESCRIPTION, KEYSTROKE
 
Constructor Summary
AbstractShortcut()
           
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener l)
           
protected  void firePropertChange(String key, Object oldValue, Object newValue)
           
 KeyStroke getKeyStroke()
          Returns the keystroke.
 Object getValue(String key)
           
 void putValue(String key, Object value)
           
 void removePropertyChangeListener(PropertyChangeListener l)
           
 void setKeyStroke(KeyStroke stroke)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractShortcut

public AbstractShortcut()
Method Detail

putValue

public void putValue(String key,
                     Object value)
Specified by:
putValue in interface Shortcut

firePropertChange

protected void firePropertChange(String key,
                                 Object oldValue,
                                 Object newValue)

getValue

public Object getValue(String key)
Specified by:
getValue in interface Shortcut

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener l)
Specified by:
addPropertyChangeListener in interface Shortcut

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener l)
Specified by:
removePropertyChangeListener in interface Shortcut

getKeyStroke

public KeyStroke getKeyStroke()
Description copied from interface: Shortcut
Returns the keystroke.

Specified by:
getKeyStroke in interface Shortcut

setKeyStroke

public void setKeyStroke(KeyStroke stroke)
Specified by:
setKeyStroke in interface Shortcut


Copyright © 2004-2007 XNap Commons Team. All Rights Reserved.