com.borland.primetime.editor
Class ModalKeymap.ModeStateInfo

java.lang.Object
  |
  +--com.borland.primetime.editor.ModalKeymap.ModeStateInfo
Enclosing class:
ModalKeymap

public static class ModalKeymap.ModeStateInfo
extends java.lang.Object

This class is used to maintain any information about the editor state that may be specific to a particular keymap. Classes deriving from ModalKeymap to do special processing may subclass ModeStateInfo to store any additional information they need.


Field Summary
static int DEFAULT
           
protected  EditorPane editor
           
 int mode
          This member records the mode that this editor instance is in.
 boolean processedKeyPressed
          This member records whether or not the previous KeyPressed event was processed.
 
Constructor Summary
ModalKeymap.ModeStateInfo(EditorPane editor)
          Construct a new ModeStateInfo object with default settings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT

public static final int DEFAULT

editor

protected EditorPane editor

mode

public int mode
This member records the mode that this editor instance is in.

processedKeyPressed

public boolean processedKeyPressed
This member records whether or not the previous KeyPressed event was processed. We need it because hitting a key once actually results in up to three separate KeyEvents, but we don't want to do anything on KeyTyped if we did something on the previous KeyPressed.
Constructor Detail

ModalKeymap.ModeStateInfo

public ModalKeymap.ModeStateInfo(EditorPane editor)
Construct a new ModeStateInfo object with default settings.