37 |
|
|
38 |
package javax.swing.plaf; |
package javax.swing.plaf; |
39 |
|
|
40 |
// Imports |
import javax.swing.JComboBox; |
|
import javax.swing.*; |
|
41 |
|
|
42 |
/** |
/** |
43 |
* ComboBoxUI |
* An abstract base class for delegates that implement the pluggable |
44 |
* @author Andrew Selkirk |
* look and feel for a <code>JButton</code>. |
45 |
* @version 1.0 |
* |
46 |
|
* @see javax.swing.JComboBox |
47 |
|
* |
48 |
|
* @author Andrew Selkirk |
49 |
|
* @author Sascha Brawer (brawer@dandelis.ch) |
50 |
*/ |
*/ |
51 |
public abstract class ComboBoxUI extends ComponentUI { |
public abstract class ComboBoxUI |
52 |
|
extends ComponentUI |
53 |
//------------------------------------------------------------- |
{ |
54 |
// Initialization --------------------------------------------- |
/** |
55 |
//------------------------------------------------------------- |
* Constructs a new <code>ComboBoxUI</code>. |
56 |
|
*/ |
57 |
/** |
public ComboBoxUI() |
58 |
* Constructor ComboBoxUI |
{ |
59 |
*/ |
} |
60 |
public ComboBoxUI() { |
|
61 |
// TODO |
|
62 |
} // ComboBoxUI() |
/** |
63 |
|
* Sets the visibility of the popup button. |
64 |
|
* |
65 |
//------------------------------------------------------------- |
* @param c the <code>JComboBox</code> whose popup |
66 |
// Methods ---------------------------------------------------- |
* is shown or hidden. |
67 |
//------------------------------------------------------------- |
* |
68 |
|
* @param visible <code>true</code> to show the popup, <code>false</code> |
69 |
/** |
* to hide it. |
70 |
* setPopupVisible |
*/ |
71 |
* @param combobox TODO |
public abstract void setPopupVisible(JComboBox c, boolean visible); |
72 |
* @param visible TODO |
|
73 |
*/ |
|
74 |
public abstract void setPopupVisible(JComboBox combobox, boolean visible); |
/** |
75 |
|
* Determines whether the popup button is currently visible. |
76 |
/** |
* |
77 |
* isPopupVisible |
* @param c the <code>JComboBox</code> whose popup visibility |
78 |
* @param combobox TODO |
* is retrieved. |
79 |
* @returns boolean |
* |
80 |
*/ |
* @return <code>true</code> if the popup button is currently |
81 |
public abstract boolean isPopupVisible(JComboBox combobox); |
* visible, <code>false</code> otherwise. |
82 |
|
*/ |
83 |
/** |
public abstract boolean isPopupVisible(JComboBox c); |
84 |
* isFocusTraversable |
|
85 |
* @param combobox TODO |
|
86 |
* @returns boolean |
/** |
87 |
*/ |
* Determines whether the combo box can receive input focus. |
88 |
public abstract boolean isFocusTraversable(JComboBox combobox); |
* |
89 |
|
* @param c <code>JComboBox</code> whose focus traversability |
90 |
|
* is to be retrieved. |
91 |
} // ComboBoxUI |
* |
92 |
|
* @returns <code>true</code> if <code>c</code> can receive |
93 |
|
* input focus, <code>false</code> otherwise. |
94 |
|
*/ |
95 |
|
public abstract boolean isFocusTraversable(JComboBox c); |
96 |
|
} |