KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > xml > catalog > impl > SystemCatalogCustomizer


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 package org.netbeans.modules.xml.catalog.impl;
20
21 import java.beans.*;
22
23 /**
24  * Customizer for Netbeans IDE catalog is read only because the catalog
25  * can be modified just by modules using OpenIDE API.
26  *
27  * @author Petr Kuzel
28  * @version 1.0
29  */

30 public class SystemCatalogCustomizer extends javax.swing.JPanel JavaDoc implements Customizer {
31
32     /** Serial Version UID */
33     private static final long serialVersionUID = -7117054881250295623L;
34
35     /** Creates new form CatalogCustomizer */
36     public SystemCatalogCustomizer() {
37         initComponents ();
38         this.getAccessibleContext().setAccessibleDescription(Util.THIS.getString("ACSD_SystemCatalogCustomizer"));
39     }
40
41     /** This method is called from within the constructor to
42      * initialize the form.
43      * WARNING: Do NOT modify this code. The content of this method is
44      * always regenerated by the FormEditor.
45      */

46     private void initComponents() {//GEN-BEGIN:initComponents
47
java.awt.GridBagConstraints JavaDoc gridBagConstraints;
48
49         jTextArea1 = new javax.swing.JTextArea JavaDoc(){
50             public boolean isFocusTraversable(){
51                 return false;
52             }
53         };
54
55         setLayout(new java.awt.GridBagLayout JavaDoc());
56
57         jTextArea1.setColumns(40);
58         jTextArea1.setEditable(false);
59         jTextArea1.setFont(javax.swing.UIManager.getFont ("Label.font"));
60         jTextArea1.setForeground(new java.awt.Color JavaDoc(102, 102, 153));
61         jTextArea1.setLineWrap(true);
62         jTextArea1.setRows(4);
63         jTextArea1.setText(Util.THIS.getString ("SystemCatalogCustomizer.readOnly.text"));
64         jTextArea1.setWrapStyleWord(true);
65         jTextArea1.setBorder(null);
66         jTextArea1.setDisabledTextColor(javax.swing.UIManager.getColor ("Label.foreground"));
67         jTextArea1.setEnabled(false);
68         jTextArea1.setOpaque(false);
69         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
70         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
71         gridBagConstraints.gridheight = java.awt.GridBagConstraints.REMAINDER;
72         gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
73         gridBagConstraints.weightx = 1.0;
74         gridBagConstraints.weighty = 1.0;
75         add(jTextArea1, gridBagConstraints);
76
77     }//GEN-END:initComponents
78

79
80     // Variables declaration - do not modify//GEN-BEGIN:variables
81
private javax.swing.JTextArea JavaDoc jTextArea1;
82     // End of variables declaration//GEN-END:variables
83

84
85     public void setObject(final java.lang.Object JavaDoc peer) {
86     }
87     
88     public void addPropertyChangeListener(final java.beans.PropertyChangeListener JavaDoc p1) {
89     }
90     
91     public void removePropertyChangeListener(final java.beans.PropertyChangeListener JavaDoc p1) {
92     }
93 }
94
Popular Tags