001: /*
002: * ====================================================================
003: * The JRefactory License, Version 1.0
004: *
005: * Copyright (c) 2001 JRefactory. All rights reserved.
006: *
007: * Redistribution and use in source and binary forms, with or without
008: * modification, are permitted provided that the following conditions
009: * are met:
010: *
011: * 1. Redistributions of source code must retain the above copyright
012: * notice, this list of conditions and the following disclaimer.
013: *
014: * 2. Redistributions in binary form must reproduce the above copyright
015: * notice, this list of conditions and the following disclaimer in
016: * the documentation and/or other materials provided with the
017: * distribution.
018: *
019: * 3. The end-user documentation included with the redistribution,
020: * if any, must include the following acknowledgment:
021: * "This product includes software developed by the
022: * JRefactory (http://www.sourceforge.org/projects/jrefactory)."
023: * Alternately, this acknowledgment may appear in the software itself,
024: * if and wherever such third-party acknowledgments normally appear.
025: *
026: * 4. The names "JRefactory" must not be used to endorse or promote
027: * products derived from this software without prior written
028: * permission. For written permission, please contact seguin@acm.org.
029: *
030: * 5. Products derived from this software may not be called "JRefactory",
031: * nor may "JRefactory" appear in their name, without prior written
032: * permission of Chris Seguin.
033: *
034: * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
035: * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
036: * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
037: * DISCLAIMED. IN NO EVENT SHALL THE CHRIS SEGUIN OR
038: * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
039: * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
040: * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
041: * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
042: * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
043: * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
044: * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
045: * SUCH DAMAGE.
046: * ====================================================================
047: *
048: * This software consists of voluntary contributions made by many
049: * individuals on behalf of JRefactory. For more information on
050: * JRefactory, please see
051: * <http://www.sourceforge.org/projects/jrefactory>.
052: */
053: package org.acm.seguin.tools.install;
054:
055: import java.awt.GridBagConstraints;
056: import java.awt.GridBagLayout;
057: import java.awt.Insets;
058:
059: /**
060: * Holds the descriptions of various items
061: *
062: *@author Chris Seguin
063: *@created September 12, 2001
064: */
065: public class DescriptionGroup extends SettingGroup {
066: /**
067: * Constructor for the DescriptionGroup object
068: */
069: public DescriptionGroup() {
070: super ("Descriptions");
071:
072: setLayout(new GridBagLayout());
073:
074: GridBagConstraints constraints = new GridBagConstraints();
075: constraints.gridx = 0;
076: constraints.gridy = 0;
077: constraints.gridwidth = 1;
078: constraints.gridheight = 1;
079: constraints.weightx = 1.0;
080: constraints.weighty = 1.0;
081: constraints.anchor = constraints.WEST;
082: constraints.fill = constraints.NONE;
083: constraints.insets = new Insets(5, 5, 5, 5);
084: constraints.ipadx = 0;
085: constraints.ipady = 0;
086: add(new ClassDescrPanel(), constraints);
087:
088: constraints.gridy++;
089: add(createDivider(), constraints);
090:
091: constraints.gridy++;
092: add(new InterfaceDescrPanel(), constraints);
093:
094: constraints.gridy++;
095: add(createDivider(), constraints);
096:
097: constraints.gridy++;
098: add(new ConstructorDescrPanel(), constraints);
099:
100: constraints.gridy++;
101: add(createDivider(), constraints);
102:
103: constraints.gridy++;
104: add(new MethodDescrPanel(), constraints);
105:
106: constraints.gridy++;
107: add(createDivider(), constraints);
108:
109: constraints.gridy++;
110: add(new EnumDescrPanel(), constraints);
111:
112: constraints.gridy++;
113: add(createDivider(), constraints);
114:
115: constraints.gridy++;
116: add(new GetterDescrPanel(), constraints);
117:
118: constraints.gridy++;
119: add(createDivider(), constraints);
120:
121: constraints.gridy++;
122: add(new GetterReturnDescrPanel(), constraints);
123:
124: constraints.gridy++;
125: add(createDivider(), constraints);
126:
127: constraints.gridy++;
128: add(new SetterDescrPanel(), constraints);
129:
130: constraints.gridy++;
131: add(createDivider(), constraints);
132:
133: constraints.gridy++;
134: add(new SetterParamDescrPanel(), constraints);
135:
136: constraints.gridy++;
137: add(createDivider(), constraints);
138:
139: constraints.gridy++;
140: add(new FieldDescrPanel(), constraints);
141:
142: constraints.gridy++;
143: add(createDivider(), constraints);
144:
145: constraints.gridy++;
146: add(new RunDescrPanel(), constraints);
147:
148: constraints.gridy++;
149: add(createDivider(), constraints);
150:
151: constraints.gridy++;
152: add(new MainDescrPanel(), constraints);
153:
154: constraints.gridy++;
155: add(createDivider(), constraints);
156:
157: constraints.gridy++;
158: add(new MainParamDescrPanel(), constraints);
159:
160: constraints.gridy++;
161: add(createDivider(), constraints);
162:
163: constraints.gridy++;
164: add(new AdderDescrPanel(), constraints);
165:
166: constraints.gridy++;
167: add(createDivider(), constraints);
168:
169: constraints.gridy++;
170: add(new AdderParamDescrPanel(), constraints);
171:
172: constraints.gridy++;
173: add(createDivider(), constraints);
174:
175: constraints.gridy++;
176: add(new JunitSetUpDescrPanel(), constraints);
177:
178: constraints.gridy++;
179: add(createDivider(), constraints);
180:
181: constraints.gridy++;
182: add(new JunitTestDescrPanel(), constraints);
183:
184: constraints.gridy++;
185: add(createDivider(), constraints);
186:
187: constraints.gridy++;
188: add(new JunitTearDownDescrPanel(), constraints);
189:
190: constraints.gridy++;
191: add(createDivider(), constraints);
192:
193: constraints.gridy++;
194: add(new JunitSuiteDescrPanel(), constraints);
195:
196: constraints.gridy++;
197: add(createDivider(), constraints);
198:
199: constraints.gridy++;
200: add(new JunitSuiteReturnDescrPanel(), constraints);
201:
202: constraints.gridy++;
203: add(createDivider(), constraints);
204:
205: constraints.gridy++;
206: constraints.fill = constraints.BOTH;
207: add(new TagEditorSettingPanel(), constraints);
208:
209: updateDividers();
210: }
211: }
|