01: /*
02: * Copyright 2000,2005 wingS development team.
03: *
04: * This file is part of wingS (http://wingsframework.org).
05: *
06: * wingS is free software; you can redistribute it and/or modify
07: * it under the terms of the GNU Lesser General Public License
08: * as published by the Free Software Foundation; either version 2.1
09: * of the License, or (at your option) any later version.
10: *
11: * Please see COPYING for the complete licence.
12: */
13: package org.wings;
14:
15: /**
16: * Contains several constants used at various places in wingS.
17: *
18: * @author <a href="mailto:haaf@mercatis.de">Armin Haaf</a>
19: */
20: public interface SConstants {
21: /**
22: * Character to separate epoch id from component id in lowlevel event requests.
23: */
24: char UID_DIVIDER = '-';
25:
26: /**
27: * Component alignment constant: Do not explicitly align.
28: */
29: int NO_ALIGN = -1;
30: /**
31: * Component alignment constant: Align left.
32: */
33: int LEFT_ALIGN = 0;
34: /**
35: * Component alignment constant: Align left.
36: */
37: int LEFT = LEFT_ALIGN;
38: /**
39: * Component alignment constant: Align right.
40: */
41: int RIGHT_ALIGN = 1;
42: /**
43: * Component alignment constant: Align right.
44: */
45: int RIGHT = RIGHT_ALIGN;
46: /**
47: * Component alignment constant: Center align.
48: */
49: int CENTER_ALIGN = 2;
50: /**
51: * Component alignment constant: Center align.
52: */
53: int CENTER = CENTER_ALIGN;
54: /**
55: * Component alignment constant: Block align -- stretch over full width.
56: */
57: int BLOCK_ALIGN = 3;
58: /**
59: * Component alignment constant: Vertically align at top.
60: */
61: int TOP_ALIGN = 4;
62: /**
63: * Component alignment constant: Vertically align at top.
64: */
65: int TOP = TOP_ALIGN;
66: /**
67: * Component alignment constant: Vertically align at bottom.
68: */
69: int BOTTOM_ALIGN = 5;
70: /**
71: * Component alignment constant: Vertically align at bottom.
72: */
73: int BOTTOM = BOTTOM_ALIGN;
74: /**
75: * Component alignment constant: Block align -- stretch over full width.
76: */
77: int JUSTIFY = BLOCK_ALIGN;
78: /**
79: * Align at font baseline. (Images).
80: */
81: int BASELINE = 6;
82:
83: int VERTICAL = 1;
84: int HORIZONTAL = 0;
85:
86: }
|