| 1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| 2 |
<!-- NewPage --> |
| 3 |
<html lang="de"> |
| 4 |
<head> |
| 5 |
<!-- Generated by javadoc (version 1.7.0_72) on Sat Jan 03 15:02:24 CET 2015 --> |
| 6 |
<title>WindowsComboBoxUI (JGoodies Looks 2.6 API)</title> |
| 7 |
<meta name="date" content="2015-01-03"> |
| 8 |
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> |
| 9 |
</head> |
| 10 |
<body> |
| 11 |
<script type="text/javascript"><!-- |
| 12 |
if (location.href.indexOf('is-external=true') == -1) { |
| 13 |
parent.document.title="WindowsComboBoxUI (JGoodies Looks 2.6 API)"; |
| 14 |
} |
| 15 |
//--> |
| 16 |
</script> |
| 17 |
<noscript> |
| 18 |
<div>JavaScript is disabled on your browser.</div> |
| 19 |
</noscript> |
| 20 |
<!-- ========= START OF TOP NAVBAR ======= --> |
| 21 |
<div class="topNav"><a name="navbar_top"> |
| 22 |
<!-- --> |
| 23 |
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> |
| 24 |
<!-- --> |
| 25 |
</a> |
| 26 |
<ul class="navList" title="Navigation"> |
| 27 |
<li><a href="../../../../overview-summary.html">Overview</a></li> |
| 28 |
<li><a href="package-summary.html">Package</a></li> |
| 29 |
<li class="navBarCell1Rev">Class</li> |
| 30 |
<li><a href="class-use/WindowsComboBoxUI.html">Use</a></li> |
| 31 |
<li><a href="package-tree.html">Tree</a></li> |
| 32 |
<li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| 33 |
<li><a href="../../../../index-all.html">Index</a></li> |
| 34 |
<li><a href="../../../../help-doc.html">Help</a></li> |
| 35 |
</ul> |
| 36 |
</div> |
| 37 |
<div class="subNav"> |
| 38 |
<ul class="navList"> |
| 39 |
<li><a href="../../../../com/jgoodies/looks/windows/WindowsButtonUI.html" title="class in com.jgoodies.looks.windows"><span class="strong">Prev Class</span></a></li> |
| 40 |
<li><a href="../../../../com/jgoodies/looks/windows/WindowsFormattedTextFieldUI.html" title="class in com.jgoodies.looks.windows"><span class="strong">Next Class</span></a></li> |
| 41 |
</ul> |
| 42 |
<ul class="navList"> |
| 43 |
<li><a href="../../../../index.html?com/jgoodies/looks/windows/WindowsComboBoxUI.html" target="_top">Frames</a></li> |
| 44 |
<li><a href="WindowsComboBoxUI.html" target="_top">No Frames</a></li> |
| 45 |
</ul> |
| 46 |
<ul class="navList" id="allclasses_navbar_top"> |
| 47 |
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> |
| 48 |
</ul> |
| 49 |
<div> |
| 50 |
<script type="text/javascript"><!-- |
| 51 |
allClassesLink = document.getElementById("allclasses_navbar_top"); |
| 52 |
if(window==top) { |
| 53 |
allClassesLink.style.display = "block"; |
| 54 |
} |
| 55 |
else { |
| 56 |
allClassesLink.style.display = "none"; |
| 57 |
} |
| 58 |
//--> |
| 59 |
</script> |
| 60 |
</div> |
| 61 |
<div> |
| 62 |
<ul class="subNavList"> |
| 63 |
<li>Summary: </li> |
| 64 |
<li><a href="#nested_classes_inherited_from_class_com.sun.java.swing.plaf.windows.WindowsComboBoxUI">Nested</a> | </li> |
| 65 |
<li><a href="#fields_inherited_from_class_javax.swing.plaf.basic.BasicComboBoxUI">Field</a> | </li> |
| 66 |
<li><a href="#constructor_summary">Constr</a> | </li> |
| 67 |
<li><a href="#method_summary">Method</a></li> |
| 68 |
</ul> |
| 69 |
<ul class="subNavList"> |
| 70 |
<li>Detail: </li> |
| 71 |
<li>Field | </li> |
| 72 |
<li><a href="#constructor_detail">Constr</a> | </li> |
| 73 |
<li><a href="#method_detail">Method</a></li> |
| 74 |
</ul> |
| 75 |
</div> |
| 76 |
<a name="skip-navbar_top"> |
| 77 |
<!-- --> |
| 78 |
</a></div> |
| 79 |
<!-- ========= END OF TOP NAVBAR ========= --> |
| 80 |
<!-- ======== START OF CLASS DATA ======== --> |
| 81 |
<div class="header"> |
| 82 |
<div class="subTitle">com.jgoodies.looks.windows</div> |
| 83 |
<h2 title="Class WindowsComboBoxUI" class="title">Class WindowsComboBoxUI</h2> |
| 84 |
</div> |
| 85 |
<div class="contentContainer"> |
| 86 |
<ul class="inheritance"> |
| 87 |
<li><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> |
| 88 |
<li> |
| 89 |
<ul class="inheritance"> |
| 90 |
<li><a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/ComponentUI.html?is-external=true" title="class or interface in javax.swing.plaf">javax.swing.plaf.ComponentUI</a></li> |
| 91 |
<li> |
| 92 |
<ul class="inheritance"> |
| 93 |
<li><a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/ComboBoxUI.html?is-external=true" title="class or interface in javax.swing.plaf">javax.swing.plaf.ComboBoxUI</a></li> |
| 94 |
<li> |
| 95 |
<ul class="inheritance"> |
| 96 |
<li><a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true" title="class or interface in javax.swing.plaf.basic">javax.swing.plaf.basic.BasicComboBoxUI</a></li> |
| 97 |
<li> |
| 98 |
<ul class="inheritance"> |
| 99 |
<li>com.sun.java.swing.plaf.windows.WindowsComboBoxUI</li> |
| 100 |
<li> |
| 101 |
<ul class="inheritance"> |
| 102 |
<li>com.jgoodies.looks.windows.WindowsComboBoxUI</li> |
| 103 |
</ul> |
| 104 |
</li> |
| 105 |
</ul> |
| 106 |
</li> |
| 107 |
</ul> |
| 108 |
</li> |
| 109 |
</ul> |
| 110 |
</li> |
| 111 |
</ul> |
| 112 |
</li> |
| 113 |
</ul> |
| 114 |
<div class="description"> |
| 115 |
<ul class="blockList"> |
| 116 |
<li class="blockList"> |
| 117 |
<hr> |
| 118 |
<br> |
| 119 |
<pre>public class <span class="strong">WindowsComboBoxUI</span> |
| 120 |
extends com.sun.java.swing.plaf.windows.WindowsComboBoxUI</pre> |
| 121 |
<div class="block">The JGoodies Windows Look&Feel implementation of |
| 122 |
<a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/ComboBoxUI.html?is-external=true" title="class or interface in javax.swing.plaf"><code>ComboBoxUI</code></a>. |
| 123 |
Corrects the editor insets for editable combo boxes |
| 124 |
as well as the render insets for non-editable combos. And it has |
| 125 |
the same height as text fields - unless you change the renderer.<p> |
| 126 |
|
| 127 |
Also, this class offers to use the combo's popup prototype display value |
| 128 |
to compute the popup menu width. This is an optional feature of |
| 129 |
the JGoodies Windows L&f implemented via a client property key.</div> |
| 130 |
<dl><dt><span class="strong">Version:</span></dt> |
| 131 |
<dd>$Revision: 1.26 $</dd> |
| 132 |
<dt><span class="strong">Author:</span></dt> |
| 133 |
<dd>Karsten Lentzsch</dd> |
| 134 |
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../com/jgoodies/looks/Options.html#COMBO_POPUP_PROTOTYPE_DISPLAY_VALUE_KEY"><code>Options.COMBO_POPUP_PROTOTYPE_DISPLAY_VALUE_KEY</code></a></dd></dl> |
| 135 |
</li> |
| 136 |
</ul> |
| 137 |
</div> |
| 138 |
<div class="summary"> |
| 139 |
<ul class="blockList"> |
| 140 |
<li class="blockList"> |
| 141 |
<!-- ======== NESTED CLASS SUMMARY ======== --> |
| 142 |
<ul class="blockList"> |
| 143 |
<li class="blockList"><a name="nested_class_summary"> |
| 144 |
<!-- --> |
| 145 |
</a> |
| 146 |
<h3>Nested Class Summary</h3> |
| 147 |
<ul class="blockList"> |
| 148 |
<li class="blockList"><a name="nested_classes_inherited_from_class_com.sun.java.swing.plaf.windows.WindowsComboBoxUI"> |
| 149 |
<!-- --> |
| 150 |
</a> |
| 151 |
<h3>Nested classes/interfaces inherited from class com.sun.java.swing.plaf.windows.WindowsComboBoxUI</h3> |
| 152 |
<code>com.sun.java.swing.plaf.windows.WindowsComboBoxUI.WindowsComboBoxEditor</code></li> |
| 153 |
</ul> |
| 154 |
<ul class="blockList"> |
| 155 |
<li class="blockList"><a name="nested_classes_inherited_from_class_javax.swing.plaf.basic.BasicComboBoxUI"> |
| 156 |
<!-- --> |
| 157 |
</a> |
| 158 |
<h3>Nested classes/interfaces inherited from class javax.swing.plaf.basic.<a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true" title="class or interface in javax.swing.plaf.basic">BasicComboBoxUI</a></h3> |
| 159 |
<code><a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.ComboBoxLayoutManager.html?is-external=true" title="class or interface in javax.swing.plaf.basic">BasicComboBoxUI.ComboBoxLayoutManager</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.FocusHandler.html?is-external=true" title="class or interface in javax.swing.plaf.basic">BasicComboBoxUI.FocusHandler</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.ItemHandler.html?is-external=true" title="class or interface in javax.swing.plaf.basic">BasicComboBoxUI.ItemHandler</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.KeyHandler.html?is-external=true" title="class or interface in javax.swing.plaf.basic">BasicComboBoxUI.KeyHandler</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.ListDataHandler.html?is-external=true" title="class or interface in javax.swing.plaf.basic">BasicComboBoxUI.ListDataHandler</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.PropertyChangeHandler.html?is-external=true" title="class or interface in javax.swing.plaf.basic">BasicComboBoxUI.PropertyChangeHandler</a></code></li> |
| 160 |
</ul> |
| 161 |
</li> |
| 162 |
</ul> |
| 163 |
<!-- =========== FIELD SUMMARY =========== --> |
| 164 |
<ul class="blockList"> |
| 165 |
<li class="blockList"><a name="field_summary"> |
| 166 |
<!-- --> |
| 167 |
</a> |
| 168 |
<h3>Field Summary</h3> |
| 169 |
<ul class="blockList"> |
| 170 |
<li class="blockList"><a name="fields_inherited_from_class_javax.swing.plaf.basic.BasicComboBoxUI"> |
| 171 |
<!-- --> |
| 172 |
</a> |
| 173 |
<h3>Fields inherited from class javax.swing.plaf.basic.<a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true" title="class or interface in javax.swing.plaf.basic">BasicComboBoxUI</a></h3> |
| 174 |
<code><a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#arrowButton" title="class or interface in javax.swing.plaf.basic">arrowButton</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#cachedMinimumSize" title="class or interface in javax.swing.plaf.basic">cachedMinimumSize</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#comboBox" title="class or interface in javax.swing.plaf.basic">comboBox</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#currentValuePane" title="class or interface in javax.swing.plaf.basic">currentValuePane</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#editor" title="class or interface in javax.swing.plaf.basic">editor</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#focusListener" title="class or interface in javax.swing.plaf.basic">focusListener</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#hasFocus" title="class or interface in javax.swing.plaf.basic">hasFocus</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#isMinimumSizeDirty" title="class or interface in javax.swing.plaf.basic">isMinimumSizeDirty</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#itemListener" title="class or interface in javax.swing.plaf.basic">itemListener</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#keyListener" title="class or interface in javax.swing.plaf.basic">keyListener</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#listBox" title="class or interface in javax.swing.plaf.basic">listBox</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#listDataListener" title="class or interface in javax.swing.plaf.basic">listDataListener</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#padding" title="class or interface in javax.swing.plaf.basic">padding</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#popup" title="class or interface in javax.swing.plaf.basic">popup</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#popupKeyListener" title="class or interface in javax.swing.plaf.basic">popupKeyListener</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#popupMouseListener" title="class or interface in javax.swing.plaf.basic">popupMouseListener</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#popupMouseMotionListener" title="class or interface in javax.swing.plaf.basic">popupMouseMotionListener</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#squareButton" title="class or interface in javax.swing.plaf.basic">squareButton</a></code></li> |
| 175 |
</ul> |
| 176 |
</li> |
| 177 |
</ul> |
| 178 |
<!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| 179 |
<ul class="blockList"> |
| 180 |
<li class="blockList"><a name="constructor_summary"> |
| 181 |
<!-- --> |
| 182 |
</a> |
| 183 |
<h3>Constructor Summary</h3> |
| 184 |
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> |
| 185 |
<caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| 186 |
<tr> |
| 187 |
<th class="colOne" scope="col">Constructor and Description</th> |
| 188 |
</tr> |
| 189 |
<tr class="altColor"> |
| 190 |
<td class="colOne"><code><strong><a href="../../../../com/jgoodies/looks/windows/WindowsComboBoxUI.html#WindowsComboBoxUI()">WindowsComboBoxUI</a></strong>()</code> </td> |
| 191 |
</tr> |
| 192 |
</table> |
| 193 |
</li> |
| 194 |
</ul> |
| 195 |
<!-- ========== METHOD SUMMARY =========== --> |
| 196 |
<ul class="blockList"> |
| 197 |
<li class="blockList"><a name="method_summary"> |
| 198 |
<!-- --> |
| 199 |
</a> |
| 200 |
<h3>Method Summary</h3> |
| 201 |
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| 202 |
<caption><span>Methods</span><span class="tabEnd"> </span></caption> |
| 203 |
<tr> |
| 204 |
<th class="colFirst" scope="col">Modifier and Type</th> |
| 205 |
<th class="colLast" scope="col">Method and Description</th> |
| 206 |
</tr> |
| 207 |
<tr class="altColor"> |
| 208 |
<td class="colFirst"><code>protected void</code></td> |
| 209 |
<td class="colLast"><code><strong><a href="../../../../com/jgoodies/looks/windows/WindowsComboBoxUI.html#configureEditor()">configureEditor</a></strong>()</code> </td> |
| 210 |
</tr> |
| 211 |
<tr class="rowColor"> |
| 212 |
<td class="colFirst"><code>protected <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/JButton.html?is-external=true" title="class or interface in javax.swing">JButton</a></code></td> |
| 213 |
<td class="colLast"><code><strong><a href="../../../../com/jgoodies/looks/windows/WindowsComboBoxUI.html#createArrowButton()">createArrowButton</a></strong>()</code> |
| 214 |
<div class="block">Creates the arrow button that is to be used in the combo box.</div> |
| 215 |
</td> |
| 216 |
</tr> |
| 217 |
<tr class="altColor"> |
| 218 |
<td class="colFirst"><code>protected <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/ComboBoxEditor.html?is-external=true" title="class or interface in javax.swing">ComboBoxEditor</a></code></td> |
| 219 |
<td class="colLast"><code><strong><a href="../../../../com/jgoodies/looks/windows/WindowsComboBoxUI.html#createEditor()">createEditor</a></strong>()</code> |
| 220 |
<div class="block">Creates the editor that is to be used in editable combo boxes.</div> |
| 221 |
</td> |
| 222 |
</tr> |
| 223 |
<tr class="rowColor"> |
| 224 |
<td class="colFirst"><code>protected <a href="http://docs.oracle.com/javase/6/docs/api/java/awt/LayoutManager.html?is-external=true" title="class or interface in java.awt">LayoutManager</a></code></td> |
| 225 |
<td class="colLast"><code><strong><a href="../../../../com/jgoodies/looks/windows/WindowsComboBoxUI.html#createLayoutManager()">createLayoutManager</a></strong>()</code> |
| 226 |
<div class="block">Creates a layout manager for managing the components which |
| 227 |
make up the combo box.</div> |
| 228 |
</td> |
| 229 |
</tr> |
| 230 |
<tr class="altColor"> |
| 231 |
<td class="colFirst"><code>protected <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/ComboPopup.html?is-external=true" title="class or interface in javax.swing.plaf.basic">ComboPopup</a></code></td> |
| 232 |
<td class="colLast"><code><strong><a href="../../../../com/jgoodies/looks/windows/WindowsComboBoxUI.html#createPopup()">createPopup</a></strong>()</code> |
| 233 |
<div class="block">Creates a ComboPopup that honors the optional combo popup display value |
| 234 |
that is used to compute the popup menu width.</div> |
| 235 |
</td> |
| 236 |
</tr> |
| 237 |
<tr class="rowColor"> |
| 238 |
<td class="colFirst"><code>protected <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/ListCellRenderer.html?is-external=true" title="class or interface in javax.swing">ListCellRenderer</a></code></td> |
| 239 |
<td class="colLast"><code><strong><a href="../../../../com/jgoodies/looks/windows/WindowsComboBoxUI.html#createRenderer()">createRenderer</a></strong>()</code> |
| 240 |
<div class="block">Creates the default renderer that will be used in a non-editiable combo |
| 241 |
box.</div> |
| 242 |
</td> |
| 243 |
</tr> |
| 244 |
<tr class="altColor"> |
| 245 |
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/ComponentUI.html?is-external=true" title="class or interface in javax.swing.plaf">ComponentUI</a></code></td> |
| 246 |
<td class="colLast"><code><strong><a href="../../../../com/jgoodies/looks/windows/WindowsComboBoxUI.html#createUI(javax.swing.JComponent)">createUI</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/JComponent.html?is-external=true" title="class or interface in javax.swing">JComponent</a> b)</code> </td> |
| 247 |
</tr> |
| 248 |
<tr class="rowColor"> |
| 249 |
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/awt/Dimension.html?is-external=true" title="class or interface in java.awt">Dimension</a></code></td> |
| 250 |
<td class="colLast"><code><strong><a href="../../../../com/jgoodies/looks/windows/WindowsComboBoxUI.html#getMinimumSize(javax.swing.JComponent)">getMinimumSize</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/JComponent.html?is-external=true" title="class or interface in javax.swing">JComponent</a> c)</code> |
| 251 |
<div class="block">The minumum size is the size of the display area plus insets plus the button.</div> |
| 252 |
</td> |
| 253 |
</tr> |
| 254 |
<tr class="altColor"> |
| 255 |
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/awt/Dimension.html?is-external=true" title="class or interface in java.awt">Dimension</a></code></td> |
| 256 |
<td class="colLast"><code><strong><a href="../../../../com/jgoodies/looks/windows/WindowsComboBoxUI.html#getPreferredSize(javax.swing.JComponent)">getPreferredSize</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/JComponent.html?is-external=true" title="class or interface in javax.swing">JComponent</a> c)</code> |
| 257 |
<div class="block">Delegates to #getMinimumSize(Component).</div> |
| 258 |
</td> |
| 259 |
</tr> |
| 260 |
<tr class="rowColor"> |
| 261 |
<td class="colFirst"><code>protected void</code></td> |
| 262 |
<td class="colLast"><code><strong><a href="../../../../com/jgoodies/looks/windows/WindowsComboBoxUI.html#installListeners()">installListeners</a></strong>()</code> </td> |
| 263 |
</tr> |
| 264 |
<tr class="altColor"> |
| 265 |
<td class="colFirst"><code>void</code></td> |
| 266 |
<td class="colLast"><code><strong><a href="../../../../com/jgoodies/looks/windows/WindowsComboBoxUI.html#installUI(javax.swing.JComponent)">installUI</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/JComponent.html?is-external=true" title="class or interface in javax.swing">JComponent</a> c)</code> </td> |
| 267 |
</tr> |
| 268 |
<tr class="rowColor"> |
| 269 |
<td class="colFirst"><code>protected boolean</code></td> |
| 270 |
<td class="colLast"><code><strong><a href="../../../../com/jgoodies/looks/windows/WindowsComboBoxUI.html#isRendererBorderRemovable(javax.swing.JComponent)">isRendererBorderRemovable</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/JComponent.html?is-external=true" title="class or interface in javax.swing">JComponent</a> rendererComponent)</code> |
| 271 |
<div class="block">Checks and answer whether the border of the given renderer component |
| 272 |
can be removed temporarily, so the combo's selection background will |
| 273 |
be consistent with the default renderer and native appearance.</div> |
| 274 |
</td> |
| 275 |
</tr> |
| 276 |
<tr class="altColor"> |
| 277 |
<td class="colFirst"><code>void</code></td> |
| 278 |
<td class="colLast"><code><strong><a href="../../../../com/jgoodies/looks/windows/WindowsComboBoxUI.html#paintCurrentValue(java.awt.Graphics,%20java.awt.Rectangle,%20boolean)">paintCurrentValue</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true" title="class or interface in java.awt">Graphics</a> g, |
| 279 |
<a href="http://docs.oracle.com/javase/6/docs/api/java/awt/Rectangle.html?is-external=true" title="class or interface in java.awt">Rectangle</a> bounds, |
| 280 |
boolean hasFocus)</code> |
| 281 |
<div class="block">Paints the currently selected item.</div> |
| 282 |
</td> |
| 283 |
</tr> |
| 284 |
<tr class="rowColor"> |
| 285 |
<td class="colFirst"><code>protected <a href="http://docs.oracle.com/javase/6/docs/api/java/awt/Rectangle.html?is-external=true" title="class or interface in java.awt">Rectangle</a></code></td> |
| 286 |
<td class="colLast"><code><strong><a href="../../../../com/jgoodies/looks/windows/WindowsComboBoxUI.html#rectangleForCurrentValue()">rectangleForCurrentValue</a></strong>()</code> |
| 287 |
<div class="block">Returns the area that is reserved for drawing the currently selected item.</div> |
| 288 |
</td> |
| 289 |
</tr> |
| 290 |
<tr class="altColor"> |
| 291 |
<td class="colFirst"><code>protected void</code></td> |
| 292 |
<td class="colLast"><code><strong><a href="../../../../com/jgoodies/looks/windows/WindowsComboBoxUI.html#uninstallListeners()">uninstallListeners</a></strong>()</code> </td> |
| 293 |
</tr> |
| 294 |
</table> |
| 295 |
<ul class="blockList"> |
| 296 |
<li class="blockList"><a name="methods_inherited_from_class_com.sun.java.swing.plaf.windows.WindowsComboBoxUI"> |
| 297 |
<!-- --> |
| 298 |
</a> |
| 299 |
<h3>Methods inherited from class com.sun.java.swing.plaf.windows.WindowsComboBoxUI</h3> |
| 300 |
<code>installKeyboardActions, paint, paintCurrentValueBackground, unconfigureEditor, uninstallUI</code></li> |
| 301 |
</ul> |
| 302 |
<ul class="blockList"> |
| 303 |
<li class="blockList"><a name="methods_inherited_from_class_javax.swing.plaf.basic.BasicComboBoxUI"> |
| 304 |
<!-- --> |
| 305 |
</a> |
| 306 |
<h3>Methods inherited from class javax.swing.plaf.basic.<a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true" title="class or interface in javax.swing.plaf.basic">BasicComboBoxUI</a></h3> |
| 307 |
<code><a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#addEditor()" title="class or interface in javax.swing.plaf.basic">addEditor</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#configureArrowButton()" title="class or interface in javax.swing.plaf.basic">configureArrowButton</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#createFocusListener()" title="class or interface in javax.swing.plaf.basic">createFocusListener</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#createItemListener()" title="class or interface in javax.swing.plaf.basic">createItemListener</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#createKeyListener()" title="class or interface in javax.swing.plaf.basic">createKeyListener</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#createListDataListener()" title="class or interface in javax.swing.plaf.basic">createListDataListener</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#createPropertyChangeListener()" title="class or interface in javax.swing.plaf.basic">createPropertyChangeListener</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#getAccessibleChild(javax.swing.JComponent,%20int)" title="class or interface in javax.swing.plaf.basic">getAccessibleChild</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#getAccessibleChildrenCount(javax.swing.JComponent)" title="class or interface in javax.swing.plaf.basic">getAccessibleChildrenCount</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#getBaseline(javax.swing.JComponent,%20int,%20int)" title="class or interface in javax.swing.plaf.basic">getBaseline</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#getBaselineResizeBehavior(javax.swing.JComponent)" title="class or interface in javax.swing.plaf.basic">getBaselineResizeBehavior</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#getDefaultSize()" title="class or interface in javax.swing.plaf.basic">getDefaultSize</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#getDisplaySize()" title="class or interface in javax.swing.plaf.basic">getDisplaySize</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#getInsets()" title="class or interface in javax.swing.plaf.basic">getInsets</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#getMaximumSize(javax.swing.JComponent)" title="class or interface in javax.swing.plaf.basic">getMaximumSize</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#getSizeForComponent(java.awt.Component)" title="class or interface in javax.swing.plaf.basic">getSizeForComponent</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#installComponents()" title="class or interface in javax.swing.plaf.basic">installComponents</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#installDefaults()" title="class or interface in javax.swing.plaf.basic">installDefaults</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#isFocusTraversable(javax.swing.JComboBox)" title="class or interface in javax.swing.plaf.basic">isFocusTraversable</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#isNavigationKey(int)" title="class or interface in javax.swing.plaf.basic">isNavigationKey</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#isPopupVisible(javax.swing.JComboBox)" title="class or interface in javax.swing.plaf.basic">isPopupVisible</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#removeEditor()" title="class or interface in javax.swing.plaf.basic">removeEditor</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#selectNextPossibleValue()" title="class or interface in javax.swing.plaf.basic">selectNextPossibleValue</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#selectPreviousPossibleValue()" title="class or interface in javax.swing.plaf.basic">selectPreviousPossibleValue</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#setPopupVisible(javax.swing.JComboBox,%20boolean)" title="class or interface in javax.swing.plaf.basic">setPopupVisible</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#toggleOpenClose()" title="class or interface in javax.swing.plaf.basic">toggleOpenClose</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#unconfigureArrowButton()" title="class or interface in javax.swing.plaf.basic">unconfigureArrowButton</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#uninstallComponents()" title="class or interface in javax.swing.plaf.basic">uninstallComponents</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#uninstallDefaults()" title="class or interface in javax.swing.plaf.basic">uninstallDefaults</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#uninstallKeyboardActions()" title="class or interface in javax.swing.plaf.basic">uninstallKeyboardActions</a></code></li> |
| 308 |
</ul> |
| 309 |
<ul class="blockList"> |
| 310 |
<li class="blockList"><a name="methods_inherited_from_class_javax.swing.plaf.ComponentUI"> |
| 311 |
<!-- --> |
| 312 |
</a> |
| 313 |
<h3>Methods inherited from class javax.swing.plaf.<a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/ComponentUI.html?is-external=true" title="class or interface in javax.swing.plaf">ComponentUI</a></h3> |
| 314 |
<code><a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/ComponentUI.html?is-external=true#contains(javax.swing.JComponent,%20int,%20int)" title="class or interface in javax.swing.plaf">contains</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/ComponentUI.html?is-external=true#update(java.awt.Graphics,%20javax.swing.JComponent)" title="class or interface in javax.swing.plaf">update</a></code></li> |
| 315 |
</ul> |
| 316 |
<ul class="blockList"> |
| 317 |
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> |
| 318 |
<!-- --> |
| 319 |
</a> |
| 320 |
<h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> |
| 321 |
<code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long,%20int)" title="class or interface in java.lang">wait</a></code></li> |
| 322 |
</ul> |
| 323 |
</li> |
| 324 |
</ul> |
| 325 |
</li> |
| 326 |
</ul> |
| 327 |
</div> |
| 328 |
<div class="details"> |
| 329 |
<ul class="blockList"> |
| 330 |
<li class="blockList"> |
| 331 |
<!-- ========= CONSTRUCTOR DETAIL ======== --> |
| 332 |
<ul class="blockList"> |
| 333 |
<li class="blockList"><a name="constructor_detail"> |
| 334 |
<!-- --> |
| 335 |
</a> |
| 336 |
<h3>Constructor Detail</h3> |
| 337 |
<a name="WindowsComboBoxUI()"> |
| 338 |
<!-- --> |
| 339 |
</a> |
| 340 |
<ul class="blockListLast"> |
| 341 |
<li class="blockList"> |
| 342 |
<h4>WindowsComboBoxUI</h4> |
| 343 |
<pre>public WindowsComboBoxUI()</pre> |
| 344 |
</li> |
| 345 |
</ul> |
| 346 |
</li> |
| 347 |
</ul> |
| 348 |
<!-- ============ METHOD DETAIL ========== --> |
| 349 |
<ul class="blockList"> |
| 350 |
<li class="blockList"><a name="method_detail"> |
| 351 |
<!-- --> |
| 352 |
</a> |
| 353 |
<h3>Method Detail</h3> |
| 354 |
<a name="createUI(javax.swing.JComponent)"> |
| 355 |
<!-- --> |
| 356 |
</a> |
| 357 |
<ul class="blockList"> |
| 358 |
<li class="blockList"> |
| 359 |
<h4>createUI</h4> |
| 360 |
<pre>public static <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/ComponentUI.html?is-external=true" title="class or interface in javax.swing.plaf">ComponentUI</a> createUI(<a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/JComponent.html?is-external=true" title="class or interface in javax.swing">JComponent</a> b)</pre> |
| 361 |
</li> |
| 362 |
</ul> |
| 363 |
<a name="installUI(javax.swing.JComponent)"> |
| 364 |
<!-- --> |
| 365 |
</a> |
| 366 |
<ul class="blockList"> |
| 367 |
<li class="blockList"> |
| 368 |
<h4>installUI</h4> |
| 369 |
<pre>public void installUI(<a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/JComponent.html?is-external=true" title="class or interface in javax.swing">JComponent</a> c)</pre> |
| 370 |
<dl> |
| 371 |
<dt><strong>Overrides:</strong></dt> |
| 372 |
<dd><code>installUI</code> in class <code>com.sun.java.swing.plaf.windows.WindowsComboBoxUI</code></dd> |
| 373 |
</dl> |
| 374 |
</li> |
| 375 |
</ul> |
| 376 |
<a name="installListeners()"> |
| 377 |
<!-- --> |
| 378 |
</a> |
| 379 |
<ul class="blockList"> |
| 380 |
<li class="blockList"> |
| 381 |
<h4>installListeners</h4> |
| 382 |
<pre>protected void installListeners()</pre> |
| 383 |
<dl> |
| 384 |
<dt><strong>Overrides:</strong></dt> |
| 385 |
<dd><code>installListeners</code> in class <code>com.sun.java.swing.plaf.windows.WindowsComboBoxUI</code></dd> |
| 386 |
</dl> |
| 387 |
</li> |
| 388 |
</ul> |
| 389 |
<a name="uninstallListeners()"> |
| 390 |
<!-- --> |
| 391 |
</a> |
| 392 |
<ul class="blockList"> |
| 393 |
<li class="blockList"> |
| 394 |
<h4>uninstallListeners</h4> |
| 395 |
<pre>protected void uninstallListeners()</pre> |
| 396 |
<dl> |
| 397 |
<dt><strong>Overrides:</strong></dt> |
| 398 |
<dd><code>uninstallListeners</code> in class <code>com.sun.java.swing.plaf.windows.WindowsComboBoxUI</code></dd> |
| 399 |
</dl> |
| 400 |
</li> |
| 401 |
</ul> |
| 402 |
<a name="createArrowButton()"> |
| 403 |
<!-- --> |
| 404 |
</a> |
| 405 |
<ul class="blockList"> |
| 406 |
<li class="blockList"> |
| 407 |
<h4>createArrowButton</h4> |
| 408 |
<pre>protected <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/JButton.html?is-external=true" title="class or interface in javax.swing">JButton</a> createArrowButton()</pre> |
| 409 |
<div class="block">Creates the arrow button that is to be used in the combo box.<p> |
| 410 |
|
| 411 |
Overridden to paint black triangles.</div> |
| 412 |
<dl> |
| 413 |
<dt><strong>Overrides:</strong></dt> |
| 414 |
<dd><code>createArrowButton</code> in class <code>com.sun.java.swing.plaf.windows.WindowsComboBoxUI</code></dd> |
| 415 |
</dl> |
| 416 |
</li> |
| 417 |
</ul> |
| 418 |
<a name="createEditor()"> |
| 419 |
<!-- --> |
| 420 |
</a> |
| 421 |
<ul class="blockList"> |
| 422 |
<li class="blockList"> |
| 423 |
<h4>createEditor</h4> |
| 424 |
<pre>protected <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/ComboBoxEditor.html?is-external=true" title="class or interface in javax.swing">ComboBoxEditor</a> createEditor()</pre> |
| 425 |
<div class="block">Creates the editor that is to be used in editable combo boxes. |
| 426 |
This method only gets called if a custom editor has not already |
| 427 |
been installed in the JComboBox.</div> |
| 428 |
<dl> |
| 429 |
<dt><strong>Overrides:</strong></dt> |
| 430 |
<dd><code>createEditor</code> in class <code>com.sun.java.swing.plaf.windows.WindowsComboBoxUI</code></dd> |
| 431 |
</dl> |
| 432 |
</li> |
| 433 |
</ul> |
| 434 |
<a name="createLayoutManager()"> |
| 435 |
<!-- --> |
| 436 |
</a> |
| 437 |
<ul class="blockList"> |
| 438 |
<li class="blockList"> |
| 439 |
<h4>createLayoutManager</h4> |
| 440 |
<pre>protected <a href="http://docs.oracle.com/javase/6/docs/api/java/awt/LayoutManager.html?is-external=true" title="class or interface in java.awt">LayoutManager</a> createLayoutManager()</pre> |
| 441 |
<div class="block">Creates a layout manager for managing the components which |
| 442 |
make up the combo box.<p> |
| 443 |
|
| 444 |
Overriden to use a layout that has a fixed width arrow button.</div> |
| 445 |
<dl> |
| 446 |
<dt><strong>Overrides:</strong></dt> |
| 447 |
<dd><code>createLayoutManager</code> in class <code>com.sun.java.swing.plaf.windows.WindowsComboBoxUI</code></dd> |
| 448 |
<dt><span class="strong">Returns:</span></dt><dd>an instance of a layout manager</dd></dl> |
| 449 |
</li> |
| 450 |
</ul> |
| 451 |
<a name="configureEditor()"> |
| 452 |
<!-- --> |
| 453 |
</a> |
| 454 |
<ul class="blockList"> |
| 455 |
<li class="blockList"> |
| 456 |
<h4>configureEditor</h4> |
| 457 |
<pre>protected void configureEditor()</pre> |
| 458 |
<dl> |
| 459 |
<dt><strong>Overrides:</strong></dt> |
| 460 |
<dd><code>configureEditor</code> in class <code>com.sun.java.swing.plaf.windows.WindowsComboBoxUI</code></dd> |
| 461 |
</dl> |
| 462 |
</li> |
| 463 |
</ul> |
| 464 |
<a name="createPopup()"> |
| 465 |
<!-- --> |
| 466 |
</a> |
| 467 |
<ul class="blockList"> |
| 468 |
<li class="blockList"> |
| 469 |
<h4>createPopup</h4> |
| 470 |
<pre>protected <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/ComboPopup.html?is-external=true" title="class or interface in javax.swing.plaf.basic">ComboPopup</a> createPopup()</pre> |
| 471 |
<div class="block">Creates a ComboPopup that honors the optional combo popup display value |
| 472 |
that is used to compute the popup menu width.</div> |
| 473 |
<dl> |
| 474 |
<dt><strong>Overrides:</strong></dt> |
| 475 |
<dd><code>createPopup</code> in class <code>com.sun.java.swing.plaf.windows.WindowsComboBoxUI</code></dd> |
| 476 |
</dl> |
| 477 |
</li> |
| 478 |
</ul> |
| 479 |
<a name="createRenderer()"> |
| 480 |
<!-- --> |
| 481 |
</a> |
| 482 |
<ul class="blockList"> |
| 483 |
<li class="blockList"> |
| 484 |
<h4>createRenderer</h4> |
| 485 |
<pre>protected <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/ListCellRenderer.html?is-external=true" title="class or interface in javax.swing">ListCellRenderer</a> createRenderer()</pre> |
| 486 |
<div class="block">Creates the default renderer that will be used in a non-editiable combo |
| 487 |
box. A default renderer will used only if a renderer has not been |
| 488 |
explicitly set with <code>setRenderer</code>.<p> |
| 489 |
|
| 490 |
This method differs from the superclass implementation in that |
| 491 |
it uses an empty border with the default left and right text insets, |
| 492 |
the same as used by a combo box editor.</div> |
| 493 |
<dl> |
| 494 |
<dt><strong>Overrides:</strong></dt> |
| 495 |
<dd><code>createRenderer</code> in class <code>com.sun.java.swing.plaf.windows.WindowsComboBoxUI</code></dd> |
| 496 |
<dt><span class="strong">Returns:</span></dt><dd>a <code>ListCellRender</code> used for the combo box</dd><dt><span class="strong">See Also:</span></dt><dd><a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/JComboBox.html?is-external=true#setRenderer(javax.swing.ListCellRenderer)" title="class or interface in javax.swing"><code>JComboBox.setRenderer(javax.swing.ListCellRenderer<? super E>)</code></a></dd></dl> |
| 497 |
</li> |
| 498 |
</ul> |
| 499 |
<a name="getMinimumSize(javax.swing.JComponent)"> |
| 500 |
<!-- --> |
| 501 |
</a> |
| 502 |
<ul class="blockList"> |
| 503 |
<li class="blockList"> |
| 504 |
<h4>getMinimumSize</h4> |
| 505 |
<pre>public <a href="http://docs.oracle.com/javase/6/docs/api/java/awt/Dimension.html?is-external=true" title="class or interface in java.awt">Dimension</a> getMinimumSize(<a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/JComponent.html?is-external=true" title="class or interface in javax.swing">JComponent</a> c)</pre> |
| 506 |
<div class="block">The minumum size is the size of the display area plus insets plus the button.</div> |
| 507 |
<dl> |
| 508 |
<dt><strong>Overrides:</strong></dt> |
| 509 |
<dd><code>getMinimumSize</code> in class <code>com.sun.java.swing.plaf.windows.WindowsComboBoxUI</code></dd> |
| 510 |
</dl> |
| 511 |
</li> |
| 512 |
</ul> |
| 513 |
<a name="getPreferredSize(javax.swing.JComponent)"> |
| 514 |
<!-- --> |
| 515 |
</a> |
| 516 |
<ul class="blockList"> |
| 517 |
<li class="blockList"> |
| 518 |
<h4>getPreferredSize</h4> |
| 519 |
<pre>public <a href="http://docs.oracle.com/javase/6/docs/api/java/awt/Dimension.html?is-external=true" title="class or interface in java.awt">Dimension</a> getPreferredSize(<a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/JComponent.html?is-external=true" title="class or interface in javax.swing">JComponent</a> c)</pre> |
| 520 |
<div class="block">Delegates to #getMinimumSize(Component). |
| 521 |
Overridden to return the same result in JDK 1.5 as in JDK 1.4.</div> |
| 522 |
<dl> |
| 523 |
<dt><strong>Overrides:</strong></dt> |
| 524 |
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#getPreferredSize(javax.swing.JComponent)" title="class or interface in javax.swing.plaf.basic">getPreferredSize</a></code> in class <code><a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true" title="class or interface in javax.swing.plaf.basic">BasicComboBoxUI</a></code></dd> |
| 525 |
</dl> |
| 526 |
</li> |
| 527 |
</ul> |
| 528 |
<a name="paintCurrentValue(java.awt.Graphics, java.awt.Rectangle, boolean)"> |
| 529 |
<!-- --> |
| 530 |
</a> |
| 531 |
<ul class="blockList"> |
| 532 |
<li class="blockList"> |
| 533 |
<h4>paintCurrentValue</h4> |
| 534 |
<pre>public void paintCurrentValue(<a href="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true" title="class or interface in java.awt">Graphics</a> g, |
| 535 |
<a href="http://docs.oracle.com/javase/6/docs/api/java/awt/Rectangle.html?is-external=true" title="class or interface in java.awt">Rectangle</a> bounds, |
| 536 |
boolean hasFocus)</pre> |
| 537 |
<div class="block">Paints the currently selected item.</div> |
| 538 |
<dl> |
| 539 |
<dt><strong>Overrides:</strong></dt> |
| 540 |
<dd><code>paintCurrentValue</code> in class <code>com.sun.java.swing.plaf.windows.WindowsComboBoxUI</code></dd> |
| 541 |
</dl> |
| 542 |
</li> |
| 543 |
</ul> |
| 544 |
<a name="isRendererBorderRemovable(javax.swing.JComponent)"> |
| 545 |
<!-- --> |
| 546 |
</a> |
| 547 |
<ul class="blockList"> |
| 548 |
<li class="blockList"> |
| 549 |
<h4>isRendererBorderRemovable</h4> |
| 550 |
<pre>protected boolean isRendererBorderRemovable(<a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/JComponent.html?is-external=true" title="class or interface in javax.swing">JComponent</a> rendererComponent)</pre> |
| 551 |
<div class="block">Checks and answer whether the border of the given renderer component |
| 552 |
can be removed temporarily, so the combo's selection background will |
| 553 |
be consistent with the default renderer and native appearance. |
| 554 |
This test is invoked from <code>#paintCurrentValue</code>.<p> |
| 555 |
|
| 556 |
It is safe to remove an EmptyBorder if the component doesn't override |
| 557 |
<code>#update</code>, <code>#paint</code> and <code>#paintBorder</code>. |
| 558 |
Since we know the default renderer, we can remove its border.<p> |
| 559 |
|
| 560 |
Custom renderers may set a hint to make their border removable. |
| 561 |
To do so, set the client property "isBorderRemovable" |
| 562 |
to <code>Boolean.TRUE</code>. If this client property is set, |
| 563 |
its value will be returned. If it is not set, <code>true</code> is returned |
| 564 |
if and only if the component's border is an EmptyBorder.</div> |
| 565 |
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>rendererComponent</code> - the renderer component to check</dd> |
| 566 |
<dt><span class="strong">Returns:</span></dt><dd>true if the component's border can be removed, false if not</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../com/jgoodies/looks/windows/WindowsComboBoxUI.html#paintCurrentValue(java.awt.Graphics,%20java.awt.Rectangle,%20boolean)"><code>paintCurrentValue(Graphics, Rectangle, boolean)</code></a></dd></dl> |
| 567 |
</li> |
| 568 |
</ul> |
| 569 |
<a name="rectangleForCurrentValue()"> |
| 570 |
<!-- --> |
| 571 |
</a> |
| 572 |
<ul class="blockListLast"> |
| 573 |
<li class="blockList"> |
| 574 |
<h4>rectangleForCurrentValue</h4> |
| 575 |
<pre>protected <a href="http://docs.oracle.com/javase/6/docs/api/java/awt/Rectangle.html?is-external=true" title="class or interface in java.awt">Rectangle</a> rectangleForCurrentValue()</pre> |
| 576 |
<div class="block">Returns the area that is reserved for drawing the currently selected item.</div> |
| 577 |
<dl> |
| 578 |
<dt><strong>Overrides:</strong></dt> |
| 579 |
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true#rectangleForCurrentValue()" title="class or interface in javax.swing.plaf.basic">rectangleForCurrentValue</a></code> in class <code><a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/plaf/basic/BasicComboBoxUI.html?is-external=true" title="class or interface in javax.swing.plaf.basic">BasicComboBoxUI</a></code></dd> |
| 580 |
</dl> |
| 581 |
</li> |
| 582 |
</ul> |
| 583 |
</li> |
| 584 |
</ul> |
| 585 |
</li> |
| 586 |
</ul> |
| 587 |
</div> |
| 588 |
</div> |
| 589 |
<!-- ========= END OF CLASS DATA ========= --> |
| 590 |
<!-- ======= START OF BOTTOM NAVBAR ====== --> |
| 591 |
<div class="bottomNav"><a name="navbar_bottom"> |
| 592 |
<!-- --> |
| 593 |
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> |
| 594 |
<!-- --> |
| 595 |
</a> |
| 596 |
<ul class="navList" title="Navigation"> |
| 597 |
<li><a href="../../../../overview-summary.html">Overview</a></li> |
| 598 |
<li><a href="package-summary.html">Package</a></li> |
| 599 |
<li class="navBarCell1Rev">Class</li> |
| 600 |
<li><a href="class-use/WindowsComboBoxUI.html">Use</a></li> |
| 601 |
<li><a href="package-tree.html">Tree</a></li> |
| 602 |
<li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| 603 |
<li><a href="../../../../index-all.html">Index</a></li> |
| 604 |
<li><a href="../../../../help-doc.html">Help</a></li> |
| 605 |
</ul> |
| 606 |
</div> |
| 607 |
<div class="subNav"> |
| 608 |
<ul class="navList"> |
| 609 |
<li><a href="../../../../com/jgoodies/looks/windows/WindowsButtonUI.html" title="class in com.jgoodies.looks.windows"><span class="strong">Prev Class</span></a></li> |
| 610 |
<li><a href="../../../../com/jgoodies/looks/windows/WindowsFormattedTextFieldUI.html" title="class in com.jgoodies.looks.windows"><span class="strong">Next Class</span></a></li> |
| 611 |
</ul> |
| 612 |
<ul class="navList"> |
| 613 |
<li><a href="../../../../index.html?com/jgoodies/looks/windows/WindowsComboBoxUI.html" target="_top">Frames</a></li> |
| 614 |
<li><a href="WindowsComboBoxUI.html" target="_top">No Frames</a></li> |
| 615 |
</ul> |
| 616 |
<ul class="navList" id="allclasses_navbar_bottom"> |
| 617 |
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> |
| 618 |
</ul> |
| 619 |
<div> |
| 620 |
<script type="text/javascript"><!-- |
| 621 |
allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| 622 |
if(window==top) { |
| 623 |
allClassesLink.style.display = "block"; |
| 624 |
} |
| 625 |
else { |
| 626 |
allClassesLink.style.display = "none"; |
| 627 |
} |
| 628 |
//--> |
| 629 |
</script> |
| 630 |
</div> |
| 631 |
<div> |
| 632 |
<ul class="subNavList"> |
| 633 |
<li>Summary: </li> |
| 634 |
<li><a href="#nested_classes_inherited_from_class_com.sun.java.swing.plaf.windows.WindowsComboBoxUI">Nested</a> | </li> |
| 635 |
<li><a href="#fields_inherited_from_class_javax.swing.plaf.basic.BasicComboBoxUI">Field</a> | </li> |
| 636 |
<li><a href="#constructor_summary">Constr</a> | </li> |
| 637 |
<li><a href="#method_summary">Method</a></li> |
| 638 |
</ul> |
| 639 |
<ul class="subNavList"> |
| 640 |
<li>Detail: </li> |
| 641 |
<li>Field | </li> |
| 642 |
<li><a href="#constructor_detail">Constr</a> | </li> |
| 643 |
<li><a href="#method_detail">Method</a></li> |
| 644 |
</ul> |
| 645 |
</div> |
| 646 |
<a name="skip-navbar_bottom"> |
| 647 |
<!-- --> |
| 648 |
</a></div> |
| 649 |
<!-- ======== END OF BOTTOM NAVBAR ======= --> |
| 650 |
<p class="legalCopy"><small>Copyright © 2001-2014 JGoodies Software GmbH. All Rights Reserved. </small></p> |
| 651 |
</body> |
| 652 |
</html> |