001: // @@
002: // @@
003: /*
004: * Wi.Ser Framework
005: *
006: * Version: 1.8.1, 20-September-2007
007: * Copyright (C) 2005 Dirk von der Weiden <dvdw@imail.de>
008: *
009: * This library is free software; you can redistribute it and/or
010: * modify it under the terms of the GNU Lesser General Public
011: * License as published by the Free Software Foundation; either
012: * version 2 of the License, or (at your option) any later version.
013: *
014: * This library is distributed in the hope that it will be useful,
015: * but WITHOUT ANY WARRANTY; without even the implied warranty of
016: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
017: * Lesser General Public License for more details.
018: *
019: * You should have received a copy of the GNU Lesser General Public
020: * License along with this library located in LGPL.txt in the
021: * license directory; if not, write to the
022: * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
023: * Boston, MA 02111-1307, USA.
024: *
025: * If this agreement does not cover your requirements, please contact us
026: * via email to get detailed information about the commercial license
027: * or our service offerings!
028: *
029: */
030: // @@
031: package de.ug2t.unifiedGui.interfaces;
032:
033: import de.ug2t.unifiedGui.*;
034:
035: /**
036: * @author Dirk
037: *
038: * date: 27.01.2004 project: WiSer-Framework
039: *
040: * <p>
041: * IUnLayouted gathers the functions for extended layout-control in a
042: * common interface
043: * </p>
044: */
045: public interface IUnLayouted {
046: public static final int LAYOUT_GRIDBAG = 0;
047: public static final int LAYOUT_FLOW = 1;
048: public static final int LAYOUT_ABSOLUTE = 2;
049:
050: /**
051: * <p>
052: * Sets how the container is layouted.
053: *
054: * LAYOUT_GRIDBAG: Use a GridBagLayout LAYOUT_FLOW: Use a FlowLayout
055: * LAYOUT_ABSOLUTE: Use absolute positions in pixel
056: *
057: * These layouts are available in Web and Swing applications and produce quite
058: * similar outputs.
059: * </p>
060: * <p>
061: *
062: * </p>
063: * <p>
064: *
065: * @param xLayout
066: * LAYOUT_GRIDBAG, LAYOUT_FLOW, or LAYOUT_ABSOLUTE
067: * </p>
068: */
069: public void pcmf_setCommonLayout(int xLayout);
070:
071: /**
072: * <p>
073: * Gets how the container is layouted.
074: *
075: * </p>
076: * <p>
077: *
078: * </p>
079: * <p>
080: * @return LAYOUT_GRIDBAG: Use a GridBagLayout LAYOUT_FLOW: Use a FlowLayout
081: * LAYOUT_ABSOLUTE: Use absolute positions in pixel
082: * </p>
083: */
084: public int pcmf_getCommonLayout();
085:
086: /**
087: * <p>
088: * Sets whether the container is layouted or not. If not positions can be set
089: * in pixels, otherwise layout cells are used
090: * </p>
091: * <p>
092: *
093: * @deprecated use pcmf_setCommonLayout instead
094: * </p>
095: * <p>
096: * @param xLayout
097: * true activates layout-management, false disables it
098: * </p>
099: */
100: public void pcmf_setGuiObjNoLayout(boolean xLayout);
101:
102: /**
103: * <p>
104: * Sets the gravity of a component. The meaning is similar to Java Swing
105: * </p>
106: * <p>
107: *
108: * </p>
109: * <p>
110: *
111: * @param xName
112: * component's name in this container
113: * @param xW
114: * gravity in x-direction
115: * @param yW
116: * gravity in y-direction
117: * </p>
118: */
119: public void pcmf_setWeights(String xName, int xW, int yW);
120:
121: /**
122: * <p>
123: * Sets the gravity of a component. The meaning is similar to Java Swing
124: * </p>
125: * <p>
126: *
127: * </p>
128: * <p>
129: *
130: * @param xObj
131: * component in this container
132: * @param xW
133: * gravity in x-direction
134: * @param yW
135: * gravity in y-direction
136: * </p>
137: */
138: public void pcmf_setWeights(UnComponent xObj, int xW, int yW);
139:
140: /**
141: * <p>
142: * Sets the insets of a component in pixel according to the components
143: * cell-borders
144: * </p>
145: * <p>
146: *
147: * </p>
148: * <p>
149: *
150: * @param xObj
151: * component in this container
152: * @param xIns1
153: * top inset
154: * @param xIns2
155: * left inset
156: * @param xIns3
157: * bottom inset
158: * @param xIns4
159: * right inset
160: * </p>
161: */
162: public void pcmf_setInsets(UnComponent xObj, int xIns1, int xIns2,
163: int xIns3, int xIns4);
164:
165: /**
166: * <p>
167: * Sets the insets of a component in pixel according to the components
168: * cell-borders
169: * </p>
170: * <p>
171: *
172: * </p>
173: * <p>
174: *
175: * @param xName
176: * component's name in this container
177: * @param xIns1
178: * top inset
179: * @param xIns2
180: * left inset
181: * @param xIns3
182: * bottom inset
183: * @param xIns4
184: * right inset
185: * </p>
186: */
187: public void pcmf_setInsets(String xName, int xIns1, int xIns2,
188: int xIns3, int xIns4);
189:
190: /**
191: * <p>
192: * Sets the fill paramter of a component. The meaning is similar to Java Swing
193: * </p>
194: * <p>
195: *
196: * </p>
197: * <p>
198: *
199: * @param xName
200: * component's name in this container
201: * @param xH
202: * fill horizontal
203: * @param xV
204: * fill vertical
205: * </p>
206: */
207: public void pcmf_setFill(String xName, boolean xH, boolean xV);
208:
209: /**
210: * <p>
211: * Sets the gravity of a component. The meaning is similar to Java Swing
212: * </p>
213: * <p>
214: *
215: * </p>
216: * <p>
217: *
218: * @param xObj
219: * component in this container
220: * @param xH
221: * fill horizontal
222: * @param xV
223: * fill vertical
224: * </p>
225: */
226: public void pcmf_setFill(UnComponent xObj, boolean xH, boolean xV);
227: }
|