home *** CD-ROM | disk | FTP | other *** search
/ Apple Developer Connection Student Program / ADC Tools Sampler CD Disk 3 1999.iso / Metrowerks CodeWarrior / Java Support / Java_Source / IFC_112 / netscape / application / ExtendedTarget.java < prev    next >
Encoding:
Text File  |  1999-05-28  |  1.5 KB  |  53 lines  |  [TEXT/CWIE]

  1. // ExtendedTarget.java
  2. // By Ned Etcode
  3. // Copyright 1995, 1996, 1997 Netscape Communications Corp.  All rights reserved.
  4.  
  5. package netscape.application;
  6.  
  7. import netscape.util.*;
  8.  
  9. /** Interface enabling a Target to declare the commands it can
  10.   * perform. For example, a TextView implements the ExtendedTarget
  11.   * interface and returns <b>true</b> when asked if it can perform the
  12.   * ExtendedTarget.SET_FONT command. The static strings defined by this
  13.   * interface have special meaning within the IFC library.
  14.   * @see Target
  15.   * @note 1.0 defined cut/copy/paste commands
  16.   */
  17.  
  18.  
  19. public interface ExtendedTarget extends Target {
  20.     /** Returns <b>true</b> if the object can perform <b>command</b>.
  21.       */
  22.     public boolean canPerformCommand(String command);
  23.  
  24.     /** Command to change font to the one passed as the "data" argument. */
  25.     public static final String SET_FONT = "setFont";
  26.  
  27.     /** Command to set the current font in the Font Chooser. */
  28.     public static final String NEW_FONT_SELECTION = "newFontSelection";
  29.  
  30.     /** Command to make the FontChooser visible. */
  31.     public static final String SHOW_FONT_CHOOSER = "showFontChooser";
  32.  
  33.     /** Command to make the ColorChooser visible. */
  34.     public static final String SHOW_COLOR_CHOOSER = "showColorChooser";
  35.  
  36.     /** Command to copy
  37.       *
  38.       */
  39.     public final static String COPY = "copy";
  40.  
  41.     /** Command to cut
  42.       *
  43.       */
  44.     public final static String CUT = "cut";
  45.  
  46.     /** Command to paste
  47.       *
  48.       */
  49.     public final static String PASTE = "paste";
  50. }
  51.  
  52.  
  53.