com.github.croesch.micro_debug.gui.settings
Enum KeyStrokes

java.lang.Object
  extended by java.lang.Enum<KeyStrokes>
      extended by com.github.croesch.micro_debug.gui.settings.KeyStrokes
All Implemented Interfaces:
Serializable, Comparable<KeyStrokes>

public enum KeyStrokes
extends Enum<KeyStrokes>

Provides some keystrokes, that may be modified by the user.

Since:
Date: May 25, 2012
Author:
croesch

Enum Constant Summary
ABOUT
          keystroke to visualize the about frame
EXIT
          keystroke to quit the program
HELP
          keystroke to show the help frame
INTERRUPT
          the keystroke to interrupt the running processor
MICRO_STEP
          keystroke to perform a micro step
RESET
          keystroke to reset the processor
RUN
          keystroke to run the debugger
STEP
          keystroke to perform a macro step
 
Method Summary
 KeyStroke stroke()
          Returns the keystroke of this setting.
static KeyStrokes valueOf(String name)
          Returns the enum constant of this type with the specified name.
static KeyStrokes[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ABOUT

public static final KeyStrokes ABOUT
keystroke to visualize the about frame


EXIT

public static final KeyStrokes EXIT
keystroke to quit the program


HELP

public static final KeyStrokes HELP
keystroke to show the help frame


MICRO_STEP

public static final KeyStrokes MICRO_STEP
keystroke to perform a micro step


RESET

public static final KeyStrokes RESET
keystroke to reset the processor


RUN

public static final KeyStrokes RUN
keystroke to run the debugger


STEP

public static final KeyStrokes STEP
keystroke to perform a macro step


INTERRUPT

public static final KeyStrokes INTERRUPT
the keystroke to interrupt the running processor

Method Detail

values

public static KeyStrokes[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (KeyStrokes c : KeyStrokes.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static KeyStrokes valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

stroke

@Nullable
public KeyStroke stroke()
Returns the keystroke of this setting.

Returns:
the keystroke of this setting, created from the value in the properties file.
Since:
Date: May 25, 2012


Copyright © 2012. All Rights Reserved.