01: /*
02: * ====================================================================
03: * The JRefactory License, Version 1.0
04: *
05: * Copyright (c) 2001 JRefactory. All rights reserved.
06: *
07: * Redistribution and use in source and binary forms, with or without
08: * modification, are permitted provided that the following conditions
09: * are met:
10: *
11: * 1. Redistributions of source code must retain the above copyright
12: * notice, this list of conditions and the following disclaimer.
13: *
14: * 2. Redistributions in binary form must reproduce the above copyright
15: * notice, this list of conditions and the following disclaimer in
16: * the documentation and/or other materials provided with the
17: * distribution.
18: *
19: * 3. The end-user documentation included with the redistribution,
20: * if any, must include the following acknowledgment:
21: * "This product includes software developed by the
22: * JRefactory (http://www.sourceforge.org/projects/jrefactory)."
23: * Alternately, this acknowledgment may appear in the software itself,
24: * if and wherever such third-party acknowledgments normally appear.
25: *
26: * 4. The names "JRefactory" must not be used to endorse or promote
27: * products derived from this software without prior written
28: * permission. For written permission, please contact seguin@acm.org.
29: *
30: * 5. Products derived from this software may not be called "JRefactory",
31: * nor may "JRefactory" appear in their name, without prior written
32: * permission of Chris Seguin.
33: *
34: * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
35: * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
36: * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
37: * DISCLAIMED. IN NO EVENT SHALL THE CHRIS SEGUIN OR
38: * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
39: * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
40: * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
41: * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
42: * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
43: * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
44: * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
45: * SUCH DAMAGE.
46: * ====================================================================
47: *
48: * This software consists of voluntary contributions made by many
49: * individuals on behalf of JRefactory. For more information on
50: * JRefactory, please see
51: * <http://www.sourceforge.org/projects/jrefactory>.
52: */
53: package org.acm.seguin.tools.install;
54:
55: /**
56: * Determines the order of the modifiers
57: *
58: *@author Chris Seguin
59: *@created June 10, 2002
60: */
61: public class ModifierOrderPanel extends OptionPanel {
62: /**
63: * Constructor for the ModifierOrderPanel object
64: */
65: public ModifierOrderPanel() {
66: super ();
67: addDescription("What order should the modifiers (static, public, final, ...) be in?");
68: addOption("alphabetical",
69: "Public/protected/private followed by the rest in alphabetical order");
70: addOption("standard",
71: "In order according to the java language specification");
72: addControl();
73: }
74:
75: /**
76: * Gets the key attribute of the ModifierOrderPanel object
77: *
78: *@return The key value
79: */
80: public String getKey() {
81: return "modifier.order";
82: }
83:
84: /**
85: * Gets the initialValue attribute of the ModifierOrderPanel object
86: *
87: *@return The initialValue value
88: */
89: protected String getInitialValue() {
90: return "alphabetical";
91: }
92: }
|