1 |
/* LookAndFeel.java -- |
/* LookAndFeel.java -- |
2 |
Copyright (C) 2002, 2004 Free Software Foundation, Inc. |
Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
56 |
return null; |
return null; |
57 |
} |
} |
58 |
|
|
59 |
|
/** |
60 |
|
* Returns a description of the look and feel. |
61 |
|
* |
62 |
|
* @return A description of the look and feel. |
63 |
|
*/ |
64 |
public abstract String getDescription(); |
public abstract String getDescription(); |
65 |
|
|
66 |
public static Object getDesktopPropertyValue(String systemPropertyName, Object fallbackValue) |
public static Object getDesktopPropertyValue(String systemPropertyName, |
67 |
|
Object fallbackValue) |
68 |
{ |
{ |
69 |
Object value = Toolkit.getDefaultToolkit().getDesktopProperty(systemPropertyName); |
Object value = Toolkit.getDefaultToolkit().getDesktopProperty(systemPropertyName); |
70 |
return value != null ? value : fallbackValue; |
return value != null ? value : fallbackValue; |
71 |
} |
} |
72 |
|
|
73 |
|
/** |
74 |
|
* Returns an identifier for the look and feel. |
75 |
|
* |
76 |
|
* @return An identifier for the look and feel. |
77 |
|
*/ |
78 |
public abstract String getID(); |
public abstract String getID(); |
79 |
|
|
80 |
|
/** |
81 |
|
* Returns the name for the look and feel. |
82 |
|
* |
83 |
|
* @return The name for the look and feel. |
84 |
|
*/ |
85 |
public abstract String getName(); |
public abstract String getName(); |
86 |
|
|
87 |
/** |
/** |
134 |
{ |
{ |
135 |
} |
} |
136 |
|
|
137 |
|
/** |
138 |
|
* Returns <code>true</code> if the look and feel is the "native" look and |
139 |
|
* feel for the current platform, and <code>false</code> otherwise. |
140 |
|
* |
141 |
|
* @return A flag indicating whether or not this is the native look and feel |
142 |
|
* for the current platform. |
143 |
|
*/ |
144 |
public abstract boolean isNativeLookAndFeel(); |
public abstract boolean isNativeLookAndFeel(); |
145 |
|
|
146 |
|
/** |
147 |
|
* Returns <code>true</code> if the look and feel is supported on the |
148 |
|
* current operating system, and <code>false</code> otherwise. This |
149 |
|
* mechanism is provided so that it is possible to prevent a look and feel |
150 |
|
* from being used on some operating systems (usually for legal, not |
151 |
|
* technical, reasons). |
152 |
|
* |
153 |
|
* @return A flag indicating whether or not the look and feel is supported |
154 |
|
* on the current platform. |
155 |
|
*/ |
156 |
public abstract boolean isSupportedLookAndFeel(); |
public abstract boolean isSupportedLookAndFeel(); |
157 |
|
|
158 |
/** |
/** |