net.sf.sdedit.editor
Class Shortcuts

java.lang.Object
  extended by net.sf.sdedit.editor.Shortcuts

public class Shortcuts
extends Object

Utility class that manages strings describing shortcut key combinations for invoking actions that appear in a menu.

Author:
Markus Strauch

Field Summary
static int CLEAR
           
static int CLOSE
           
static int CLOSE_ALL
           
static int DIAGRAM_CONFIGURATION
           
static int ENABLE_THREADS
           
static int EXPORT
           
static int EXPORT_IMAGE
           
static int FILTER
           
static int FULL_SCREEN
           
static int GLOBAL_CONFIGURATION
           
static int HELP
           
static int NARROW
           
static int NEW
           
static int OPEN
           
static int PRINT
           
static int QUIT
           
static int REDO
           
static int REDRAW
           
static int SAVE
           
static int SAVE_AS
           
static int SPLIT_LEFT_RIGHT
           
static int SPLIT_TOP_BOTTOM
           
static int UNDO
           
static int WIDEN
           
 
Method Summary
static String getShortcut(int key)
          Returns a description of the shortcut for an action identified by a certain key (see this class' public static final attributes), enclosed by square brackets and thus fitting the requirements for names of actions that are being added to a MenuBar.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLEAR

public static final int CLEAR
See Also:
Constant Field Values

GLOBAL_CONFIGURATION

public static final int GLOBAL_CONFIGURATION
See Also:
Constant Field Values

DIAGRAM_CONFIGURATION

public static final int DIAGRAM_CONFIGURATION
See Also:
Constant Field Values

HELP

public static final int HELP
See Also:
Constant Field Values

OPEN

public static final int OPEN
See Also:
Constant Field Values

NEW

public static final int NEW
See Also:
Constant Field Values

CLOSE_ALL

public static final int CLOSE_ALL
See Also:
Constant Field Values

CLOSE

public static final int CLOSE
See Also:
Constant Field Values

QUIT

public static final int QUIT
See Also:
Constant Field Values

SAVE

public static final int SAVE
See Also:
Constant Field Values

SAVE_AS

public static final int SAVE_AS
See Also:
Constant Field Values

EXPORT_IMAGE

public static final int EXPORT_IMAGE
See Also:
Constant Field Values

WIDEN

public static final int WIDEN
See Also:
Constant Field Values

NARROW

public static final int NARROW
See Also:
Constant Field Values

UNDO

public static final int UNDO
See Also:
Constant Field Values

REDO

public static final int REDO
See Also:
Constant Field Values

FULL_SCREEN

public static final int FULL_SCREEN
See Also:
Constant Field Values

FILTER

public static final int FILTER
See Also:
Constant Field Values

SPLIT_LEFT_RIGHT

public static final int SPLIT_LEFT_RIGHT
See Also:
Constant Field Values

SPLIT_TOP_BOTTOM

public static final int SPLIT_TOP_BOTTOM
See Also:
Constant Field Values

PRINT

public static final int PRINT
See Also:
Constant Field Values

REDRAW

public static final int REDRAW
See Also:
Constant Field Values

EXPORT

public static final int EXPORT
See Also:
Constant Field Values

ENABLE_THREADS

public static final int ENABLE_THREADS
See Also:
Constant Field Values
Method Detail

getShortcut

public static final String getShortcut(int key)
Returns a description of the shortcut for an action identified by a certain key (see this class' public static final attributes), enclosed by square brackets and thus fitting the requirements for names of actions that are being added to a MenuBar.

See also javax.swing.Keystroke#getKeyStroke(java.lang.String).

Parameters:
key - a key identifying an action
Returns:
a description of the shortcut for an action identified by a certain key, enclosed by square brackets


Copyright © 2011. All Rights Reserved.