/lib/docs/api/com/toedter/components/JSpinField.html

http://mp-rechnungs-und-kundenverwaltung.googlecode.com/ · HTML · 981 lines · 868 code · 88 blank · 25 comment · 0 complexity · cea708e3185891782873620ffaafff81 MD5 · raw file

  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_06) on Sun Jun 04 15:41:17 CEST 2006 -->
  6. <TITLE>
  7. JSpinField (JCalendar API)
  8. </TITLE>
  9. <META NAME="keywords" CONTENT="com.toedter.components.JSpinField class">
  10. <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
  11. <SCRIPT type="text/javascript">
  12. function windowTitle()
  13. {
  14. parent.document.title="JSpinField (JCalendar API)";
  15. }
  16. </SCRIPT>
  17. <NOSCRIPT>
  18. </NOSCRIPT>
  19. </HEAD>
  20. <BODY BGCOLOR="white" onload="windowTitle();">
  21. <!-- ========= START OF TOP NAVBAR ======= -->
  22. <A NAME="navbar_top"><!-- --></A>
  23. <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
  24. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  25. <TR>
  26. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  27. <A NAME="navbar_top_firstrow"><!-- --></A>
  28. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  29. <TR ALIGN="center" VALIGN="top">
  30. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  31. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  32. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  33. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  34. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  35. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  36. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  37. </TR>
  38. </TABLE>
  39. </TD>
  40. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  41. </EM>
  42. </TD>
  43. </TR>
  44. <TR>
  45. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  46. &nbsp;<A HREF="../../../com/toedter/components/JLocaleChooserBeanInfo.html" title="class in com.toedter.components"><B>PREV CLASS</B></A>&nbsp;
  47. &nbsp;<A HREF="../../../com/toedter/components/JSpinFieldBeanInfo.html" title="class in com.toedter.components"><B>NEXT CLASS</B></A></FONT></TD>
  48. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  49. <A HREF="../../../index.html?com/toedter/components/JSpinField.html" target="_top"><B>FRAMES</B></A> &nbsp;
  50. &nbsp;<A HREF="JSpinField.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  51. &nbsp;<SCRIPT type="text/javascript">
  52. <!--
  53. if(window==top) {
  54. document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  55. }
  56. //-->
  57. </SCRIPT>
  58. <NOSCRIPT>
  59. <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
  60. </NOSCRIPT>
  61. </FONT></TD>
  62. </TR>
  63. <TR>
  64. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  65. SUMMARY:&nbsp;<A HREF="#nested_classes_inherited_from_class_javax.swing.JPanel">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  66. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  67. DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  68. </TR>
  69. </TABLE>
  70. <A NAME="skip-navbar_top"></A>
  71. <!-- ========= END OF TOP NAVBAR ========= -->
  72. <HR>
  73. <!-- ======== START OF CLASS DATA ======== -->
  74. <H2>
  75. <FONT SIZE="-1">
  76. com.toedter.components</FONT>
  77. <BR>
  78. Class JSpinField</H2>
  79. <PRE>
  80. java.lang.Object
  81. <IMG SRC="../../../resources/inherit.gif" ALT="extended by ">java.awt.Component
  82. <IMG SRC="../../../resources/inherit.gif" ALT="extended by ">java.awt.Container
  83. <IMG SRC="../../../resources/inherit.gif" ALT="extended by ">javax.swing.JComponent
  84. <IMG SRC="../../../resources/inherit.gif" ALT="extended by ">javax.swing.JPanel
  85. <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>com.toedter.components.JSpinField</B>
  86. </PRE>
  87. <DL>
  88. <DT><B>All Implemented Interfaces:</B> <DD>java.awt.event.ActionListener, java.awt.event.FocusListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.event.CaretListener, javax.swing.event.ChangeListener</DD>
  89. </DL>
  90. <DL>
  91. <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../com/toedter/calendar/JYearChooser.html" title="class in com.toedter.calendar">JYearChooser</A></DD>
  92. </DL>
  93. <HR>
  94. <DL>
  95. <DT><PRE>public class <B>JSpinField</B><DT>extends javax.swing.JPanel<DT>implements javax.swing.event.ChangeListener, javax.swing.event.CaretListener, java.awt.event.ActionListener, java.awt.event.FocusListener</DL>
  96. </PRE>
  97. <P>
  98. JSpinField is a numeric field with 2 spin buttons to increase or decrease the
  99. value. It has the same interface as the "old" JSpinField but uses a JSpinner
  100. internally (since J2SE SDK 1.4) rather than a scrollbar for emulating the
  101. spin buttons.
  102. <P>
  103. <P>
  104. <DL>
  105. <DT><B>Version:</B></DT>
  106. <DD>$LastChangedRevision: 85 $, $LastChangedDate: 2006-04-28 13:50:52 +0200 (Fr, 28 Apr 2006) $</DD>
  107. <DT><B>Author:</B></DT>
  108. <DD>Kai Toedter</DD>
  109. <DT><B>See Also:</B><DD><A HREF="../../../serialized-form.html#com.toedter.components.JSpinField">Serialized Form</A></DL>
  110. <HR>
  111. <P>
  112. <!-- ======== NESTED CLASS SUMMARY ======== -->
  113. <A NAME="nested_class_summary"><!-- --></A>
  114. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  115. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  116. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  117. <B>Nested Class Summary</B></FONT></TH>
  118. </TR>
  119. </TABLE>
  120. &nbsp;<A NAME="nested_classes_inherited_from_class_javax.swing.JPanel"><!-- --></A>
  121. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  122. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  123. <TH ALIGN="left"><B>Nested classes/interfaces inherited from class javax.swing.JPanel</B></TH>
  124. </TR>
  125. <TR BGCOLOR="white" CLASS="TableRowColor">
  126. <TD><CODE>javax.swing.JPanel.AccessibleJPanel</CODE></TD>
  127. </TR>
  128. </TABLE>
  129. &nbsp;
  130. <A NAME="nested_classes_inherited_from_class_javax.swing.JComponent"><!-- --></A>
  131. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  132. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  133. <TH ALIGN="left"><B>Nested classes/interfaces inherited from class javax.swing.JComponent</B></TH>
  134. </TR>
  135. <TR BGCOLOR="white" CLASS="TableRowColor">
  136. <TD><CODE>javax.swing.JComponent.AccessibleJComponent</CODE></TD>
  137. </TR>
  138. </TABLE>
  139. &nbsp;
  140. <A NAME="nested_classes_inherited_from_class_java.awt.Container"><!-- --></A>
  141. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  142. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  143. <TH ALIGN="left"><B>Nested classes/interfaces inherited from class java.awt.Container</B></TH>
  144. </TR>
  145. <TR BGCOLOR="white" CLASS="TableRowColor">
  146. <TD><CODE>java.awt.Container.AccessibleAWTContainer</CODE></TD>
  147. </TR>
  148. </TABLE>
  149. &nbsp;
  150. <A NAME="nested_classes_inherited_from_class_java.awt.Component"><!-- --></A>
  151. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  152. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  153. <TH ALIGN="left"><B>Nested classes/interfaces inherited from class java.awt.Component</B></TH>
  154. </TR>
  155. <TR BGCOLOR="white" CLASS="TableRowColor">
  156. <TD><CODE>java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy</CODE></TD>
  157. </TR>
  158. </TABLE>
  159. &nbsp;
  160. <!-- =========== FIELD SUMMARY =========== -->
  161. <A NAME="field_summary"><!-- --></A>
  162. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  163. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  164. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  165. <B>Field Summary</B></FONT></TH>
  166. </TR>
  167. <TR BGCOLOR="white" CLASS="TableRowColor">
  168. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  169. <CODE>protected &nbsp;java.awt.Color</CODE></FONT></TD>
  170. <TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#darkGreen">darkGreen</A></B></CODE>
  171. <BR>
  172. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  173. </TR>
  174. <TR BGCOLOR="white" CLASS="TableRowColor">
  175. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  176. <CODE>protected &nbsp;int</CODE></FONT></TD>
  177. <TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#max">max</A></B></CODE>
  178. <BR>
  179. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  180. </TR>
  181. <TR BGCOLOR="white" CLASS="TableRowColor">
  182. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  183. <CODE>protected &nbsp;int</CODE></FONT></TD>
  184. <TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#min">min</A></B></CODE>
  185. <BR>
  186. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  187. </TR>
  188. <TR BGCOLOR="white" CLASS="TableRowColor">
  189. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  190. <CODE>protected &nbsp;javax.swing.JSpinner</CODE></FONT></TD>
  191. <TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#spinner">spinner</A></B></CODE>
  192. <BR>
  193. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  194. </TR>
  195. <TR BGCOLOR="white" CLASS="TableRowColor">
  196. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  197. <CODE>protected &nbsp;javax.swing.JTextField</CODE></FONT></TD>
  198. <TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#textField">textField</A></B></CODE>
  199. <BR>
  200. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the text (number) field</TD>
  201. </TR>
  202. <TR BGCOLOR="white" CLASS="TableRowColor">
  203. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  204. <CODE>protected &nbsp;int</CODE></FONT></TD>
  205. <TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#value">value</A></B></CODE>
  206. <BR>
  207. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  208. </TR>
  209. </TABLE>
  210. &nbsp;<A NAME="fields_inherited_from_class_javax.swing.JComponent"><!-- --></A>
  211. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  212. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  213. <TH ALIGN="left"><B>Fields inherited from class javax.swing.JComponent</B></TH>
  214. </TR>
  215. <TR BGCOLOR="white" CLASS="TableRowColor">
  216. <TD><CODE>accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW</CODE></TD>
  217. </TR>
  218. </TABLE>
  219. &nbsp;<A NAME="fields_inherited_from_class_java.awt.Component"><!-- --></A>
  220. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  221. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  222. <TH ALIGN="left"><B>Fields inherited from class java.awt.Component</B></TH>
  223. </TR>
  224. <TR BGCOLOR="white" CLASS="TableRowColor">
  225. <TD><CODE>BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT</CODE></TD>
  226. </TR>
  227. </TABLE>
  228. &nbsp;<A NAME="fields_inherited_from_class_java.awt.image.ImageObserver"><!-- --></A>
  229. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  230. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  231. <TH ALIGN="left"><B>Fields inherited from interface java.awt.image.ImageObserver</B></TH>
  232. </TR>
  233. <TR BGCOLOR="white" CLASS="TableRowColor">
  234. <TD><CODE>ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH</CODE></TD>
  235. </TR>
  236. </TABLE>
  237. &nbsp;
  238. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  239. <A NAME="constructor_summary"><!-- --></A>
  240. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  241. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  242. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  243. <B>Constructor Summary</B></FONT></TH>
  244. </TR>
  245. <TR BGCOLOR="white" CLASS="TableRowColor">
  246. <TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#JSpinField()">JSpinField</A></B>()</CODE>
  247. <BR>
  248. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default JSpinField constructor.</TD>
  249. </TR>
  250. <TR BGCOLOR="white" CLASS="TableRowColor">
  251. <TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#JSpinField(int, int)">JSpinField</A></B>(int&nbsp;min,
  252. int&nbsp;max)</CODE>
  253. <BR>
  254. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;JSpinField constructor with given minimum and maximum vaues and initial
  255. value 0.</TD>
  256. </TR>
  257. </TABLE>
  258. &nbsp;
  259. <!-- ========== METHOD SUMMARY =========== -->
  260. <A NAME="method_summary"><!-- --></A>
  261. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  262. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  263. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  264. <B>Method Summary</B></FONT></TH>
  265. </TR>
  266. <TR BGCOLOR="white" CLASS="TableRowColor">
  267. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  268. <CODE>&nbsp;void</CODE></FONT></TD>
  269. <TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#actionPerformed(java.awt.event.ActionEvent)">actionPerformed</A></B>(java.awt.event.ActionEvent&nbsp;e)</CODE>
  270. <BR>
  271. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;After any user input, the value of the textfield is proofed.</TD>
  272. </TR>
  273. <TR BGCOLOR="white" CLASS="TableRowColor">
  274. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  275. <CODE>&nbsp;void</CODE></FONT></TD>
  276. <TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#adjustWidthToMaximumValue()">adjustWidthToMaximumValue</A></B>()</CODE>
  277. <BR>
  278. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  279. </TR>
  280. <TR BGCOLOR="white" CLASS="TableRowColor">
  281. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  282. <CODE>&nbsp;void</CODE></FONT></TD>
  283. <TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#caretUpdate(javax.swing.event.CaretEvent)">caretUpdate</A></B>(javax.swing.event.CaretEvent&nbsp;e)</CODE>
  284. <BR>
  285. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;After any user input, the value of the textfield is proofed.</TD>
  286. </TR>
  287. <TR BGCOLOR="white" CLASS="TableRowColor">
  288. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  289. <CODE>&nbsp;void</CODE></FONT></TD>
  290. <TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#focusGained(java.awt.event.FocusEvent)">focusGained</A></B>(java.awt.event.FocusEvent&nbsp;e)</CODE>
  291. <BR>
  292. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  293. </TR>
  294. <TR BGCOLOR="white" CLASS="TableRowColor">
  295. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  296. <CODE>&nbsp;void</CODE></FONT></TD>
  297. <TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#focusLost(java.awt.event.FocusEvent)">focusLost</A></B>(java.awt.event.FocusEvent&nbsp;e)</CODE>
  298. <BR>
  299. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The value of the text field is checked against a valid (green) value.</TD>
  300. </TR>
  301. <TR BGCOLOR="white" CLASS="TableRowColor">
  302. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  303. <CODE>&nbsp;int</CODE></FONT></TD>
  304. <TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#getMaximum()">getMaximum</A></B>()</CODE>
  305. <BR>
  306. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the maximum value.</TD>
  307. </TR>
  308. <TR BGCOLOR="white" CLASS="TableRowColor">
  309. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  310. <CODE>&nbsp;int</CODE></FONT></TD>
  311. <TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#getMinimum()">getMinimum</A></B>()</CODE>
  312. <BR>
  313. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the minimum value.</TD>
  314. </TR>
  315. <TR BGCOLOR="white" CLASS="TableRowColor">
  316. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  317. <CODE>&nbsp;java.awt.Component</CODE></FONT></TD>
  318. <TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#getSpinner()">getSpinner</A></B>()</CODE>
  319. <BR>
  320. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the year chooser's spinner (which allow the focus to be set to
  321. it).</TD>
  322. </TR>
  323. <TR BGCOLOR="white" CLASS="TableRowColor">
  324. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  325. <CODE>&nbsp;int</CODE></FONT></TD>
  326. <TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#getValue()">getValue</A></B>()</CODE>
  327. <BR>
  328. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the value.</TD>
  329. </TR>
  330. <TR BGCOLOR="white" CLASS="TableRowColor">
  331. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  332. <CODE>static&nbsp;void</CODE></FONT></TD>
  333. <TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#main(java.lang.String[])">main</A></B>(java.lang.String[]&nbsp;s)</CODE>
  334. <BR>
  335. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a JFrame with a JSpinField inside and can be used for testing.</TD>
  336. </TR>
  337. <TR BGCOLOR="white" CLASS="TableRowColor">
  338. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  339. <CODE>&nbsp;void</CODE></FONT></TD>
  340. <TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#setEnabled(boolean)">setEnabled</A></B>(boolean&nbsp;enabled)</CODE>
  341. <BR>
  342. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enable or disable the JSpinField.</TD>
  343. </TR>
  344. <TR BGCOLOR="white" CLASS="TableRowColor">
  345. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  346. <CODE>&nbsp;void</CODE></FONT></TD>
  347. <TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#setFont(java.awt.Font)">setFont</A></B>(java.awt.Font&nbsp;font)</CODE>
  348. <BR>
  349. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the font property.</TD>
  350. </TR>
  351. <TR BGCOLOR="white" CLASS="TableRowColor">
  352. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  353. <CODE>&nbsp;void</CODE></FONT></TD>
  354. <TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#setForeground(java.awt.Color)">setForeground</A></B>(java.awt.Color&nbsp;fg)</CODE>
  355. <BR>
  356. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the foreground</TD>
  357. </TR>
  358. <TR BGCOLOR="white" CLASS="TableRowColor">
  359. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  360. <CODE>&nbsp;void</CODE></FONT></TD>
  361. <TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#setHorizontalAlignment(int)">setHorizontalAlignment</A></B>(int&nbsp;alignment)</CODE>
  362. <BR>
  363. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the horizontal alignment of the displayed value.</TD>
  364. </TR>
  365. <TR BGCOLOR="white" CLASS="TableRowColor">
  366. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  367. <CODE>&nbsp;void</CODE></FONT></TD>
  368. <TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#setMaximum(int)">setMaximum</A></B>(int&nbsp;newMaximum)</CODE>
  369. <BR>
  370. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the maximum value and adjusts the preferred width.</TD>
  371. </TR>
  372. <TR BGCOLOR="white" CLASS="TableRowColor">
  373. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  374. <CODE>&nbsp;void</CODE></FONT></TD>
  375. <TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#setMinimum(int)">setMinimum</A></B>(int&nbsp;newMinimum)</CODE>
  376. <BR>
  377. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the minimum value.</TD>
  378. </TR>
  379. <TR BGCOLOR="white" CLASS="TableRowColor">
  380. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  381. <CODE>&nbsp;void</CODE></FONT></TD>
  382. <TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#setValue(int)">setValue</A></B>(int&nbsp;newValue)</CODE>
  383. <BR>
  384. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the value.</TD>
  385. </TR>
  386. <TR BGCOLOR="white" CLASS="TableRowColor">
  387. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  388. <CODE>protected &nbsp;void</CODE></FONT></TD>
  389. <TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#setValue(int, boolean, boolean)">setValue</A></B>(int&nbsp;newValue,
  390. boolean&nbsp;updateTextField,
  391. boolean&nbsp;firePropertyChange)</CODE>
  392. <BR>
  393. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the value attribute of the JSpinField object.</TD>
  394. </TR>
  395. <TR BGCOLOR="white" CLASS="TableRowColor">
  396. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  397. <CODE>&nbsp;void</CODE></FONT></TD>
  398. <TD><CODE><B><A HREF="../../../com/toedter/components/JSpinField.html#stateChanged(javax.swing.event.ChangeEvent)">stateChanged</A></B>(javax.swing.event.ChangeEvent&nbsp;e)</CODE>
  399. <BR>
  400. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Is invoked when the spinner model changes</TD>
  401. </TR>
  402. </TABLE>
  403. &nbsp;<A NAME="methods_inherited_from_class_javax.swing.JPanel"><!-- --></A>
  404. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  405. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  406. <TH ALIGN="left"><B>Methods inherited from class javax.swing.JPanel</B></TH>
  407. </TR>
  408. <TR BGCOLOR="white" CLASS="TableRowColor">
  409. <TD><CODE>getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI</CODE></TD>
  410. </TR>
  411. </TABLE>
  412. &nbsp;<A NAME="methods_inherited_from_class_javax.swing.JComponent"><!-- --></A>
  413. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  414. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  415. <TH ALIGN="left"><B>Methods inherited from class javax.swing.JComponent</B></TH>
  416. </TR>
  417. <TR BGCOLOR="white" CLASS="TableRowColor">
  418. <TD><CODE>addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update</CODE></TD>
  419. </TR>
  420. </TABLE>
  421. &nbsp;<A NAME="methods_inherited_from_class_java.awt.Container"><!-- --></A>
  422. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  423. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  424. <TH ALIGN="left"><B>Methods inherited from class java.awt.Container</B></TH>
  425. </TR>
  426. <TR BGCOLOR="white" CLASS="TableRowColor">
  427. <TD><CODE>add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree</CODE></TD>
  428. </TR>
  429. </TABLE>
  430. &nbsp;<A NAME="methods_inherited_from_class_java.awt.Component"><!-- --></A>
  431. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  432. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  433. <TH ALIGN="left"><B>Methods inherited from class java.awt.Component</B></TH>
  434. </TR>
  435. <TR BGCOLOR="white" CLASS="TableRowColor">
  436. <TD><CODE>action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle</CODE></TD>
  437. </TR>
  438. </TABLE>
  439. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  440. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  441. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  442. <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
  443. </TR>
  444. <TR BGCOLOR="white" CLASS="TableRowColor">
  445. <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
  446. </TR>
  447. </TABLE>
  448. &nbsp;
  449. <P>
  450. <!-- ============ FIELD DETAIL =========== -->
  451. <A NAME="field_detail"><!-- --></A>
  452. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  453. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  454. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  455. <B>Field Detail</B></FONT></TH>
  456. </TR>
  457. </TABLE>
  458. <A NAME="spinner"><!-- --></A><H3>
  459. spinner</H3>
  460. <PRE>
  461. protected javax.swing.JSpinner <B>spinner</B></PRE>
  462. <DL>
  463. <DL>
  464. </DL>
  465. </DL>
  466. <HR>
  467. <A NAME="textField"><!-- --></A><H3>
  468. textField</H3>
  469. <PRE>
  470. protected javax.swing.JTextField <B>textField</B></PRE>
  471. <DL>
  472. <DD>the text (number) field
  473. <P>
  474. <DL>
  475. </DL>
  476. </DL>
  477. <HR>
  478. <A NAME="min"><!-- --></A><H3>
  479. min</H3>
  480. <PRE>
  481. protected int <B>min</B></PRE>
  482. <DL>
  483. <DL>
  484. </DL>
  485. </DL>
  486. <HR>
  487. <A NAME="max"><!-- --></A><H3>
  488. max</H3>
  489. <PRE>
  490. protected int <B>max</B></PRE>
  491. <DL>
  492. <DL>
  493. </DL>
  494. </DL>
  495. <HR>
  496. <A NAME="value"><!-- --></A><H3>
  497. value</H3>
  498. <PRE>
  499. protected int <B>value</B></PRE>
  500. <DL>
  501. <DL>
  502. </DL>
  503. </DL>
  504. <HR>
  505. <A NAME="darkGreen"><!-- --></A><H3>
  506. darkGreen</H3>
  507. <PRE>
  508. protected java.awt.Color <B>darkGreen</B></PRE>
  509. <DL>
  510. <DL>
  511. </DL>
  512. </DL>
  513. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  514. <A NAME="constructor_detail"><!-- --></A>
  515. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  516. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  517. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  518. <B>Constructor Detail</B></FONT></TH>
  519. </TR>
  520. </TABLE>
  521. <A NAME="JSpinField()"><!-- --></A><H3>
  522. JSpinField</H3>
  523. <PRE>
  524. public <B>JSpinField</B>()</PRE>
  525. <DL>
  526. <DD>Default JSpinField constructor. The valid value range is between
  527. Integer.MIN_VALUE and Integer.MAX_VALUE. The initial value is 0.
  528. <P>
  529. </DL>
  530. <HR>
  531. <A NAME="JSpinField(int, int)"><!-- --></A><H3>
  532. JSpinField</H3>
  533. <PRE>
  534. public <B>JSpinField</B>(int&nbsp;min,
  535. int&nbsp;max)</PRE>
  536. <DL>
  537. <DD>JSpinField constructor with given minimum and maximum vaues and initial
  538. value 0.
  539. <P>
  540. </DL>
  541. <!-- ============ METHOD DETAIL ========== -->
  542. <A NAME="method_detail"><!-- --></A>
  543. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  544. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  545. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  546. <B>Method Detail</B></FONT></TH>
  547. </TR>
  548. </TABLE>
  549. <A NAME="adjustWidthToMaximumValue()"><!-- --></A><H3>
  550. adjustWidthToMaximumValue</H3>
  551. <PRE>
  552. public void <B>adjustWidthToMaximumValue</B>()</PRE>
  553. <DL>
  554. <DD><DL>
  555. </DL>
  556. </DD>
  557. <DD><DL>
  558. </DL>
  559. </DD>
  560. </DL>
  561. <HR>
  562. <A NAME="stateChanged(javax.swing.event.ChangeEvent)"><!-- --></A><H3>
  563. stateChanged</H3>
  564. <PRE>
  565. public void <B>stateChanged</B>(javax.swing.event.ChangeEvent&nbsp;e)</PRE>
  566. <DL>
  567. <DD>Is invoked when the spinner model changes
  568. <P>
  569. <DD><DL>
  570. <DT><B>Specified by:</B><DD><CODE>stateChanged</CODE> in interface <CODE>javax.swing.event.ChangeListener</CODE></DL>
  571. </DD>
  572. <DD><DL>
  573. <DT><B>Parameters:</B><DD><CODE>e</CODE> - the ChangeEvent</DL>
  574. </DD>
  575. </DL>
  576. <HR>
  577. <A NAME="setValue(int, boolean, boolean)"><!-- --></A><H3>
  578. setValue</H3>
  579. <PRE>
  580. protected void <B>setValue</B>(int&nbsp;newValue,
  581. boolean&nbsp;updateTextField,
  582. boolean&nbsp;firePropertyChange)</PRE>
  583. <DL>
  584. <DD>Sets the value attribute of the JSpinField object.
  585. <P>
  586. <DD><DL>
  587. </DL>
  588. </DD>
  589. <DD><DL>
  590. <DT><B>Parameters:</B><DD><CODE>newValue</CODE> - The new value<DD><CODE>updateTextField</CODE> - true if text field should be updated</DL>
  591. </DD>
  592. </DL>
  593. <HR>
  594. <A NAME="setValue(int)"><!-- --></A><H3>
  595. setValue</H3>
  596. <PRE>
  597. public void <B>setValue</B>(int&nbsp;newValue)</PRE>
  598. <DL>
  599. <DD>Sets the value. This is a bound property.
  600. <P>
  601. <DD><DL>
  602. </DL>
  603. </DD>
  604. <DD><DL>
  605. <DT><B>Parameters:</B><DD><CODE>newValue</CODE> - the new value<DT><B>See Also:</B><DD><A HREF="../../../com/toedter/components/JSpinField.html#getValue()"><CODE>getValue()</CODE></A></DL>
  606. </DD>
  607. </DL>
  608. <HR>
  609. <A NAME="getValue()"><!-- --></A><H3>
  610. getValue</H3>
  611. <PRE>
  612. public int <B>getValue</B>()</PRE>
  613. <DL>
  614. <DD>Returns the value.
  615. <P>
  616. <DD><DL>
  617. </DL>
  618. </DD>
  619. <DD><DL>
  620. <DT><B>Returns:</B><DD>the value value</DL>
  621. </DD>
  622. </DL>
  623. <HR>
  624. <A NAME="setMinimum(int)"><!-- --></A><H3>
  625. setMinimum</H3>
  626. <PRE>
  627. public void <B>setMinimum</B>(int&nbsp;newMinimum)</PRE>
  628. <DL>
  629. <DD>Sets the minimum value.
  630. <P>
  631. <DD><DL>
  632. </DL>
  633. </DD>
  634. <DD><DL>
  635. <DT><B>Parameters:</B><DD><CODE>newMinimum</CODE> - the new minimum value<DT><B>See Also:</B><DD><A HREF="../../../com/toedter/components/JSpinField.html#getMinimum()"><CODE>getMinimum()</CODE></A></DL>
  636. </DD>
  637. </DL>
  638. <HR>
  639. <A NAME="getMinimum()"><!-- --></A><H3>
  640. getMinimum</H3>
  641. <PRE>
  642. public int <B>getMinimum</B>()</PRE>
  643. <DL>
  644. <DD>Returns the minimum value.
  645. <P>
  646. <DD><DL>
  647. </DL>
  648. </DD>
  649. <DD><DL>
  650. <DT><B>Returns:</B><DD>the minimum value</DL>
  651. </DD>
  652. </DL>
  653. <HR>
  654. <A NAME="setMaximum(int)"><!-- --></A><H3>
  655. setMaximum</H3>
  656. <PRE>
  657. public void <B>setMaximum</B>(int&nbsp;newMaximum)</PRE>
  658. <DL>
  659. <DD>Sets the maximum value and adjusts the preferred width.
  660. <P>
  661. <DD><DL>
  662. </DL>
  663. </DD>
  664. <DD><DL>
  665. <DT><B>Parameters:</B><DD><CODE>newMaximum</CODE> - the new maximum value<DT><B>See Also:</B><DD><A HREF="../../../com/toedter/components/JSpinField.html#getMaximum()"><CODE>getMaximum()</CODE></A></DL>
  666. </DD>
  667. </DL>
  668. <HR>
  669. <A NAME="setHorizontalAlignment(int)"><!-- --></A><H3>
  670. setHorizontalAlignment</H3>
  671. <PRE>
  672. public void <B>setHorizontalAlignment</B>(int&nbsp;alignment)</PRE>
  673. <DL>
  674. <DD>Sets the horizontal alignment of the displayed value.
  675. <P>
  676. <DD><DL>
  677. </DL>
  678. </DD>
  679. <DD><DL>
  680. <DT><B>Parameters:</B><DD><CODE>alignment</CODE> - the horizontal alignment</DL>
  681. </DD>
  682. </DL>
  683. <HR>
  684. <A NAME="getMaximum()"><!-- --></A><H3>
  685. getMaximum</H3>
  686. <PRE>
  687. public int <B>getMaximum</B>()</PRE>
  688. <DL>
  689. <DD>Returns the maximum value.
  690. <P>
  691. <DD><DL>
  692. </DL>
  693. </DD>
  694. <DD><DL>
  695. <DT><B>Returns:</B><DD>the maximum value</DL>
  696. </DD>
  697. </DL>
  698. <HR>
  699. <A NAME="setFont(java.awt.Font)"><!-- --></A><H3>
  700. setFont</H3>
  701. <PRE>
  702. public void <B>setFont</B>(java.awt.Font&nbsp;font)</PRE>
  703. <DL>
  704. <DD>Sets the font property.
  705. <P>
  706. <DD><DL>
  707. <DT><B>Overrides:</B><DD><CODE>setFont</CODE> in class <CODE>javax.swing.JComponent</CODE></DL>
  708. </DD>
  709. <DD><DL>
  710. <DT><B>Parameters:</B><DD><CODE>font</CODE> - the new font</DL>
  711. </DD>
  712. </DL>
  713. <HR>
  714. <A NAME="setForeground(java.awt.Color)"><!-- --></A><H3>
  715. setForeground</H3>
  716. <PRE>
  717. public void <B>setForeground</B>(java.awt.Color&nbsp;fg)</PRE>
  718. <DL>
  719. <DD>Sets the foreground
  720. <P>
  721. <DD><DL>
  722. <DT><B>Overrides:</B><DD><CODE>setForeground</CODE> in class <CODE>javax.swing.JComponent</CODE></DL>
  723. </DD>
  724. <DD><DL>
  725. <DT><B>Parameters:</B><DD><CODE>fg</CODE> - the foreground</DL>
  726. </DD>
  727. </DL>
  728. <HR>
  729. <A NAME="caretUpdate(javax.swing.event.CaretEvent)"><!-- --></A><H3>
  730. caretUpdate</H3>
  731. <PRE>
  732. public void <B>caretUpdate</B>(javax.swing.event.CaretEvent&nbsp;e)</PRE>
  733. <DL>
  734. <DD>After any user input, the value of the textfield is proofed. Depending on
  735. being an integer, the value is colored green or red.
  736. <P>
  737. <DD><DL>
  738. <DT><B>Specified by:</B><DD><CODE>caretUpdate</CODE> in interface <CODE>javax.swing.event.CaretListener</CODE></DL>
  739. </DD>
  740. <DD><DL>
  741. <DT><B>Parameters:</B><DD><CODE>e</CODE> - the caret event</DL>
  742. </DD>
  743. </DL>
  744. <HR>
  745. <A NAME="actionPerformed(java.awt.event.ActionEvent)"><!-- --></A><H3>
  746. actionPerformed</H3>
  747. <PRE>
  748. public void <B>actionPerformed</B>(java.awt.event.ActionEvent&nbsp;e)</PRE>
  749. <DL>
  750. <DD>After any user input, the value of the textfield is proofed. Depending on
  751. being an integer, the value is colored green or red. If the textfield is
  752. green, the enter key is accepted and the new value is set.
  753. <P>
  754. <DD><DL>
  755. <DT><B>Specified by:</B><DD><CODE>actionPerformed</CODE> in interface <CODE>java.awt.event.ActionListener</CODE></DL>
  756. </DD>
  757. <DD><DL>
  758. <DT><B>Parameters:</B><DD><CODE>e</CODE> - Description of the Parameter</DL>
  759. </DD>
  760. </DL>
  761. <HR>
  762. <A NAME="setEnabled(boolean)"><!-- --></A><H3>
  763. setEnabled</H3>
  764. <PRE>
  765. public void <B>setEnabled</B>(boolean&nbsp;enabled)</PRE>
  766. <DL>
  767. <DD>Enable or disable the JSpinField.
  768. <P>
  769. <DD><DL>
  770. <DT><B>Overrides:</B><DD><CODE>setEnabled</CODE> in class <CODE>javax.swing.JComponent</CODE></DL>
  771. </DD>
  772. <DD><DL>
  773. <DT><B>Parameters:</B><DD><CODE>enabled</CODE> - The new enabled value</DL>
  774. </DD>
  775. </DL>
  776. <HR>
  777. <A NAME="getSpinner()"><!-- --></A><H3>
  778. getSpinner</H3>
  779. <PRE>
  780. public java.awt.Component <B>getSpinner</B>()</PRE>
  781. <DL>
  782. <DD>Returns the year chooser's spinner (which allow the focus to be set to
  783. it).
  784. <P>
  785. <DD><DL>
  786. </DL>
  787. </DD>
  788. <DD><DL>
  789. <DT><B>Returns:</B><DD>Component the spinner or null, if the month chooser has no
  790. spinner</DL>
  791. </DD>
  792. </DL>
  793. <HR>
  794. <A NAME="main(java.lang.String[])"><!-- --></A><H3>
  795. main</H3>
  796. <PRE>
  797. public static void <B>main</B>(java.lang.String[]&nbsp;s)</PRE>
  798. <DL>
  799. <DD>Creates a JFrame with a JSpinField inside and can be used for testing.
  800. <P>
  801. <DD><DL>
  802. </DL>
  803. </DD>
  804. <DD><DL>
  805. <DT><B>Parameters:</B><DD><CODE>s</CODE> - The command line arguments</DL>
  806. </DD>
  807. </DL>
  808. <HR>
  809. <A NAME="focusGained(java.awt.event.FocusEvent)"><!-- --></A><H3>
  810. focusGained</H3>
  811. <PRE>
  812. public void <B>focusGained</B>(java.awt.event.FocusEvent&nbsp;e)</PRE>
  813. <DL>
  814. <DD><DL>
  815. <DT><B>Specified by:</B><DD><CODE>focusGained</CODE> in interface <CODE>java.awt.event.FocusListener</CODE></DL>
  816. </DD>
  817. <DD><DL>
  818. </DL>
  819. </DD>
  820. </DL>
  821. <HR>
  822. <A NAME="focusLost(java.awt.event.FocusEvent)"><!-- --></A><H3>
  823. focusLost</H3>
  824. <PRE>
  825. public void <B>focusLost</B>(java.awt.event.FocusEvent&nbsp;e)</PRE>
  826. <DL>
  827. <DD>The value of the text field is checked against a valid (green) value. If
  828. valid, the value is set and a property change is fired.
  829. <P>
  830. <DD><DL>
  831. <DT><B>Specified by:</B><DD><CODE>focusLost</CODE> in interface <CODE>java.awt.event.FocusListener</CODE></DL>
  832. </DD>
  833. <DD><DL>
  834. </DL>
  835. </DD>
  836. </DL>
  837. <!-- ========= END OF CLASS DATA ========= -->
  838. <HR>
  839. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  840. <A NAME="navbar_bottom"><!-- --></A>
  841. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  842. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  843. <TR>
  844. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  845. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  846. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  847. <TR ALIGN="center" VALIGN="top">
  848. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  849. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  850. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  851. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  852. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  853. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  854. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  855. </TR>
  856. </TABLE>
  857. </TD>
  858. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  859. </EM>
  860. </TD>
  861. </TR>
  862. <TR>
  863. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  864. &nbsp;<A HREF="../../../com/toedter/components/JLocaleChooserBeanInfo.html" title="class in com.toedter.components"><B>PREV CLASS</B></A>&nbsp;
  865. &nbsp;<A HREF="../../../com/toedter/components/JSpinFieldBeanInfo.html" title="class in com.toedter.components"><B>NEXT CLASS</B></A></FONT></TD>
  866. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  867. <A HREF="../../../index.html?com/toedter/components/JSpinField.html" target="_top"><B>FRAMES</B></A> &nbsp;
  868. &nbsp;<A HREF="JSpinField.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  869. &nbsp;<SCRIPT type="text/javascript">
  870. <!--
  871. if(window==top) {
  872. document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  873. }
  874. //-->
  875. </SCRIPT>
  876. <NOSCRIPT>
  877. <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
  878. </NOSCRIPT>
  879. </FONT></TD>
  880. </TR>
  881. <TR>
  882. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  883. SUMMARY:&nbsp;<A HREF="#nested_classes_inherited_from_class_javax.swing.JPanel">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  884. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  885. DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  886. </TR>
  887. </TABLE>
  888. <A NAME="skip-navbar_bottom"></A>
  889. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  890. <HR>
  891. Copyright Š 1999 - 2006 Kai Toedter.
  892. </BODY>
  893. </HTML>