home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 39 / IOPROG_39.ISO / SOFT / sdkjava40.exe / data1.cab / fg_Samples / Samples / afc11 / JNotepad / src / JNoteKeyFeature.java < prev    next >
Encoding:
Java Source  |  2000-05-04  |  1.3 KB  |  41 lines

  1. /*
  2.  * (C) Copyright 1995 - 1999 Microsoft Corporation.  All rights reserved.
  3. */
  4. import KeyFeature;
  5. import com.ms.ui.event.*;
  6. /**
  7.  *    Class to wrap KeyFeature's key listener events a little
  8.  *    and give key features a little easier access to key events.
  9.  *    <p>
  10.  *    Gives default implementations for the less important keyPressed()
  11.  *    and keyReleased() methods. This is an abstract class; subclass it and
  12.  *    add functionality before using.
  13.  *
  14.  *    @see    KeyFeature
  15.  *    @see    ITextFeature
  16.  *
  17.  *    @version    1.0, 7/21/97
  18.  */
  19. public abstract class JNoteKeyFeature extends KeyFeature{
  20. /**
  21.  *    Called when a key is pressed but before it
  22.  *    is released. Does nothing in this class. Part of the IUIKeyListener interface. 
  23.  *
  24.  *    @param    ke    Key event being processed.
  25.  */
  26.     public synchronized void keyPressed(UIKeyEvent ke){}
  27. /**
  28.  *    Called when a key is released. Does nothing in this class.
  29.  *    Part of the IUIKeyListener interface.
  30.  *
  31.  *    @param    ke    Key event being processed.
  32.  */    
  33.     public synchronized void keyReleased(UIKeyEvent ke){}
  34. /**
  35.  *    Called when a key is typed (after it is released).
  36.  *    Does nothing in this class. Part of the IUIKeyListener interface.
  37.  *
  38.  *    @param    ke    Key event being processed.
  39.  */    
  40.     public synchronized void keyTyped(UIKeyEvent ke){}
  41. }