View Javadoc

1   /*
2    * $Id: INumberFormatTypeCapability.java,v 1.3 2007/05/24 12:26:17 oeuillot Exp $
3    */
4   package org.rcfaces.core.component.capability;
5   
6   /**
7    * A string value specifying the data type :
8    * <ul>
9    * <li> number </li>
10   * <li> integer </li>
11   * <li> currency </li>
12   * <li> percent </li>
13   * </ul>
14   * 
15   * @author Olivier Oeuillot (latest modification by $Author: oeuillot $)
16   * @version $Revision: 1.3 $ $Date: 2007/05/24 12:26:17 $
17   */
18  public interface INumberFormatTypeCapability {
19      /**
20       * 
21       */
22      int NUMBER_FORMAT_TYPE = 0;
23  
24      String NUMBER_FORMAT_TYPE_NAME = "number";
25  
26      /**
27       * 
28       */
29      int INTEGER_FORMAT_TYPE = 1;
30  
31      String INTEGER_FORMAT_TYPE_NAME = "integer";
32  
33      /**
34       * 
35       */
36      int CURRENCY_FORMAT_TYPE = 2;
37  
38      String CURRENCY_FORMAT_TYPE_NAME = "currency";
39  
40      /**
41       * 
42       */
43      int PERCENT_FORMAT_TYPE = 3;
44  
45      String PERCENT_FORMAT_TYPE_NAME = "percent";
46  
47      /**
48       * Returns a int value specifying the data type.
49       * 
50       * @return 0:number|1:integer|2:currency|3:percent
51       */
52      int getNumberFormatType();
53  
54      /**
55       * Sets a int value specifying the data type.
56       * 
57       * @param numberFormatType
58       *            0:number|1:integer|2:currency|3:percent
59       */
60      void setNumberFormatType(int numberFormatType);
61  
62  }