home *** CD-ROM | disk | FTP | other *** search
/ The Net: Ultimate Internet Guide / WWLCD1.ISO / pc / java / unuy2wen / cybcerone / utils / appletlike.java < prev    next >
Encoding:
Java Source  |  1996-08-14  |  1.3 KB  |  65 lines

  1. // Appletlike.java
  2. // 28.02.96
  3. //
  4. // provides some basic Applet-like functions
  5.  
  6. package cybcerone.utils;
  7.  
  8. import java.applet.Applet;
  9. import java.awt.Image;
  10.  
  11. /**
  12.  * This interface is a subset of useful Applet methods.
  13.  */
  14. public interface Appletlike {
  15.  
  16.   /**
  17.    * Shows the given status on the status bar.
  18.    */
  19.   public void showStatus (String newStatus);
  20.  
  21.   /**
  22.    * Retrieves the image in the specified filename, relative
  23.    * to the document base.  By default uses the highest available
  24.    * priority.
  25.    */
  26.   public Image getImage (String imageFileName);
  27.  
  28.   /** 
  29.    * Same as above, but allows the caller to assign a priority.  Highest
  30.    * priority is 0.
  31.    */
  32.   public Image getImage (String imageFileName, int priority);
  33.  
  34.   /**
  35.    * Update yourself with this value.
  36.    */
  37.   public void update (Object updateValue);
  38.  
  39.   /**
  40.    * Returns this panel's id.
  41.    */
  42.   public String getId ();
  43.  
  44.   /**
  45.    * Get's data from a file.
  46.    */
  47.   public void getData (String fname, Literate reader, Appletlike requester);
  48.  
  49.   /**
  50.    * Get's a Vector of Strings from a file.
  51.    */
  52.   public void getData (String fname, Appletlike requester);
  53.  
  54.   /**
  55.    * Sets the cursor shape.
  56.    */
  57.   public void setCursor (int cursorType);
  58.  
  59.   /** Return to default state. */
  60.   public void reset ();
  61.  
  62.   /** Print a message on the initialization screen. */
  63.   public void initMessage (String message);
  64. }
  65.