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

  ViewVC Help
Powered by ViewVC 1.1.26