KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > form > RADFormContainer


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20
21 package org.netbeans.modules.form;
22
23 //import org.netbeans.modules.form.forminfo.FormInfo;
24

25 /**
26  *
27  * @author Ian Formanek
28  */

29 public class RADFormContainer extends RADContainer implements FormContainer {
30
31     /** The form info of form represented by this RADFormContainer */
32 // private FormInfo formInfo;
33

34     /** Creates new RADFormContainer for form specified by its FormInfo
35      * @param formInfo the info describing the form type
36      */

37 // public RADFormContainer(FormInfo formInfo) {
38
// this.formInfo = formInfo;
39
// }
40

41     /** Getter for the Name property of the component - overriden to provide non-null value,
42      * as the top-level component does not have a variable
43      * @return current value of the Name property
44      */

45     public String JavaDoc getName() {
46         return FormUtils.getBundleString("CTL_FormTopContainerName"); // NOI18N
47
}
48
49     /** Setter for the Name property of the component - usually maps to variable declaration for holding the
50      * instance of the component
51      * @param value new value of the Name property
52      */

53     public void setName(String JavaDoc value) {
54         // noop in forms
55
}
56
57     /** Called to create the instance of the bean. Default implementation simply creates instance
58      * of the bean's class using the default constructor. Top-level container(the form object itself)
59      * will redefine this to use FormInfo to create the instance, as e.g. Dialogs cannot be created using
60      * the default constructor
61      * @return the instance of the bean that will be used during design time
62      */

63 // protected Object createBeanInstance() {
64
// return formInfo.getFormInstance();
65
// }
66

67     /** Called to obtain a Java code to be used to generate code to access the container for adding subcomponents.
68      * It is expected that the returned code is either ""(in which case the form is the container) or is a name of variable
69      * or method call ending with "."(e.g. "container.getContentPane().").
70      * @return the prefix code for generating code to add subcomponents to this container
71      */

72 // public String getContainerGenName() {
73
// return formInfo.getContainerGenName();
74
// }
75

76     /** @return the form info of form represented by this RADFormContainer */
77 // public FormInfo getFormInfo() {
78
// return formInfo;
79
// }
80
}
81
Popular Tags