KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openide > explorer > propertysheet > PropertySheetSettings


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.openide.explorer.propertysheet;
20
21 import org.openide.options.SystemOption;
22 import org.openide.util.HelpCtx;
23 import org.openide.util.NbBundle;
24
25 import java.awt.Color JavaDoc;
26
27 import javax.swing.UIManager JavaDoc;
28
29
30 /**
31 * Settings for the property sheet.
32 * @see PropertySheet
33 *
34 * @deprecated None of the settings in this class are supported in the new property sheet. The entire implementation
35 * has been gutted to do nothing.
36 *
37 * @author Jan Jancura, Ian Formanek
38 * @version 0.11, May 16, 1998
39 */

40 public class PropertySheetSettings extends SystemOption {
41     /** generated Serialized Version UID */
42     static final long serialVersionUID = -3820718202747868830L;
43
44     /** Property variables. */
45     static int propertyPaintingStyle = -1;
46     static boolean plastic = false;
47
48     /** When it's true only writable properties are showen. */
49     static boolean displayWritableOnly = false;
50     static int sortingMode = -1;
51     static Color JavaDoc valueColor = null;
52     private static Color JavaDoc disabledColor;
53     static PropertySheetSettings propertySheetSettings = null;
54
55     static PropertySheetSettings getDefault() {
56         return propertySheetSettings;
57     }
58
59     public String JavaDoc displayName() {
60         return null;
61     }
62
63     public HelpCtx getHelpCtx() {
64         return null;
65     }
66
67     /*
68     * Sets property showing mode.
69     * @deprecated Relic of the original property sheet implementation. Display of properties
70     * is handled by the look and feel.
71     */

72     public void setPropertyPaintingStyle(int style) {
73     }
74
75     /*
76     * Returns mode of showing properties.
77     * @deprecated Relic of the original property sheet implementation. Display of properties
78     * is handled by the look and feel.
79     *
80     * @return <CODE>int</CODE> mode of showing properties.
81     * @see #setExpert
82     */

83     public int getPropertyPaintingStyle() {
84         return -1;
85     }
86
87     /*
88     * Sets sorting mode.
89     *
90     * @param sortingMode New sorting mode.
91     */

92     public void setSortingMode(int sortingMode) {
93     }
94
95     /*
96     * Returns sorting mode.
97     *
98     * @return Sorting mode.
99     */

100     public int getSortingMode() {
101         return -1;
102     }
103
104     /*
105     * Sets buttons in sheet to be plastic.
106     * @deprecated Relic of the original property sheet implementation. Display of properties
107     * is handled by the look and feel.
108     */

109     public void setPlastic(boolean plastic) {
110     }
111
112     /*
113     * Returns true if buttons in sheet are plastic.
114     * @deprecated Relic of the original property sheet implementation. Display of properties
115     * is handled by the look and feel.
116     */

117     public boolean getPlastic() {
118         return false;
119     }
120
121     /*
122     * Sets foreground color of values.
123     * @deprecated Relic of the original property sheet implementation. Display of properties
124     * is handled by the look and feel.
125     */

126     public void setValueColor(Color JavaDoc color) {
127     }
128
129     /*
130     * Gets foreground color of values.
131     */

132     public Color JavaDoc getValueColor() {
133         return null;
134     }
135
136     /*
137     * Sets foreground color of disabled property.
138     * @deprecated Relic of the original property sheet implementation. Display of properties
139     * is handled by the look and feel.
140     */

141     public void setDisabledPropertyColor(Color JavaDoc color) {
142     }
143
144     /*
145     * Gets foreground color of values.
146     * @deprecated Relic of the original property sheet implementation. Display of properties
147     * is handled by the look and feel.
148     */

149     public Color JavaDoc getDisabledPropertyColor() {
150         return null;
151     }
152
153     /*
154     * Setter method for visibleWritableOnly property. If is true only writable
155     * properties are showen in propertysheet.
156     */

157     public void setDisplayWritableOnly(boolean b) {
158     }
159
160     /*
161     * Getter method for visibleWritableOnly property. If is true only writable
162     * properties are showen in propertysheet.
163     * @deprecated Relic of the original property sheet implementation. The new propertysheet
164      * implementation does not support this kind of filtering of properties. */

165     public boolean getDisplayWritableOnly() {
166         return false;
167     }
168 }
169
Popular Tags