1 /*
2 * $Id: IHorizontalTextPositionCapability.java,v 1.18 2011/06/16 09:29:40 jbmeslin Exp $
3 *
4 */
5 package org.rcfaces.core.component.capability;
6
7 /**
8 * A string value specifying the position of the text in the component :
9 * <ul>
10 * <li>left</li>
11 * <li>right</li>
12 * </ul>
13 *
14 * @author Fred
15 *
16 */
17 public interface IHorizontalTextPositionCapability {
18
19 int RIGHT_POSITION = 0x08;
20
21 int LEFT_POSITION = 0x10;
22
23 int CENTER_POSITION = 0x20;
24
25 int DEFAULT_POSITION = RIGHT_POSITION;
26
27 int UNKNOWN_POSITION = 0;
28
29 /**
30 * Returns an int value specifying the position of the text in the
31 * component.
32 *
33 * @return 0x08:right|0x10:left
34 */
35 int getTextPosition();
36
37 /**
38 * Sets an int value specifying the position of the text in the component.
39 *
40 * @param position
41 * 0x00:right|0x10:left
42 */
43 void setTextPosition(int position);
44 }