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

  1. //
  2. // (C) Copyright 1995 - 1999 Microsoft Corporation.  All rights reserved.
  3. //
  4. import com.ms.ui.event.*;
  5.  
  6. /**
  7.  *    Some classes don't support action listeners. This interface provides
  8.  *    methods that will allow limited support of action listeners. This is
  9.  *    made for interaction with CommandFeature by objects which don't support
  10.  *    action listeners. See JNoteContextMenu for an example of how to use
  11.  *    this interface.
  12.  *
  13.  *    @see    JNoteContextMenu
  14.  *    @see    CommandFeature
  15.  *
  16.  *    @version    1.0, 8/14/97
  17.  */
  18.  
  19. public interface IActionTalker 
  20. {
  21.     /**
  22.      *    Adds a Action listener object (one which implements IUIActionListener)
  23.      *    to the ITextOperationTargetExt object.
  24.      *
  25.      *    @param    l    The object which will listen to Action events from this object.
  26.      */
  27.     public void addActionListener(IUIActionListener l);
  28.  
  29.     /**
  30.      *    Removes the Action listener object from the ITextOperationTargetExt object.
  31.      *
  32.      *    @param    l    The object to remove an Action listener from.
  33.      */
  34.     public void removeActionListener(IUIActionListener l);
  35.  
  36. }
  37.  
  38.