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: 07.12.2003 project: WiSer-Framework
039: *
040: * <p>
041: * IUnPanel is a common interface to all panels. A panel is a scrollable area of
042: * the screen which displays other widgets
043: * </p>
044: */
045: public interface IUnPanel {
046: /**
047: * <p>
048: * Sets the background-image of the panel
049: * </p>
050: * <p>
051: *
052: * </p>
053: * <p>
054: *
055: * @param xImg
056: * interface to an image-object
057: * </p>
058: */
059: public void pcmf_setBgImage(IUnImage xImg);
060:
061: /**
062: * <p>
063: * Gets the background-image of the panle
064: * </p>
065: * <p>
066: *
067: * @return interface to the background-image of the panel or null if no
068: * background-image has been set
069: * </p>
070: * <p>
071: * </p>
072: */
073: public IUnImage pcmf_getBgImage();
074:
075: /**
076: * <p>
077: * Enables or disables the scroll capability of the panel
078: * </p>
079: * <p>
080: *
081: * </p>
082: * <p>
083: *
084: * @param xScroll
085: * true enables scrolling, false disables scrolling
086: * </p>
087: */
088:
089: public void pcmf_setScroll(boolean xScroll);
090:
091: /**
092: * <p>
093: * Gets the scroll capability of the panel
094: * </p>
095: * <p>
096: *
097: * </p>
098: * <p>
099: * </p>
100: */
101: public boolean pcmf_getScroll();
102:
103: /**
104: * <p>
105: * Sets the position of a child-widget either in a layout or in absolute pixel coordinates,
106: * depending on the layout settings.
107: * </p>
108: * <p>
109: *
110: * </p>
111: * <p>
112: *
113: * @param xObj
114: * child object to reposition
115: * @param xPos
116: * position in x-direction
117: * @param yPos
118: * position in y-direction
119: * @param xWi
120: * width of the object
121: * @param xHi
122: * height of the object
123: * @param xAlign
124: * alignment of the object as string "WEST", "EAST", "NORTH",
125: * "SOUTH", "CENTER". For absolute positioning the parameter is not used.
126: * </p>
127: */
128: public void pcmf_setGuiObjPosition(UnComponent xObj, int xPos,
129: int yPos, int xWi, int xHi, String xAlign);
130:
131: /**
132: * <p>
133: * Sets the position of a child-widget either in a layout or in absolute pixel coordinates,
134: * depending on the layout settings.
135: * </p>
136: * <p>
137: *
138: * </p>
139: * <p>
140: *
141: * @param xObj
142: * child object to reposition
143: * @param xPos
144: * position in x-direction
145: * @param yPos
146: * position in y-direction
147: * @param xWi
148: * width of the object
149: * @param xHi
150: * height of the object
151: * @param xAlign
152: * alignment of the object as string "WEST", "EAST", "NORTH",
153: * "SOUTH", "CENTER". For absolute positioning the parameter is not used.
154: * </p>
155: */
156: public void pcmf_setGuiObjPosition(IUnComponent xObj, int xPos,
157: int yPos, int xWi, int xHi, String xAlign);
158:
159: /**
160: * <p>
161: * Sets the position of a child-widget either in a layout or in absolute pixel coordinates
162: * depending on the layout settings.
163: * </p>
164: * <p>
165: *
166: * </p>
167: * <p>
168: *
169: * @param xName
170: * child object to reposition, referenced by its name within the
171: * parent
172: * @param xPos
173: * position in x-direction
174: * @param yPos
175: * position in y-direction
176: * @param xWi
177: * width of the object
178: * @param xHi
179: * height of the object
180: * @param xAlign
181: * alignment of the object as string "WEST", "EAST", "NORTH",
182: * "SOUTH", "CENTER". For absolute positioning the parameter is not used.
183: * </p>
184: */
185: public void pcmf_setGuiObjPosition(String xName, int xPos,
186: int yPos, int xWi, int xHi, String xAlign);
187: }
|