/[debian]/libjgoodies-looks-java/branches/upstream/current/docs/api/com/jgoodies/looks/plastic/PlasticSpinnerUI.html
ViewVC logotype

Contents of /libjgoodies-looks-java/branches/upstream/current/docs/api/com/jgoodies/looks/plastic/PlasticSpinnerUI.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 725 - (show annotations)
Sat May 12 23:43:37 2007 UTC (14 years, 1 month ago) by gregoa
File MIME type: text/html
File size: 33603 byte(s)
[svn-upgrade] Integrating new upstream version, libjgoodies-looks-java (2.1.4)
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <!--NewPage-->
3 <HTML>
4 <HEAD>
5 <!-- Generated by javadoc (build 1.6.0_01) on Tue Apr 17 15:08:39 CEST 2007 -->
6 <TITLE>
7 PlasticSpinnerUI (JGoodies Looks 2.1 API)
8 </TITLE>
9
10 <META NAME="date" CONTENT="2007-04-17">
11
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
13
14 <SCRIPT type="text/javascript">
15 function windowTitle()
16 {
17 if (location.href.indexOf('is-external=true') == -1) {
18 parent.document.title="PlasticSpinnerUI (JGoodies Looks 2.1 API)";
19 }
20 }
21 </SCRIPT>
22 <NOSCRIPT>
23 </NOSCRIPT>
24
25 </HEAD>
26
27 <BODY BGCOLOR="white" onload="windowTitle();">
28 <HR>
29
30
31 <!-- ========= START OF TOP NAVBAR ======= -->
32 <A NAME="navbar_top"><!-- --></A>
33 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
34 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
35 <TR>
36 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
37 <A NAME="navbar_top_firstrow"><!-- --></A>
38 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
39 <TR ALIGN="center" VALIGN="top">
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
42 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/PlasticSpinnerUI.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
46 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
47 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
48 </TR>
49 </TABLE>
50 </TD>
51 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
52 </EM>
53 </TD>
54 </TR>
55
56 <TR>
57 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
58 &nbsp;<A HREF="../../../../com/jgoodies/looks/plastic/PlasticSeparatorUI.html" title="class in com.jgoodies.looks.plastic"><B>PREV CLASS</B></A>&nbsp;
59 &nbsp;<A HREF="../../../../com/jgoodies/looks/plastic/PlasticSplitPaneUI.html" title="class in com.jgoodies.looks.plastic"><B>NEXT CLASS</B></A></FONT></TD>
60 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
61 <A HREF="../../../../index.html?com/jgoodies/looks/plastic/PlasticSpinnerUI.html" target="_top"><B>FRAMES</B></A> &nbsp;
62 &nbsp;<A HREF="PlasticSpinnerUI.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
63 &nbsp;<SCRIPT type="text/javascript">
64 <!--
65 if(window==top) {
66 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
67 }
68 //-->
69 </SCRIPT>
70 <NOSCRIPT>
71 <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
72 </NOSCRIPT>
73
74
75 </FONT></TD>
76 </TR>
77 <TR>
78 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
79 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_javax.swing.plaf.basic.BasicSpinnerUI">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
80 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
81 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
82 </TR>
83 </TABLE>
84 <A NAME="skip-navbar_top"></A>
85 <!-- ========= END OF TOP NAVBAR ========= -->
86
87 <HR>
88 <!-- ======== START OF CLASS DATA ======== -->
89 <H2>
90 <FONT SIZE="-1">
91 com.jgoodies.looks.plastic</FONT>
92 <BR>
93 Class PlasticSpinnerUI</H2>
94 <PRE>
95 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
96 <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/plaf/ComponentUI.html?is-external=true" title="class or interface in javax.swing.plaf">javax.swing.plaf.ComponentUI</A>
97 <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/plaf/SpinnerUI.html?is-external=true" title="class or interface in javax.swing.plaf">javax.swing.plaf.SpinnerUI</A>
98 <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/plaf/basic/BasicSpinnerUI.html?is-external=true" title="class or interface in javax.swing.plaf.basic">javax.swing.plaf.basic.BasicSpinnerUI</A>
99 <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.jgoodies.looks.plastic.PlasticSpinnerUI</B>
100 </PRE>
101 <DL>
102 <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../com/jgoodies/looks/plastic/PlasticXPSpinnerUI.html" title="class in com.jgoodies.looks.plastic">PlasticXPSpinnerUI</A></DD>
103 </DL>
104 <HR>
105 <DL>
106 <DT><PRE>public class <B>PlasticSpinnerUI</B><DT>extends <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/plaf/basic/BasicSpinnerUI.html?is-external=true" title="class or interface in javax.swing.plaf.basic">BasicSpinnerUI</A></DL>
107 </PRE>
108
109 <P>
110 The JGoodies Plastic Look&amp;Feel implementation of <code>SpinnerUI</code>.
111 Configures the default editor to adjust font baselines and component
112 bounds. Also, changes the border of the buttons and the size of the arrows.
113 <P>
114
115 <P>
116 <DL>
117 <DT><B>Version:</B></DT>
118 <DD>$Revision: 1.4 $</DD>
119 <DT><B>Author:</B></DT>
120 <DD>Karsten Lentzsch</DD>
121 </DL>
122 <HR>
123
124 <P>
125 <!-- =========== FIELD SUMMARY =========== -->
126
127 <A NAME="field_summary"><!-- --></A>
128 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
129 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
130 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
131 <B>Field Summary</B></FONT></TH>
132 </TR>
133 </TABLE>
134 &nbsp;<A NAME="fields_inherited_from_class_javax.swing.plaf.basic.BasicSpinnerUI"><!-- --></A>
135 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
136 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
137 <TH ALIGN="left"><B>Fields inherited from class javax.swing.plaf.basic.<A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/plaf/basic/BasicSpinnerUI.html?is-external=true" title="class or interface in javax.swing.plaf.basic">BasicSpinnerUI</A></B></TH>
138 </TR>
139 <TR BGCOLOR="white" CLASS="TableRowColor">
140 <TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/plaf/basic/BasicSpinnerUI.html?is-external=true#spinner" title="class or interface in javax.swing.plaf.basic">spinner</A></CODE></TD>
141 </TR>
142 </TABLE>
143 &nbsp;
144 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
145
146 <A NAME="constructor_summary"><!-- --></A>
147 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
148 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
149 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
150 <B>Constructor Summary</B></FONT></TH>
151 </TR>
152 <TR BGCOLOR="white" CLASS="TableRowColor">
153 <TD><CODE><B><A HREF="../../../../com/jgoodies/looks/plastic/PlasticSpinnerUI.html#PlasticSpinnerUI()">PlasticSpinnerUI</A></B>()</CODE>
154
155 <BR>
156 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
157 </TR>
158 </TABLE>
159 &nbsp;
160 <!-- ========== METHOD SUMMARY =========== -->
161
162 <A NAME="method_summary"><!-- --></A>
163 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
164 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
165 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
166 <B>Method Summary</B></FONT></TH>
167 </TR>
168 <TR BGCOLOR="white" CLASS="TableRowColor">
169 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
170 <CODE>protected &nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/JComponent.html?is-external=true" title="class or interface in javax.swing">JComponent</A></CODE></FONT></TD>
171 <TD><CODE><B><A HREF="../../../../com/jgoodies/looks/plastic/PlasticSpinnerUI.html#createEditor()">createEditor</A></B>()</CODE>
172
173 <BR>
174 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method is called by installUI to get the editor component
175 of the <code>JSpinner</code>.</TD>
176 </TR>
177 <TR BGCOLOR="white" CLASS="TableRowColor">
178 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
179 <CODE>protected &nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/LayoutManager.html?is-external=true" title="class or interface in java.awt">LayoutManager</A></CODE></FONT></TD>
180 <TD><CODE><B><A HREF="../../../../com/jgoodies/looks/plastic/PlasticSpinnerUI.html#createLayout()">createLayout</A></B>()</CODE>
181
182 <BR>
183 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a <code>LayoutManager</code> that manages the <code>editor</code>,
184 <code>nextButton</code>, and <code>previousButton</code> children
185 of the JSpinner.</TD>
186 </TR>
187 <TR BGCOLOR="white" CLASS="TableRowColor">
188 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
189 <CODE>protected &nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Component.html?is-external=true" title="class or interface in java.awt">Component</A></CODE></FONT></TD>
190 <TD><CODE><B><A HREF="../../../../com/jgoodies/looks/plastic/PlasticSpinnerUI.html#createNextButton()">createNextButton</A></B>()</CODE>
191
192 <BR>
193 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a component that will replace the spinner models value
194 with the object returned by <code>spinner.getNextValue</code>.</TD>
195 </TR>
196 <TR BGCOLOR="white" CLASS="TableRowColor">
197 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
198 <CODE>protected &nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Component.html?is-external=true" title="class or interface in java.awt">Component</A></CODE></FONT></TD>
199 <TD><CODE><B><A HREF="../../../../com/jgoodies/looks/plastic/PlasticSpinnerUI.html#createPreviousButton()">createPreviousButton</A></B>()</CODE>
200
201 <BR>
202 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a component that will replace the spinner models value
203 with the object returned by <code>spinner.getPreviousValue</code>.</TD>
204 </TR>
205 <TR BGCOLOR="white" CLASS="TableRowColor">
206 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
207 <CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/plaf/ComponentUI.html?is-external=true" title="class or interface in javax.swing.plaf">ComponentUI</A></CODE></FONT></TD>
208 <TD><CODE><B><A HREF="../../../../com/jgoodies/looks/plastic/PlasticSpinnerUI.html#createUI(javax.swing.JComponent)">createUI</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/JComponent.html?is-external=true" title="class or interface in javax.swing">JComponent</A>&nbsp;b)</CODE>
209
210 <BR>
211 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
212 </TR>
213 <TR BGCOLOR="white" CLASS="TableRowColor">
214 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
215 <CODE>protected &nbsp;void</CODE></FONT></TD>
216 <TD><CODE><B><A HREF="../../../../com/jgoodies/looks/plastic/PlasticSpinnerUI.html#replaceEditor(javax.swing.JComponent, javax.swing.JComponent)">replaceEditor</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/JComponent.html?is-external=true" title="class or interface in javax.swing">JComponent</A>&nbsp;oldEditor,
217 <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/JComponent.html?is-external=true" title="class or interface in javax.swing">JComponent</A>&nbsp;newEditor)</CODE>
218
219 <BR>
220 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called by the <code>PropertyChangeListener</code> when the
221 <code>JSpinner</code> editor property changes.</TD>
222 </TR>
223 </TABLE>
224 &nbsp;<A NAME="methods_inherited_from_class_javax.swing.plaf.basic.BasicSpinnerUI"><!-- --></A>
225 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
226 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
227 <TH ALIGN="left"><B>Methods inherited from class javax.swing.plaf.basic.<A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/plaf/basic/BasicSpinnerUI.html?is-external=true" title="class or interface in javax.swing.plaf.basic">BasicSpinnerUI</A></B></TH>
228 </TR>
229 <TR BGCOLOR="white" CLASS="TableRowColor">
230 <TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/plaf/basic/BasicSpinnerUI.html?is-external=true#createPropertyChangeListener()" title="class or interface in javax.swing.plaf.basic">createPropertyChangeListener</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/plaf/basic/BasicSpinnerUI.html?is-external=true#getBaseline(javax.swing.JComponent, int, int)" title="class or interface in javax.swing.plaf.basic">getBaseline</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/plaf/basic/BasicSpinnerUI.html?is-external=true#getBaselineResizeBehavior(javax.swing.JComponent)" title="class or interface in javax.swing.plaf.basic">getBaselineResizeBehavior</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/plaf/basic/BasicSpinnerUI.html?is-external=true#installDefaults()" title="class or interface in javax.swing.plaf.basic">installDefaults</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/plaf/basic/BasicSpinnerUI.html?is-external=true#installKeyboardActions()" title="class or interface in javax.swing.plaf.basic">installKeyboardActions</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/plaf/basic/BasicSpinnerUI.html?is-external=true#installListeners()" title="class or interface in javax.swing.plaf.basic">installListeners</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/plaf/basic/BasicSpinnerUI.html?is-external=true#installNextButtonListeners(java.awt.Component)" title="class or interface in javax.swing.plaf.basic">installNextButtonListeners</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/plaf/basic/BasicSpinnerUI.html?is-external=true#installPreviousButtonListeners(java.awt.Component)" title="class or interface in javax.swing.plaf.basic">installPreviousButtonListeners</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/plaf/basic/BasicSpinnerUI.html?is-external=true#installUI(javax.swing.JComponent)" title="class or interface in javax.swing.plaf.basic">installUI</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/plaf/basic/BasicSpinnerUI.html?is-external=true#uninstallDefaults()" title="class or interface in javax.swing.plaf.basic">uninstallDefaults</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/plaf/basic/BasicSpinnerUI.html?is-external=true#uninstallListeners()" title="class or interface in javax.swing.plaf.basic">uninstallListeners</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/plaf/basic/BasicSpinnerUI.html?is-external=true#uninstallUI(javax.swing.JComponent)" title="class or interface in javax.swing.plaf.basic">uninstallUI</A></CODE></TD>
231 </TR>
232 </TABLE>
233 &nbsp;<A NAME="methods_inherited_from_class_javax.swing.plaf.ComponentUI"><!-- --></A>
234 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
235 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
236 <TH ALIGN="left"><B>Methods inherited from class javax.swing.plaf.<A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/plaf/ComponentUI.html?is-external=true" title="class or interface in javax.swing.plaf">ComponentUI</A></B></TH>
237 </TR>
238 <TR BGCOLOR="white" CLASS="TableRowColor">
239 <TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/plaf/ComponentUI.html?is-external=true#contains(javax.swing.JComponent, int, int)" title="class or interface in javax.swing.plaf">contains</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/plaf/ComponentUI.html?is-external=true#getAccessibleChild(javax.swing.JComponent, int)" title="class or interface in javax.swing.plaf">getAccessibleChild</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/plaf/ComponentUI.html?is-external=true#getAccessibleChildrenCount(javax.swing.JComponent)" title="class or interface in javax.swing.plaf">getAccessibleChildrenCount</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/plaf/ComponentUI.html?is-external=true#getMaximumSize(javax.swing.JComponent)" title="class or interface in javax.swing.plaf">getMaximumSize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/plaf/ComponentUI.html?is-external=true#getMinimumSize(javax.swing.JComponent)" title="class or interface in javax.swing.plaf">getMinimumSize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/plaf/ComponentUI.html?is-external=true#getPreferredSize(javax.swing.JComponent)" title="class or interface in javax.swing.plaf">getPreferredSize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/plaf/ComponentUI.html?is-external=true#paint(java.awt.Graphics, javax.swing.JComponent)" title="class or interface in javax.swing.plaf">paint</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/plaf/ComponentUI.html?is-external=true#update(java.awt.Graphics, javax.swing.JComponent)" title="class or interface in javax.swing.plaf">update</A></CODE></TD>
240 </TR>
241 </TABLE>
242 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
243 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
244 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
245 <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
246 </TR>
247 <TR BGCOLOR="white" CLASS="TableRowColor">
248 <TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4/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://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
249 </TR>
250 </TABLE>
251 &nbsp;
252 <P>
253
254 <!-- ========= CONSTRUCTOR DETAIL ======== -->
255
256 <A NAME="constructor_detail"><!-- --></A>
257 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
258 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
259 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
260 <B>Constructor Detail</B></FONT></TH>
261 </TR>
262 </TABLE>
263
264 <A NAME="PlasticSpinnerUI()"><!-- --></A><H3>
265 PlasticSpinnerUI</H3>
266 <PRE>
267 public <B>PlasticSpinnerUI</B>()</PRE>
268 <DL>
269 </DL>
270
271 <!-- ============ METHOD DETAIL ========== -->
272
273 <A NAME="method_detail"><!-- --></A>
274 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
275 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
276 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
277 <B>Method Detail</B></FONT></TH>
278 </TR>
279 </TABLE>
280
281 <A NAME="createUI(javax.swing.JComponent)"><!-- --></A><H3>
282 createUI</H3>
283 <PRE>
284 public static <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/plaf/ComponentUI.html?is-external=true" title="class or interface in javax.swing.plaf">ComponentUI</A> <B>createUI</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/JComponent.html?is-external=true" title="class or interface in javax.swing">JComponent</A>&nbsp;b)</PRE>
285 <DL>
286 <DD><DL>
287 </DL>
288 </DD>
289 </DL>
290 <HR>
291
292 <A NAME="createPreviousButton()"><!-- --></A><H3>
293 createPreviousButton</H3>
294 <PRE>
295 protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Component.html?is-external=true" title="class or interface in java.awt">Component</A> <B>createPreviousButton</B>()</PRE>
296 <DL>
297 <DD>Create a component that will replace the spinner models value
298 with the object returned by <code>spinner.getPreviousValue</code>.
299 By default the <code>previousButton</code> is a JButton
300 who's <code>ActionListener</code> updates it's <code>JSpinner</code>
301 ancestors model. If a previousButton isn't needed (in a subclass)
302 then override this method to return null.
303 <P>
304 <DD><DL>
305 <DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/plaf/basic/BasicSpinnerUI.html?is-external=true#createPreviousButton()" title="class or interface in javax.swing.plaf.basic">createPreviousButton</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/plaf/basic/BasicSpinnerUI.html?is-external=true" title="class or interface in javax.swing.plaf.basic">BasicSpinnerUI</A></CODE></DL>
306 </DD>
307 <DD><DL>
308
309 <DT><B>Returns:</B><DD>a component that will replace the spinners model with the
310 next value in the sequence, or null<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/plaf/basic/BasicSpinnerUI.html?is-external=true#installUI(javax.swing.JComponent)" title="class or interface in javax.swing.plaf.basic"><CODE>BasicSpinnerUI.installUI(javax.swing.JComponent)</CODE></A>,
311 <A HREF="../../../../com/jgoodies/looks/plastic/PlasticSpinnerUI.html#createNextButton()"><CODE>createNextButton()</CODE></A></DL>
312 </DD>
313 </DL>
314 <HR>
315
316 <A NAME="createNextButton()"><!-- --></A><H3>
317 createNextButton</H3>
318 <PRE>
319 protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Component.html?is-external=true" title="class or interface in java.awt">Component</A> <B>createNextButton</B>()</PRE>
320 <DL>
321 <DD>Create a component that will replace the spinner models value
322 with the object returned by <code>spinner.getNextValue</code>.
323 By default the <code>nextButton</code> is a JButton
324 who's <code>ActionListener</code> updates it's <code>JSpinner</code>
325 ancestors model. If a nextButton isn't needed (in a subclass)
326 then override this method to return null.
327 <P>
328 <DD><DL>
329 <DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/plaf/basic/BasicSpinnerUI.html?is-external=true#createNextButton()" title="class or interface in javax.swing.plaf.basic">createNextButton</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/plaf/basic/BasicSpinnerUI.html?is-external=true" title="class or interface in javax.swing.plaf.basic">BasicSpinnerUI</A></CODE></DL>
330 </DD>
331 <DD><DL>
332
333 <DT><B>Returns:</B><DD>a component that will replace the spinners model with the
334 next value in the sequence, or null<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/plaf/basic/BasicSpinnerUI.html?is-external=true#installUI(javax.swing.JComponent)" title="class or interface in javax.swing.plaf.basic"><CODE>BasicSpinnerUI.installUI(javax.swing.JComponent)</CODE></A>,
335 <A HREF="../../../../com/jgoodies/looks/plastic/PlasticSpinnerUI.html#createPreviousButton()"><CODE>createPreviousButton()</CODE></A></DL>
336 </DD>
337 </DL>
338 <HR>
339
340 <A NAME="createLayout()"><!-- --></A><H3>
341 createLayout</H3>
342 <PRE>
343 protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/LayoutManager.html?is-external=true" title="class or interface in java.awt">LayoutManager</A> <B>createLayout</B>()</PRE>
344 <DL>
345 <DD>Create a <code>LayoutManager</code> that manages the <code>editor</code>,
346 <code>nextButton</code>, and <code>previousButton</code> children
347 of the JSpinner. These three children must be added with a constraint
348 that identifies their role: "Editor", "Next", and "Previous". The
349 default layout manager can handle the absence of any of these children.
350 <P>
351 <DD><DL>
352 <DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/plaf/basic/BasicSpinnerUI.html?is-external=true#createLayout()" title="class or interface in javax.swing.plaf.basic">createLayout</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/plaf/basic/BasicSpinnerUI.html?is-external=true" title="class or interface in javax.swing.plaf.basic">BasicSpinnerUI</A></CODE></DL>
353 </DD>
354 <DD><DL>
355
356 <DT><B>Returns:</B><DD>a LayoutManager for the editor, next button, and previous
357 button.<DT><B>See Also:</B><DD><A HREF="../../../../com/jgoodies/looks/plastic/PlasticSpinnerUI.html#createNextButton()"><CODE>createNextButton()</CODE></A>,
358 <A HREF="../../../../com/jgoodies/looks/plastic/PlasticSpinnerUI.html#createPreviousButton()"><CODE>createPreviousButton()</CODE></A>,
359 <A HREF="../../../../com/jgoodies/looks/plastic/PlasticSpinnerUI.html#createEditor()"><CODE>createEditor()</CODE></A></DL>
360 </DD>
361 </DL>
362 <HR>
363
364 <A NAME="createEditor()"><!-- --></A><H3>
365 createEditor</H3>
366 <PRE>
367 protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/JComponent.html?is-external=true" title="class or interface in javax.swing">JComponent</A> <B>createEditor</B>()</PRE>
368 <DL>
369 <DD>This method is called by installUI to get the editor component
370 of the <code>JSpinner</code>. By default it just returns
371 <code>JSpinner.getEditor()</code>. Subclasses can override
372 <code>createEditor</code> to return a component that contains
373 the spinner's editor or null, if they're going to handle adding
374 the editor to the <code>JSpinner</code> in an
375 <code>installUI</code> override.
376 <p>
377 Typically this method would be overridden to wrap the editor
378 with a container with a custom border, since one can't assume
379 that the editors border can be set directly.
380 <p>
381 The <code>replaceEditor</code> method is called when the spinners
382 editor is changed with <code>JSpinner.setEditor</code>. If you've
383 overriden this method, then you'll probably want to override
384 <code>replaceEditor</code> as well.
385 <P>
386 <DD><DL>
387 <DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/plaf/basic/BasicSpinnerUI.html?is-external=true#createEditor()" title="class or interface in javax.swing.plaf.basic">createEditor</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/plaf/basic/BasicSpinnerUI.html?is-external=true" title="class or interface in javax.swing.plaf.basic">BasicSpinnerUI</A></CODE></DL>
388 </DD>
389 <DD><DL>
390
391 <DT><B>Returns:</B><DD>the JSpinners editor JComponent, spinner.getEditor() by default<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/plaf/basic/BasicSpinnerUI.html?is-external=true#installUI(javax.swing.JComponent)" title="class or interface in javax.swing.plaf.basic"><CODE>BasicSpinnerUI.installUI(javax.swing.JComponent)</CODE></A>,
392 <A HREF="../../../../com/jgoodies/looks/plastic/PlasticSpinnerUI.html#replaceEditor(javax.swing.JComponent, javax.swing.JComponent)"><CODE>replaceEditor(javax.swing.JComponent, javax.swing.JComponent)</CODE></A>,
393 <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/JSpinner.html?is-external=true#getEditor()" title="class or interface in javax.swing"><CODE>JSpinner.getEditor()</CODE></A></DL>
394 </DD>
395 </DL>
396 <HR>
397
398 <A NAME="replaceEditor(javax.swing.JComponent, javax.swing.JComponent)"><!-- --></A><H3>
399 replaceEditor</H3>
400 <PRE>
401 protected void <B>replaceEditor</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/JComponent.html?is-external=true" title="class or interface in javax.swing">JComponent</A>&nbsp;oldEditor,
402 <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/JComponent.html?is-external=true" title="class or interface in javax.swing">JComponent</A>&nbsp;newEditor)</PRE>
403 <DL>
404 <DD>Called by the <code>PropertyChangeListener</code> when the
405 <code>JSpinner</code> editor property changes. It's the responsibility
406 of this method to remove the old editor and add the new one. By
407 default this operation is just:
408 <pre>
409 spinner.remove(oldEditor);
410 spinner.add(newEditor, "Editor");
411 </pre>
412 The implementation of <code>replaceEditor</code> should be coordinated
413 with the <code>createEditor</code> method.
414 <P>
415 <DD><DL>
416 <DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/plaf/basic/BasicSpinnerUI.html?is-external=true#replaceEditor(javax.swing.JComponent, javax.swing.JComponent)" title="class or interface in javax.swing.plaf.basic">replaceEditor</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/plaf/basic/BasicSpinnerUI.html?is-external=true" title="class or interface in javax.swing.plaf.basic">BasicSpinnerUI</A></CODE></DL>
417 </DD>
418 <DD><DL>
419 <DT><B>See Also:</B><DD><A HREF="../../../../com/jgoodies/looks/plastic/PlasticSpinnerUI.html#createEditor()"><CODE>createEditor()</CODE></A>,
420 <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/plaf/basic/BasicSpinnerUI.html?is-external=true#createPropertyChangeListener()" title="class or interface in javax.swing.plaf.basic"><CODE>BasicSpinnerUI.createPropertyChangeListener()</CODE></A></DL>
421 </DD>
422 </DL>
423 <!-- ========= END OF CLASS DATA ========= -->
424 <HR>
425
426
427 <!-- ======= START OF BOTTOM NAVBAR ====== -->
428 <A NAME="navbar_bottom"><!-- --></A>
429 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
430 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
431 <TR>
432 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
433 <A NAME="navbar_bottom_firstrow"><!-- --></A>
434 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
435 <TR ALIGN="center" VALIGN="top">
436 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
437 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
438 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
439 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/PlasticSpinnerUI.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
440 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
441 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
442 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
443 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
444 </TR>
445 </TABLE>
446 </TD>
447 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
448 </EM>
449 </TD>
450 </TR>
451
452 <TR>
453 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
454 &nbsp;<A HREF="../../../../com/jgoodies/looks/plastic/PlasticSeparatorUI.html" title="class in com.jgoodies.looks.plastic"><B>PREV CLASS</B></A>&nbsp;
455 &nbsp;<A HREF="../../../../com/jgoodies/looks/plastic/PlasticSplitPaneUI.html" title="class in com.jgoodies.looks.plastic"><B>NEXT CLASS</B></A></FONT></TD>
456 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
457 <A HREF="../../../../index.html?com/jgoodies/looks/plastic/PlasticSpinnerUI.html" target="_top"><B>FRAMES</B></A> &nbsp;
458 &nbsp;<A HREF="PlasticSpinnerUI.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
459 &nbsp;<SCRIPT type="text/javascript">
460 <!--
461 if(window==top) {
462 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
463 }
464 //-->
465 </SCRIPT>
466 <NOSCRIPT>
467 <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
468 </NOSCRIPT>
469
470
471 </FONT></TD>
472 </TR>
473 <TR>
474 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
475 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_javax.swing.plaf.basic.BasicSpinnerUI">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
476 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
477 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
478 </TR>
479 </TABLE>
480 <A NAME="skip-navbar_bottom"></A>
481 <!-- ======== END OF BOTTOM NAVBAR ======= -->
482
483 <HR>
484 Copyright &#169; 2001-2007 JGoodies Karsten Lentzsch. All Rights Reserved.
485 </BODY>
486 </HTML>

  ViewVC Help
Powered by ViewVC 1.1.26