View Javadoc

1   /*
2    * $Id: IFontCapability.java,v 1.18 2011/06/16 09:29:40 jbmeslin Exp $
3    * 
4    */
5   package org.rcfaces.core.component.capability;
6   
7   /**
8    * 
9    * @author Olivier Oeuillot (latest modification by $Author: jbmeslin $)
10   * @version $Revision: 1.18 $ $Date: 2011/06/16 09:29:40 $
11   */
12  public interface IFontCapability {
13  
14      /**
15       * Returns a boolean object (or null) indicating the <i>bold</i> property
16       * for the specified font.
17       * 
18       * @return True|False|null
19       */
20      Boolean getFontBold();
21  
22      /**
23       * Returns a boolean object (or null) indicating the <i>italic</i> property
24       * for the specified font.
25       * 
26       * @return True|False|null
27       */
28      Boolean getFontItalic();
29  
30      /**
31       * Returns a boolean object (or null) indicating the <i>underline</i>
32       * property for the specified font.
33       * 
34       * @return True|False|null
35       */
36      Boolean getFontUnderline();
37  
38      /**
39       * Returns a string value indicating the name of the font used for this
40       * component.
41       * 
42       * @return font name
43       */
44      String getFontName();
45  
46      /**
47       * Returns a string indicating the size to use for the selected font. (or
48       * any other CSS accepted value for font size).
49       * 
50       * @return xx-small|x-small|small|medium|large|x-large|xx-large|smaller|larger|<i>length</i>
51       *         for example 10px|<i>%</i>
52       */
53      String getFontSize();
54  
55      /**
56       * Sets a boolean object (or null) indicating the <i>bold</i> property for
57       * the specified font.
58       * 
59       * @param bold
60       *            True|False|null
61       */
62      void setFontBold(Boolean bold);
63  
64      /**
65       * Sets a boolean object (or null) indicating the <i>italic</i> property
66       * for the specified font.
67       * 
68       * @param italic
69       *            True|False|null
70       */
71      void setFontItalic(Boolean italic);
72  
73      /**
74       * Sets a boolean object (or null) indicating the <i>underline</i> property
75       * for the specified font.
76       * 
77       * @param underline
78       *            True|False|null
79       */
80      void setFontUnderline(Boolean underline);
81  
82      /**
83       * Sets a string value indicating the name of the font used for this
84       * component.
85       * 
86       * @param name
87       *            font name
88       */
89      void setFontName(String name);
90  
91      /**
92       * Sets a string indicating the size to use for the selected font. (or any
93       * other CSS accepted value for font size).
94       * 
95       * @param size
96       *            xx-small|x-small|small|medium|large|x-large|xx-large|smaller|larger|<i>length</i>
97       *            for example 10px|<i>%</i>
98       */
99      void setFontSize(String size);
100 }