org.xnap.gui.shortcut
Class DefaultShortcut

java.lang.Object
  extended by org.xnap.gui.shortcut.DefaultShortcut
All Implemented Interfaces:
Shortcut

public class DefaultShortcut
extends java.lang.Object
implements Shortcut


Constructor Summary
DefaultShortcut(javax.swing.KeyStroke defaultKeyStroke, java.lang.String description, java.lang.String prefsKey)
           
DefaultShortcut(javax.swing.KeyStroke defaultKeyStroke, java.lang.String category, java.lang.String description, java.lang.String prefsKey)
           
DefaultShortcut(javax.swing.KeyStroke defaultKeyStroke, java.lang.String category, java.lang.String description, java.lang.String prefsKey, PreferencesProvider prefs)
           
 
Method Summary
 java.lang.String getCategory()
          Returns the parent category.
 javax.swing.KeyStroke getDefaultKeyStroke()
          Returns a keystroke.
 java.lang.String getDescription()
           
 java.lang.String getKey()
           
 javax.swing.KeyStroke getKeyStroke()
          Returns a keystroke.
 void setKeyStroke(javax.swing.KeyStroke stroke)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultShortcut

public DefaultShortcut(javax.swing.KeyStroke defaultKeyStroke,
                       java.lang.String category,
                       java.lang.String description,
                       java.lang.String prefsKey,
                       PreferencesProvider prefs)

DefaultShortcut

public DefaultShortcut(javax.swing.KeyStroke defaultKeyStroke,
                       java.lang.String category,
                       java.lang.String description,
                       java.lang.String prefsKey)

DefaultShortcut

public DefaultShortcut(javax.swing.KeyStroke defaultKeyStroke,
                       java.lang.String description,
                       java.lang.String prefsKey)
Method Detail

getCategory

public java.lang.String getCategory()
Description copied from interface: Shortcut
Returns the parent category.

Specified by:
getCategory in interface Shortcut

getKey

public java.lang.String getKey()

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface Shortcut

getDefaultKeyStroke

public javax.swing.KeyStroke getDefaultKeyStroke()
Description copied from interface: Shortcut
Returns a keystroke.

Specified by:
getDefaultKeyStroke in interface Shortcut

getKeyStroke

public javax.swing.KeyStroke getKeyStroke()
Description copied from interface: Shortcut
Returns a keystroke.

Specified by:
getKeyStroke in interface Shortcut

setKeyStroke

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


Copyright © 2001-2005 XNap Team. All Rights Reserved.