View Javadoc

1   /*
2    * $Id: IAlignmentCapability.java,v 1.18 2011/06/16 09:29:40 jbmeslin Exp $
3    */
4   package org.rcfaces.core.component.capability;
5   
6   /**
7    * A string that represents the alignement of the data in the component.
8    * <ul>
9    * <li> left </li>
10   * <li> right </li>
11   * <li> center </li>
12   * </ul>
13   * 
14   * @author Olivier Oeuillot (latest modification by $Author: jbmeslin $)
15   * @version $Revision: 1.18 $ $Date: 2011/06/16 09:29:40 $
16   */
17  public interface IAlignmentCapability {
18  	
19  	/**
20  	 *  valid values for Alignment
21  	 *  @see AlignmentNormalizer
22  	 */
23  	String LEFT = "left";
24  	String RIGHT = "right";
25  	String CENTER = "center";
26  
27      /**
28       * Returns a string that represents the alignement of the data in the
29       * component.
30       * 
31       * @return right|left|center
32       */
33      String getAlignment();
34  
35      /**
36       * Sets a string that represents the alignement of the data in the
37       * component.
38       * 
39       * @param textAlignment
40       *            right|left|center
41       */
42      void setAlignment(String textAlignment);
43  }