37 |
|
|
38 |
package javax.swing; |
package javax.swing; |
39 |
|
|
40 |
|
import java.awt.Component; |
41 |
|
import java.awt.Toolkit; |
42 |
import javax.swing.text.JTextComponent; |
import javax.swing.text.JTextComponent; |
43 |
|
|
44 |
|
|
62 |
public abstract String getName(); |
public abstract String getName(); |
63 |
|
|
64 |
/** |
/** |
65 |
|
* Returns true when the Look and Feel supports window decorations, |
66 |
|
* false others. This method returns always false and needs to be overwritten |
67 |
|
* when the derived Look and Feel supports this. |
68 |
|
* |
69 |
|
* @return false |
70 |
|
* |
71 |
|
* @since 1.4 |
72 |
|
*/ |
73 |
|
public boolean getSupportsWindowDecorations() |
74 |
|
{ |
75 |
|
return false; |
76 |
|
} |
77 |
|
|
78 |
|
/** |
79 |
* UIManager.setLookAndFeel calls this method before the first call |
* UIManager.setLookAndFeel calls this method before the first call |
80 |
* (and typically the only call) to getDefaults(). |
* (and typically the only call) to getDefaults(). |
81 |
*/ |
*/ |
157 |
} |
} |
158 |
|
|
159 |
/** |
/** |
160 |
|
* Invoked when the user attempts an invalid operation. The default implement |
161 |
|
* just beeps. Subclasses that wish to change this need to override this |
162 |
|
* method. |
163 |
|
* |
164 |
|
* @param component the component the error occured in |
165 |
|
*/ |
166 |
|
public void provideErrorFeedback(Component component) |
167 |
|
{ |
168 |
|
Toolkit.getDefaultToolkit().beep(); |
169 |
|
} |
170 |
|
|
171 |
|
/** |
172 |
* Returns a string that displays and identifies this object's properties. |
* Returns a string that displays and identifies this object's properties. |
173 |
* |
* |
174 |
* @return the string "LookAndFeel" |
* @return the string "LookAndFeel" |