1 |
/* OptionPaneUI.java |
/* OptionPaneUI.java |
2 |
Copyright (C) 2002 Free Software Foundation, Inc. |
Copyright (C) 2003 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
35 |
obligated to do so. If you do not wish to do so, delete this |
obligated to do so. If you do not wish to do so, delete this |
36 |
exception statement from your version. */ |
exception statement from your version. */ |
37 |
|
|
|
|
|
38 |
package javax.swing.plaf; |
package javax.swing.plaf; |
|
import javax.accessibility.*; |
|
39 |
|
|
40 |
public class OptionPaneUI extends ComponentUI |
import javax.swing.JOptionPane; |
41 |
|
|
42 |
|
/** |
43 |
|
* An abstract base class for delegates that implement the pluggable |
44 |
|
* look and feel for a <code>JOptionPane</code>. |
45 |
|
* |
46 |
|
* @see javax.swing.JOptionPane |
47 |
|
* |
48 |
|
* @author Sascha Brawer (brawer@dandelis.ch) |
49 |
|
*/ |
50 |
|
public abstract class OptionPaneUI |
51 |
|
extends ComponentUI |
52 |
{ |
{ |
53 |
|
/** |
54 |
|
* Gives keyboard input focus to the component that represents |
55 |
|
* the default value. |
56 |
|
* |
57 |
|
* @param pane the <code>JOptionPane</code> for which this delegate |
58 |
|
* object provides the pluggable user interface. |
59 |
|
*/ |
60 |
|
public abstract void selectInitialValue(JOptionPane pane); |
61 |
|
|
62 |
|
|
63 |
|
/** |
64 |
|
* Determines whether the user has provided custom components |
65 |
|
* for the options or the message. |
66 |
|
* |
67 |
|
* @param pane the <code>JOptionPane</code> for which this delegate |
68 |
|
* object provides the pluggable user interface. |
69 |
|
* |
70 |
|
* @return <code>true</code> if the user has supplied any custom |
71 |
|
* components; <code>false</code> if all components are |
72 |
|
* provided by Swing or a LookAndFeel. |
73 |
|
*/ |
74 |
|
public abstract boolean containsCustomComponents(JOptionPane pane); |
75 |
} |
} |