home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 39 / IOPROG_39.ISO / SOFT / sdkjava40.exe / data1.cab / fg_Samples / Samples / WFC / SimpleOCXControl / SimpComp / DrawingMode.java next >
Encoding:
Java Source  |  2000-05-04  |  1.1 KB  |  40 lines

  1. package SimpComp ;
  2. import com.ms.wfc.core.*;
  3.  
  4. /**
  5.  * DrawingMode
  6.  * 
  7.  * The control can be drawn in various ways. This enumeration lets you 
  8.  * control the way in which it is drawn 
  9.  */
  10. public class DrawingMode extends Enum {
  11.     
  12.     /**
  13.      * Indicates that the control should be drawn normally - the default
  14.      */
  15.     public static final int         CALM              = 0 ;
  16.  
  17.     /**
  18.      * Indicates that the control should be drawn by reversing the background 
  19.      * and foreground colors
  20.      */
  21.     public static final int         AWKWARD             = 1 ;
  22.  
  23.     /**
  24.      * Indicates that the control should be drawn with a red background 
  25.      */
  26.     public static final int         ANGRY                = 2 ;
  27.  
  28.  
  29.     /**
  30.      * Answer true if the given value is valid within this enumeration.
  31.      * 
  32.      * @param value   the enumeration value to check
  33.      * 
  34.      * @return  <b>boolean</b> true if the value is a member of this enum
  35.      */
  36.     public static boolean valid(int value) {
  37.         return (value >= 0 && value <= 2);
  38.     }        
  39. }
  40.