/lib/docs/api/com/toedter/calendar/JTextFieldDateEditor.html
HTML | 1208 lines | 1081 code | 102 blank | 25 comment | 0 complexity | 00fa163edb13b40affd7a66db5dc4790 MD5 | raw file
Large files files are truncated, but you can click here to view the full 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:10 CEST 2006 --> 6<TITLE> 7JTextFieldDateEditor (JCalendar API) 8</TITLE> 9 10<META NAME="keywords" CONTENT="com.toedter.calendar.JTextFieldDateEditor class"> 11 12<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"> 13 14<SCRIPT type="text/javascript"> 15function windowTitle() 16{ 17 parent.document.title="JTextFieldDateEditor (JCalendar 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> </TD> 38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 39 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 44 </TR> 45</TABLE> 46</TD> 47<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 48</EM> 49</TD> 50</TR> 51 52<TR> 53<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 54 <A HREF="../../../com/toedter/calendar/JSpinnerDateEditor.html" title="class in com.toedter.calendar"><B>PREV CLASS</B></A> 55 <A HREF="../../../com/toedter/calendar/JYearChooser.html" title="class in com.toedter.calendar"><B>NEXT CLASS</B></A></FONT></TD> 56<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 57 <A HREF="../../../index.html?com/toedter/calendar/JTextFieldDateEditor.html" target="_top"><B>FRAMES</B></A> 58 <A HREF="JTextFieldDateEditor.html" target="_top"><B>NO FRAMES</B></A> 59 <SCRIPT type="text/javascript"> 60 <!-- 61 if(window==top) { 62 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); 63 } 64 //--> 65</SCRIPT> 66<NOSCRIPT> 67 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> 68</NOSCRIPT> 69 70 71</FONT></TD> 72</TR> 73<TR> 74<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 75 SUMMARY: <A HREF="#nested_classes_inherited_from_class_javax.swing.JFormattedTextField">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> 76<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 77DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> 78</TR> 79</TABLE> 80<A NAME="skip-navbar_top"></A> 81<!-- ========= END OF TOP NAVBAR ========= --> 82 83<HR> 84<!-- ======== START OF CLASS DATA ======== --> 85<H2> 86<FONT SIZE="-1"> 87com.toedter.calendar</FONT> 88<BR> 89Class JTextFieldDateEditor</H2> 90<PRE> 91java.lang.Object 92 <IMG SRC="../../../resources/inherit.gif" ALT="extended by ">java.awt.Component 93 <IMG SRC="../../../resources/inherit.gif" ALT="extended by ">java.awt.Container 94 <IMG SRC="../../../resources/inherit.gif" ALT="extended by ">javax.swing.JComponent 95 <IMG SRC="../../../resources/inherit.gif" ALT="extended by ">javax.swing.text.JTextComponent 96 <IMG SRC="../../../resources/inherit.gif" ALT="extended by ">javax.swing.JTextField 97 <IMG SRC="../../../resources/inherit.gif" ALT="extended by ">javax.swing.JFormattedTextField 98 <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>com.toedter.calendar.JTextFieldDateEditor</B> 99</PRE> 100<DL> 101<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../com/toedter/calendar/IDateEditor.html" title="interface in com.toedter.calendar">IDateEditor</A>, 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.Scrollable, javax.swing.SwingConstants</DD> 102</DL> 103<HR> 104<DL> 105<DT><PRE>public class <B>JTextFieldDateEditor</B><DT>extends javax.swing.JFormattedTextField<DT>implements <A HREF="../../../com/toedter/calendar/IDateEditor.html" title="interface in com.toedter.calendar">IDateEditor</A>, javax.swing.event.CaretListener, java.awt.event.FocusListener, java.awt.event.ActionListener</DL> 106</PRE> 107 108<P> 109JTextFieldDateEditor is the default editor used by JDateChooser. It is a 110 formatted text field, that colores valid dates green/black and invalid dates 111 red. The date format patten and mask can be set manually. If not set, the 112 MEDIUM pattern of a SimpleDateFormat with regards to the actual locale is 113 used. 114<P> 115 116<P> 117<DL> 118<DT><B>Version:</B></DT> 119 <DD>$LastChangedRevision: 97 $, $LastChangedDate: 2006-05-24 17:30:41 +0200 (Mi, 24 Mai 2006) $</DD> 120<DT><B>Author:</B></DT> 121 <DD>Kai Toedter</DD> 122<DT><B>See Also:</B><DD><A HREF="../../../serialized-form.html#com.toedter.calendar.JTextFieldDateEditor">Serialized Form</A></DL> 123<HR> 124 125<P> 126<!-- ======== NESTED CLASS SUMMARY ======== --> 127 128<A NAME="nested_class_summary"><!-- --></A> 129<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 130<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 131<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 132<B>Nested Class Summary</B></FONT></TH> 133</TR> 134</TABLE> 135 <A NAME="nested_classes_inherited_from_class_javax.swing.JFormattedTextField"><!-- --></A> 136<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 137<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 138<TH ALIGN="left"><B>Nested classes/interfaces inherited from class javax.swing.JFormattedTextField</B></TH> 139</TR> 140<TR BGCOLOR="white" CLASS="TableRowColor"> 141<TD><CODE>javax.swing.JFormattedTextField.AbstractFormatter, javax.swing.JFormattedTextField.AbstractFormatterFactory</CODE></TD> 142</TR> 143</TABLE> 144 145<A NAME="nested_classes_inherited_from_class_javax.swing.JTextField"><!-- --></A> 146<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 147<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 148<TH ALIGN="left"><B>Nested classes/interfaces inherited from class javax.swing.JTextField</B></TH> 149</TR> 150<TR BGCOLOR="white" CLASS="TableRowColor"> 151<TD><CODE>javax.swing.JTextField.AccessibleJTextField</CODE></TD> 152</TR> 153</TABLE> 154 155<A NAME="nested_classes_inherited_from_class_javax.swing.text.JTextComponent"><!-- --></A> 156<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 157<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 158<TH ALIGN="left"><B>Nested classes/interfaces inherited from class javax.swing.text.JTextComponent</B></TH> 159</TR> 160<TR BGCOLOR="white" CLASS="TableRowColor"> 161<TD><CODE>javax.swing.text.JTextComponent.AccessibleJTextComponent, javax.swing.text.JTextComponent.KeyBinding</CODE></TD> 162</TR> 163</TABLE> 164 165<A NAME="nested_classes_inherited_from_class_javax.swing.JComponent"><!-- --></A> 166<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 167<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 168<TH ALIGN="left"><B>Nested classes/interfaces inherited from class javax.swing.JComponent</B></TH> 169</TR> 170<TR BGCOLOR="white" CLASS="TableRowColor"> 171<TD><CODE>javax.swing.JComponent.AccessibleJComponent</CODE></TD> 172</TR> 173</TABLE> 174 175<A NAME="nested_classes_inherited_from_class_java.awt.Container"><!-- --></A> 176<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 177<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 178<TH ALIGN="left"><B>Nested classes/interfaces inherited from class java.awt.Container</B></TH> 179</TR> 180<TR BGCOLOR="white" CLASS="TableRowColor"> 181<TD><CODE>java.awt.Container.AccessibleAWTContainer</CODE></TD> 182</TR> 183</TABLE> 184 185<A NAME="nested_classes_inherited_from_class_java.awt.Component"><!-- --></A> 186<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 187<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 188<TH ALIGN="left"><B>Nested classes/interfaces inherited from class java.awt.Component</B></TH> 189</TR> 190<TR BGCOLOR="white" CLASS="TableRowColor"> 191<TD><CODE>java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy</CODE></TD> 192</TR> 193</TABLE> 194 195<!-- =========== FIELD SUMMARY =========== --> 196 197<A NAME="field_summary"><!-- --></A> 198<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 199<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 200<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 201<B>Field Summary</B></FONT></TH> 202</TR> 203<TR BGCOLOR="white" CLASS="TableRowColor"> 204<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 205<CODE>protected java.awt.Color</CODE></FONT></TD> 206<TD><CODE><B><A HREF="../../../com/toedter/calendar/JTextFieldDateEditor.html#darkGreen">darkGreen</A></B></CODE> 207 208<BR> 209 </TD> 210</TR> 211<TR BGCOLOR="white" CLASS="TableRowColor"> 212<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 213<CODE>protected java.util.Date</CODE></FONT></TD> 214<TD><CODE><B><A HREF="../../../com/toedter/calendar/JTextFieldDateEditor.html#date">date</A></B></CODE> 215 216<BR> 217 </TD> 218</TR> 219<TR BGCOLOR="white" CLASS="TableRowColor"> 220<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 221<CODE>protected java.text.SimpleDateFormat</CODE></FONT></TD> 222<TD><CODE><B><A HREF="../../../com/toedter/calendar/JTextFieldDateEditor.html#dateFormatter">dateFormatter</A></B></CODE> 223 224<BR> 225 </TD> 226</TR> 227<TR BGCOLOR="white" CLASS="TableRowColor"> 228<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 229<CODE>protected java.lang.String</CODE></FONT></TD> 230<TD><CODE><B><A HREF="../../../com/toedter/calendar/JTextFieldDateEditor.html#datePattern">datePattern</A></B></CODE> 231 232<BR> 233 </TD> 234</TR> 235<TR BGCOLOR="white" CLASS="TableRowColor"> 236<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 237<CODE>protected <A HREF="../../../com/toedter/calendar/DateUtil.html" title="class in com.toedter.calendar">DateUtil</A></CODE></FONT></TD> 238<TD><CODE><B><A HREF="../../../com/toedter/calendar/JTextFieldDateEditor.html#dateUtil">dateUtil</A></B></CODE> 239 240<BR> 241 </TD> 242</TR> 243<TR BGCOLOR="white" CLASS="TableRowColor"> 244<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 245<CODE>protected javax.swing.text.MaskFormatter</CODE></FONT></TD> 246<TD><CODE><B><A HREF="../../../com/toedter/calendar/JTextFieldDateEditor.html#maskFormatter">maskFormatter</A></B></CODE> 247 248<BR> 249 </TD> 250</TR> 251<TR BGCOLOR="white" CLASS="TableRowColor"> 252<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 253<CODE>protected java.lang.String</CODE></FONT></TD> 254<TD><CODE><B><A HREF="../../../com/toedter/calendar/JTextFieldDateEditor.html#maskPattern">maskPattern</A></B></CODE> 255 256<BR> 257 </TD> 258</TR> 259<TR BGCOLOR="white" CLASS="TableRowColor"> 260<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 261<CODE>protected char</CODE></FONT></TD> 262<TD><CODE><B><A HREF="../../../com/toedter/calendar/JTextFieldDateEditor.html#placeholder">placeholder</A></B></CODE> 263 264<BR> 265 </TD> 266</TR> 267</TABLE> 268 <A NAME="fields_inherited_from_class_javax.swing.JFormattedTextField"><!-- --></A> 269<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 270<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 271<TH ALIGN="left"><B>Fields inherited from class javax.swing.JFormattedTextField</B></TH> 272</TR> 273<TR BGCOLOR="white" CLASS="TableRowColor"> 274<TD><CODE>COMMIT, COMMIT_OR_REVERT, PERSIST, REVERT</CODE></TD> 275</TR> 276</TABLE> 277 <A NAME="fields_inherited_from_class_javax.swing.JTextField"><!-- --></A> 278<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 279<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 280<TH ALIGN="left"><B>Fields inherited from class javax.swing.JTextField</B></TH> 281</TR> 282<TR BGCOLOR="white" CLASS="TableRowColor"> 283<TD><CODE>notifyAction</CODE></TD> 284</TR> 285</TABLE> 286 <A NAME="fields_inherited_from_class_javax.swing.text.JTextComponent"><!-- --></A> 287<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 288<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 289<TH ALIGN="left"><B>Fields inherited from class javax.swing.text.JTextComponent</B></TH> 290</TR> 291<TR BGCOLOR="white" CLASS="TableRowColor"> 292<TD><CODE>DEFAULT_KEYMAP, FOCUS_ACCELERATOR_KEY</CODE></TD> 293</TR> 294</TABLE> 295 <A NAME="fields_inherited_from_class_javax.swing.JComponent"><!-- --></A> 296<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 297<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 298<TH ALIGN="left"><B>Fields inherited from class javax.swing.JComponent</B></TH> 299</TR> 300<TR BGCOLOR="white" CLASS="TableRowColor"> 301<TD><CODE>accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW</CODE></TD> 302</TR> 303</TABLE> 304 <A NAME="fields_inherited_from_class_java.awt.Component"><!-- --></A> 305<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 306<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 307<TH ALIGN="left"><B>Fields inherited from class java.awt.Component</B></TH> 308</TR> 309<TR BGCOLOR="white" CLASS="TableRowColor"> 310<TD><CODE>BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT</CODE></TD> 311</TR> 312</TABLE> 313 <A NAME="fields_inherited_from_class_javax.swing.SwingConstants"><!-- --></A> 314<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 315<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 316<TH ALIGN="left"><B>Fields inherited from interface javax.swing.SwingConstants</B></TH> 317</TR> 318<TR BGCOLOR="white" CLASS="TableRowColor"> 319<TD><CODE>BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST</CODE></TD> 320</TR> 321</TABLE> 322 <A NAME="fields_inherited_from_class_java.awt.image.ImageObserver"><!-- --></A> 323<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 324<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 325<TH ALIGN="left"><B>Fields inherited from interface java.awt.image.ImageObserver</B></TH> 326</TR> 327<TR BGCOLOR="white" CLASS="TableRowColor"> 328<TD><CODE>ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH</CODE></TD> 329</TR> 330</TABLE> 331 332<!-- ======== CONSTRUCTOR SUMMARY ======== --> 333 334<A NAME="constructor_summary"><!-- --></A> 335<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 336<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 337<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 338<B>Constructor Summary</B></FONT></TH> 339</TR> 340<TR BGCOLOR="white" CLASS="TableRowColor"> 341<TD><CODE><B><A HREF="../../../com/toedter/calendar/JTextFieldDateEditor.html#JTextFieldDateEditor()">JTextFieldDateEditor</A></B>()</CODE> 342 343<BR> 344 </TD> 345</TR> 346<TR BGCOLOR="white" CLASS="TableRowColor"> 347<TD><CODE><B><A HREF="../../../com/toedter/calendar/JTextFieldDateEditor.html#JTextFieldDateEditor(boolean, java.lang.String, java.lang.String, char)">JTextFieldDateEditor</A></B>(boolean showMask, 348 java.lang.String datePattern, 349 java.lang.String maskPattern, 350 char placeholder)</CODE> 351 352<BR> 353 </TD> 354</TR> 355<TR BGCOLOR="white" CLASS="TableRowColor"> 356<TD><CODE><B><A HREF="../../../com/toedter/calendar/JTextFieldDateEditor.html#JTextFieldDateEditor(java.lang.String, java.lang.String, char)">JTextFieldDateEditor</A></B>(java.lang.String datePattern, 357 java.lang.String maskPattern, 358 char placeholder)</CODE> 359 360<BR> 361 </TD> 362</TR> 363</TABLE> 364 365<!-- ========== METHOD SUMMARY =========== --> 366 367<A NAME="method_summary"><!-- --></A> 368<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 369<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 370<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 371<B>Method Summary</B></FONT></TH> 372</TR> 373<TR BGCOLOR="white" CLASS="TableRowColor"> 374<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 375<CODE> void</CODE></FONT></TD> 376<TD><CODE><B><A HREF="../../../com/toedter/calendar/JTextFieldDateEditor.html#actionPerformed(java.awt.event.ActionEvent)">actionPerformed</A></B>(java.awt.event.ActionEvent e)</CODE> 377 378<BR> 379 Validates the typed date and sets it (only if it is valid).</TD> 380</TR> 381<TR BGCOLOR="white" CLASS="TableRowColor"> 382<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 383<CODE> void</CODE></FONT></TD> 384<TD><CODE><B><A HREF="../../../com/toedter/calendar/JTextFieldDateEditor.html#caretUpdate(javax.swing.event.CaretEvent)">caretUpdate</A></B>(javax.swing.event.CaretEvent event)</CODE> 385 386<BR> 387 After any user input, the value of the textfield is proofed.</TD> 388</TR> 389<TR BGCOLOR="white" CLASS="TableRowColor"> 390<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 391<CODE> java.lang.String</CODE></FONT></TD> 392<TD><CODE><B><A HREF="../../../com/toedter/calendar/JTextFieldDateEditor.html#createMaskFromDatePattern(java.lang.String)">createMaskFromDatePattern</A></B>(java.lang.String datePattern)</CODE> 393 394<BR> 395 Creates a mask from a date pattern.</TD> 396</TR> 397<TR BGCOLOR="white" CLASS="TableRowColor"> 398<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 399<CODE> void</CODE></FONT></TD> 400<TD><CODE><B><A HREF="../../../com/toedter/calendar/JTextFieldDateEditor.html#focusGained(java.awt.event.FocusEvent)">focusGained</A></B>(java.awt.event.FocusEvent e)</CODE> 401 402<BR> 403 </TD> 404</TR> 405<TR BGCOLOR="white" CLASS="TableRowColor"> 406<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 407<CODE> void</CODE></FONT></TD> 408<TD><CODE><B><A HREF="../../../com/toedter/calendar/JTextFieldDateEditor.html#focusLost(java.awt.event.FocusEvent)">focusLost</A></B>(java.awt.event.FocusEvent focusEvent)</CODE> 409 410<BR> 411 </TD> 412</TR> 413<TR BGCOLOR="white" CLASS="TableRowColor"> 414<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 415<CODE> java.util.Date</CODE></FONT></TD> 416<TD><CODE><B><A HREF="../../../com/toedter/calendar/JTextFieldDateEditor.html#getDate()">getDate</A></B>()</CODE> 417 418<BR> 419 Returns the date.</TD> 420</TR> 421<TR BGCOLOR="white" CLASS="TableRowColor"> 422<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 423<CODE> java.lang.String</CODE></FONT></TD> 424<TD><CODE><B><A HREF="../../../com/toedter/calendar/JTextFieldDateEditor.html#getDateFormatString()">getDateFormatString</A></B>()</CODE> 425 426<BR> 427 Returns tha date format string.</TD> 428</TR> 429<TR BGCOLOR="white" CLASS="TableRowColor"> 430<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 431<CODE> java.util.Date</CODE></FONT></TD> 432<TD><CODE><B><A HREF="../../../com/toedter/calendar/JTextFieldDateEditor.html#getMaxSelectableDate()">getMaxSelectableDate</A></B>()</CODE> 433 434<BR> 435 Gets the minimum selectable date.</TD> 436</TR> 437<TR BGCOLOR="white" CLASS="TableRowColor"> 438<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 439<CODE> java.util.Date</CODE></FONT></TD> 440<TD><CODE><B><A HREF="../../../com/toedter/calendar/JTextFieldDateEditor.html#getMinSelectableDate()">getMinSelectableDate</A></B>()</CODE> 441 442<BR> 443 Gets the maximum selectable date.</TD> 444</TR> 445<TR BGCOLOR="white" CLASS="TableRowColor"> 446<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 447<CODE> java.awt.Dimension</CODE></FONT></TD> 448<TD><CODE><B><A HREF="../../../com/toedter/calendar/JTextFieldDateEditor.html#getPreferredSize()">getPreferredSize</A></B>()</CODE> 449 450<BR> 451 Returns the preferred size.</TD> 452</TR> 453<TR BGCOLOR="white" CLASS="TableRowColor"> 454<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 455<CODE> javax.swing.JComponent</CODE></FONT></TD> 456<TD><CODE><B><A HREF="../../../com/toedter/calendar/JTextFieldDateEditor.html#getUiComponent()">getUiComponent</A></B>()</CODE> 457 458<BR> 459 Returns the UI component, e.g. the actual JTextField implementing the 460 editor.</TD> 461</TR> 462<TR BGCOLOR="white" CLASS="TableRowColor"> 463<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 464<CODE> boolean</CODE></FONT></TD> 465<TD><CODE><B><A HREF="../../../com/toedter/calendar/JTextFieldDateEditor.html#isMaskVisible()">isMaskVisible</A></B>()</CODE> 466 467<BR> 468 Returns true, if the mask is visible.</TD> 469</TR> 470<TR BGCOLOR="white" CLASS="TableRowColor"> 471<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 472<CODE>static void</CODE></FONT></TD> 473<TD><CODE><B><A HREF="../../../com/toedter/calendar/JTextFieldDateEditor.html#main(java.lang.String[])">main</A></B>(java.lang.String[] s)</CODE> 474 475<BR> 476 Creates a JFrame with a JCalendar inside and can be used for testing.</TD> 477</TR> 478<TR BGCOLOR="white" CLASS="TableRowColor"> 479<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 480<CODE> void</CODE></FONT></TD> 481<TD><CODE><B><A HREF="../../../com/toedter/calendar/JTextFieldDateEditor.html#setDate(java.util.Date)">setDate</A></B>(java.util.Date date)</CODE> 482 483<BR> 484 Sets the date.</TD> 485</TR> 486<TR BGCOLOR="white" CLASS="TableRowColor"> 487<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 488<CODE>protected void</CODE></FONT></TD> 489<TD><CODE><B><A HREF="../../../com/toedter/calendar/JTextFieldDateEditor.html#setDate(java.util.Date, boolean)">setDate</A></B>(java.util.Date date, 490 boolean firePropertyChange)</CODE> 491 492<BR> 493 Sets the date.</TD> 494</TR> 495<TR BGCOLOR="white" CLASS="TableRowColor"> 496<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 497<CODE> void</CODE></FONT></TD> 498<TD><CODE><B><A HREF="../../../com/toedter/calendar/JTextFieldDateEditor.html#setDateFormatString(java.lang.String)">setDateFormatString</A></B>(java.lang.String dateFormatString)</CODE> 499 500<BR> 501 Sets the date format string, e.g.</TD> 502</TR> 503<TR BGCOLOR="white" CLASS="TableRowColor"> 504<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 505<CODE> void</CODE></FONT></TD> 506<TD><CODE><B><A HREF="../../../com/toedter/calendar/JTextFieldDateEditor.html#setEnabled(boolean)">setEnabled</A></B>(boolean b)</CODE> 507 508<BR> 509 Enables and disabled the compoment.</TD> 510</TR> 511<TR BGCOLOR="white" CLASS="TableRowColor"> 512<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 513<CODE> void</CODE></FONT></TD> 514<TD><CODE><B><A HREF="../../../com/toedter/calendar/JTextFieldDateEditor.html#setLocale(java.util.Locale)">setLocale</A></B>(java.util.Locale locale)</CODE> 515 516<BR> 517 Sets the locale.</TD> 518</TR> 519<TR BGCOLOR="white" CLASS="TableRowColor"> 520<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 521<CODE> void</CODE></FONT></TD> 522<TD><CODE><B><A HREF="../../../com/toedter/calendar/JTextFieldDateEditor.html#setMaskVisible(boolean)">setMaskVisible</A></B>(boolean isMaskVisible)</CODE> 523 524<BR> 525 Sets the mask visible.</TD> 526</TR> 527<TR BGCOLOR="white" CLASS="TableRowColor"> 528<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 529<CODE> void</CODE></FONT></TD> 530<TD><CODE><B><A HREF="../../../com/toedter/calendar/JTextFieldDateEditor.html#setMaxSelectableDate(java.util.Date)">setMaxSelectableDate</A></B>(java.util.Date max)</CODE> 531 532<BR> 533 Sets the maximum selectable date.</TD> 534</TR> 535<TR BGCOLOR="white" CLASS="TableRowColor"> 536<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 537<CODE> void</CODE></FONT></TD> 538<TD><CODE><B><A HREF="../../../com/toedter/calendar/JTextFieldDateEditor.html#setMinSelectableDate(java.util.Date)">setMinSelectableDate</A></B>(java.util.Date min)</CODE> 539 540<BR> 541 Sets the minimum selectable date.</TD> 542</TR> 543<TR BGCOLOR="white" CLASS="TableRowColor"> 544<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 545<CODE> void</CODE></FONT></TD> 546<TD><CODE><B><A HREF="../../../com/toedter/calendar/JTextFieldDateEditor.html#setSelectableDateRange(java.util.Date, java.util.Date)">setSelectableDateRange</A></B>(java.util.Date min, 547 java.util.Date max)</CODE> 548 549<BR> 550 Sets a valid date range for selectable dates.</TD> 551</TR> 552</TABLE> 553 <A NAME="methods_inherited_from_class_javax.swing.JFormattedTextField"><!-- --></A> 554<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 555<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 556<TH ALIGN="left"><B>Methods inherited from class javax.swing.JFormattedTextField</B></TH> 557</TR> 558<TR BGCOLOR="white" CLASS="TableRowColor"> 559<TD><CODE>commitEdit, getActions, getFocusLostBehavior, getFormatter, getFormatterFactory, getUIClassID, getValue, invalidEdit, isEditValid, processFocusEvent, processInputMethodEvent, setDocument, setFocusLostBehavior, setFormatter, setFormatterFactory, setValue</CODE></TD> 560</TR> 561</TABLE> 562 <A NAME="methods_inherited_from_class_javax.swing.JTextField"><!-- --></A> 563<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 564<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 565<TH ALIGN="left"><B>Methods inherited from class javax.swing.JTextField</B></TH> 566</TR> 567<TR BGCOLOR="white" CLASS="TableRowColor"> 568<TD><CODE>addActionListener, configurePropertiesFromAction, createActionPropertyChangeListener, createDefaultModel, fireActionPerformed, getAccessibleContext, getAction, getActionListeners, getColumns, getColumnWidth, getHorizontalAlignment, getHorizontalVisibility, getScrollOffset, isValidateRoot, paramString, postActionEvent, removeActionListener, scrollRectToVisible, setAction, setActionCommand, setColumns, setFont, setHorizontalAlignment, setScrollOffset</CODE></TD> 569</TR> 570</TABLE> 571 <A NAME="methods_inherited_from_class_javax.swing.text.JTextComponent"><!-- --></A> 572<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 573<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 574<TH ALIGN="left"><B>Methods inherited from class javax.swing.text.JTextComponent</B></TH> 575</TR> 576<TR BGCOLOR="white" CLASS="TableRowColor"> 577<TD><CODE>addCaretListener, addInputMethodListener, addKeymap, copy, cut, fireCaretUpdate, getCaret, getCaretColor, getCaretListeners, getCaretPosition, getDisabledTextColor, getDocument, getDragEnabled, getFocusAccelerator, getHighlighter, getInputMethodRequests, getKeymap, getKeymap, getMargin, getNavigationFilter, getPreferredScrollableViewportSize, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getSelectedText, getSelectedTextColor, getSelectionColor, getSelectionEnd, getSelectionStart, getText, getText, getToolTipText, getUI, isEditable, loadKeymap, modelToView, moveCaretPosition, paste, read, removeCaretListener, removeKeymap, removeNotify, replaceSelection, select, selectAll, setCaret, setCaretColor, setCaretPosition, setComponentOrientation, setDisabledTextColor, setDragEnabled, setEditable, setFocusAccelerator, setHighlighter, setKeymap, setMargin, setNavigationFilter, setSelectedTextColor, setSelectionColor, setSelectionEnd, setSelectionStart, setText, setUI, updateUI, viewToModel, write</CODE></TD> 578</TR> 579</TABLE> 580 <A NAME="methods_inherited_from_class_javax.swing.JComponent"><!-- --></A> 581<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 582<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 583<TH ALIGN="left"><B>Methods inherited from class javax.swing.JComponent</B></TH> 584</TR> 585<TR BGCOLOR="white" CLASS="TableRowColor"> 586<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, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update</CODE></TD> 587</TR> 588</TABLE> 589 <A NAME="methods_inherited_from_class_java.awt.Container"><!-- --></A> 590<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 591<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 592<TH ALIGN="left"><B>Methods inherited from class java.awt.Container</B></TH> 593</TR> 594<TR BGCOLOR="white" CLASS="TableRowColor"> 595<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> 596</TR> 597</TABLE> 598 <A NAME="methods_inherited_from_class_java.awt.Component"><!-- --></A> 599<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 600<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 601<TH ALIGN="left"><B>Methods inherited from class java.awt.Component</B></TH> 602</TR> 603<TR BGCOLOR="white" CLASS="TableRowColor"> 604<TD><CODE>action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, 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, 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, processHierarchyBoundsEvent, processHierarchyEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle</CODE></TD> 605</TR> 606</TABLE> 607 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> 608<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 609<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 610<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> 611</TR> 612<TR BGCOLOR="white" CLASS="TableRowColor"> 613<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD> 614</TR> 615</TABLE> 616 <A NAME="methods_inherited_from_class_com.toedter.calendar.IDateEditor"><!-- --></A> 617<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 618<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 619<TH ALIGN="left"><B>Methods inherited from interface com.toedter.calendar.<A HREF="../../../com/toedter/calendar/IDateEditor.html" title="interface in com.toedter.calendar">IDateEditor</A></B></TH> 620</TR> 621<TR BGCOLOR="white" CLASS="TableRowColor"> 622<TD><CODE><A HREF="../../../com/toedter/calendar/IDateEditor.html#addPropertyChangeListener(java.beans.PropertyChangeListener)">addPropertyChangeListener</A>, <A HREF="../../../com/toedter/calendar/IDateEditor.html#addPropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener)">addPropertyChangeListener</A>, <A HREF="../../../com/toedter/calendar/IDateEditor.html#removePropertyChangeListener(java.beans.PropertyChangeListener)">removePropertyChangeListener</A>, <A HREF="../../../com/toedter/calendar/IDateEditor.html#removePropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener)">removePropertyChangeListener</A></CODE></TD> 623</TR> 624</TABLE> 625 626<P> 627 628<!-- ============ FIELD DETAIL =========== --> 629 630<A NAME="field_detail"><!-- --></A> 631<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 632<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 633<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 634<B>Field Detail</B></FONT></TH> 635</TR> 636</TABLE> 637 638<A NAME="date"><!-- --></A><H3> 639date</H3> 640<PRE> 641protected java.util.Date <B>date</B></PRE> 642<DL> 643<DL> 644</DL> 645</DL> 646<HR> 647 648<A NAME="dateFormatter"><!-- --></A><H3> 649dateFormatter</H3> 650<PRE> 651protected java.text.SimpleDateFormat <B>dateFormatter</B></PRE> 652<DL> 653<DL> 654</DL> 655</DL> 656<HR> 657 658<A NAME="maskFormatter"><!-- --></A><H3> 659maskFormatter</H3> 660<PRE> 661protected javax.swing.text.MaskFormatter <B>maskFormatter</B></PRE> 662<DL> 663<DL> 664</DL> 665</DL> 666<HR> 667 668<A NAME="datePattern"><!-- --></A><H3> 669datePattern</H3> 670<PRE> 671protected java.lang.String <B>datePattern</B></PRE> 672<DL> 673<DL> 674</DL> 675</DL> 676<HR> 677 678<A NAME="maskPattern"><!-- --></A><H3> 679maskPattern</H3> 680<PRE> 681protected java.lang.String <B>maskPattern</B></PRE> 682<DL> 683<DL> 684</DL> 685</DL> 686<HR> 687 688<A NAME="placeholder"><!-- --></A><H3> 689placeholder</H3> 690<PRE> 691protected char <B>placeholder</B></PRE> 692<DL> 693<DL> 694</DL> 695</DL> 696<HR> 697 698<A NAME="darkGreen"><!-- --></A><H3> 699darkGreen</H3> 700<PRE> 701protected java.awt.Color <B>darkGreen</B></PRE> 702<DL> 703<DL> 704</DL> 705</DL> 706<HR> 707 708<A NAME="dateUtil"><!-- --></A><H3> 709dateUtil</H3> 710<PRE> 711protected <A HREF="../../../com/toedter/calendar/DateUtil.html" title="class in com.toedter.calendar">DateUtil</A> <B>dateUtil</B></PRE> 712<DL> 713<DL> 714</DL> 715</DL> 716 717<!-- ========= CONSTRUCTOR DETAIL ======== --> 718 719<A NAME="constructor_detail"><!-- --></A> 720<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 721<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 722<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 723<B>Constructor Detail</B></FONT></TH> 724</TR> 725</TABLE> 726 727<A NAME="JTextFieldDateEditor()"><!-- --></A><H3> 728JTextFieldDateEditor</H3> 729<PRE> 730public <B>JTextFieldDateEditor</B>()</PRE> 731<DL> 732</DL> 733<HR> 734 735<A NAME="JTextFieldDateEditor(java.lang.String, java.lang.String, char)"><!-- --></A><H3> 736JTextFieldDateEditor</H3> 737<PRE> 738public <B>JTextFieldDateEditor</B>(java.lang.String datePattern, 739 java.lang.String maskPattern, 740 char placeholder)</PRE> 741<DL> 742</DL> 743<HR> 744 745<A NAME="JTextFieldDateEditor(boolean, java.lang.String, java.lang.String, char)"><!-- --></A><H3> 746JTextFieldDateEditor</H3> 747<PRE> 748public <B>JTextFieldDateEditor</B>(boolean showMask, 749 java.lang.String datePattern, 750 java.lang.String maskPattern, 751 char placeholder)</PRE> 752<DL> 753</DL> 754 755<!-- ============ METHOD DETAIL ========== --> 756 757<A NAME="method_detail"><!-- --></A> 758<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 759<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 760<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 761<B>Method Detail</B></FONT></TH> 762</TR> 763</TABLE> 764 765<A NAME="getDate()"><!-- --></A><H3> 766getDate</H3> 767<PRE> 768public java.util.Date <B>getDate</B>()</PRE> 769<DL> 770<DD><B>Description copied from interface: <CODE><A HREF="../../../com/toedter/calendar/IDateEditor.html#getDate()">IDateEditor</A></CODE></B></DD> 771<DD>Returns the date. 772<P> 773<DD><DL> 774<DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/toedter/calendar/IDateEditor.html#getDate()">getDate</A></CODE> in interface <CODE><A HREF="../../../com/toedter/calendar/IDateEditor.html" title="interface in com.toedter.calendar">IDateEditor</A></CODE></DL> 775</DD> 776<DD><DL> 777 778<DT><B>Returns:</B><DD>the date</DL> 779</DD> 780</DL> 781<HR> 782 783<A NAME="setDate(java.util.Date)"><!-- --></A><H3> 784setDate</H3> 785<PRE> 786public void <B>setDate</B>(java.util.Date date)</PRE> 787<DL> 788<DD><B>Description copied from interface: <CODE><A HREF="../../../com/toedter/calendar/IDateEditor.html#setDate(java.util.Date)">IDateEditor</A></CODE></B></DD> 789<DD>Sets the date. This should be implemented as a bound property, firing the 790 "date" property. 791<P> 792<DD><DL> 793<DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/toedter/calendar/IDateEditor.html#setDate(java.util.Date)">setDate</A></CODE> in interface <CODE><A HREF="../../../com/toedter/calendar/IDateEditor.html" title="interface in com.toedter.calendar">IDateEditor</A></CODE></DL> 794</DD> 795<DD><DL> 796<DT><B>Parameters:</B><DD><CODE>date</CODE> - the date to set</DL> 797</DD> 798</DL> 799<HR> 800 801<A NAME="setDate(java.util.Date, boolean)"><!-- --></A><H3> 802setDate</H3> 803<PRE> 804protected void <B>setDate</B>(java.util.Date date, 805 boolean firePropertyChange)</PRE> 806<DL> 807<DD>Sets the date. 808<P> 809<DD><DL> 810</DL> 811</DD> 812<DD><DL> 813<DT><B>Parameters:</B><DD><CODE>date</CODE> - the date<DD><CODE>firePropertyChange</CODE> - true, if the date property should be fired.</DL> 814</DD> 815</DL> 816<HR> 817 818<A NAME="setDateFormatString(java.lang.String)"><!-- --></A><H3> 819setDateFormatString</H3> 820<PRE> 821public void <B>setDateFormatString</B>(java.lang.String dateFormatString)</PRE> 822<DL> 823<DD><B>Description copied from interface: <CODE><A HREF="../../../com/toedter/calendar/IDateEditor.html#setDateFormatString(java.lang.String)">IDateEditor</A></CODE></B></DD> 824<DD>Sets the date format string, e.g. "MM/dd/yy". If the date format string 825 is null or invalid, the date format string will be set to the MEDIUM 826 Simple date format of the current locale. 827<P> 828<DD><DL> 829<DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/toedter/calendar/IDateEditor.html#setDateFormatString(java.lang.String)">setDateFormatString</A></CODE> in interface <CODE><A HREF="../../../com/toedter/calendar/IDateEditor.html" title="interface in com.toedter.calendar">IDateEditor</A></CODE></DL> 830</DD> 831<DD><DL> 832<DT><B>Parameters:</B><DD><CODE>dateFormatString</CODE> - the date format string</DL> 833</DD> 834</DL> 835<HR> 836 837<A NAME="getDateFormatString()"><!-- --></A><H3> 838getDateFormatString</H3> 839<PRE> 840public java.lang.String <B>getDateFormatString</B>()</PRE> 841<DL> 842<DD><B>Description copied from interface: <CODE><A HREF="../../../com/toedter/calendar/IDateEditor.html#getDateFormatString()">IDateEditor</A></CODE></B></DD> 843<DD>Returns tha date format string. 844<P> 845<DD><DL> 846<DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/toedter/calendar/IDateEditor.html#getDateFormatString()">getDateFormatString</A></CODE> in interface <CODE><A HREF="../../../com/toedter/calendar/IDateEditor.html" title="interface in com.toedter.calendar">IDateEditor</A></CODE></DL> 847</DD> 848<DD><DL> 849 850<DT><B>Returns:</B><DD>the date format string</DL> 851</DD> 852</DL> 853<HR> 854 855<A NAME="getUiComponent()"><!-- --></A><H3> 856getUiComponent</H3> 857<PRE> 858public javax.swing.JComponent <B>getUiComponent</B>()</PRE> 859<DL> 860<DD><B>Description copied from interface: <CODE><A HREF="../../../com/toedter/calendar/IDateEditor.html#getUiComponent()">IDateEditor</A></CODE></B></DD> 861<DD>Returns the UI component, e.g. the actual JTextField implementing the 862 editor. 863<P> 864<DD><DL> 865<DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/toedter/calendar/IDateEditor.html#getUiComponent()">getUiComponent</A></CODE> in interface <CODE><A HREF="../../../com/toedter/calendar/IDateEditor.html" title="interface in com.toedter.calendar">IDateEditor</A></CODE></DL> 866</DD> 867<DD><DL> 868 869<DT><B>Returns:</B><DD>the UI component</DL> 870</DD> 871</DL> 872<HR> 873 874<A NAME="caretUpdate(javax.swing.event.CaretEvent)"><!-- --></A><H3> 875caretUpdate</H3> 876<PRE> 877public void <B>caretUpdate</B>(javax.swing.event.CaretEvent event)</PRE> 878<DL> 879<DD>After any user input, the value of the textfield is proofed. Depending on 880 being a valid date, the value is colored green or red. 881<P> 882<DD><DL> 883<DT><B>Specified by:</B><DD><CODE>caretUpdate</CODE> in interface <CODE>javax.swing.event.CaretListener</CODE></DL> 884</DD> 885<DD><DL> 886<DT><B>Parameters:</B><DD><CODE>event</CODE> - the caret event</DL> 887</DD> 888</DL> 889<HR> 890 891<A NAME="focusLost(java.awt.event.FocusEvent)"><!-- --></A><H3> 892focusLost</H3> 893<PRE> 894public void <B>focusLost</B>(java.awt.event.FocusEvent focusEvent)</PRE> 895<DL> 896<DD><DL> 897<DT><B>Specified by:</B><DD><CODE>focusLost</CODE> in interface <CODE>java.awt.event.FocusListener</CODE></DL> 898</DD> 899<DD><DL> 900</DL> 901</DD> 902</DL> 903<HR> 904 905<A NAME="focusGained(java.awt.event.FocusEvent)"><!-- --></A><H3> 906focusGained</H3> 907<PRE> 908public void <B>focusGained</B>(java.awt.event.FocusEvent e)</PRE> 909<DL> 910<DD><DL> 911<DT><B>Specified by:</B><DD><CODE>focusGained</CODE> in interface <CODE>java.awt.event.FocusListener</CODE></DL> 912</DD> 913<DD><DL> 914</DL> 915</DD> 916</DL> 917<HR> 918 919<A NAME="setLocale(java.util.Locale)"><!-- --></A><H3> 920setLocale</H3> 921<PRE> 922public void <B>setLocale</B>(java.util.Locale locale)</PRE> 923<DL> 924<DD><B>Description copied from interface: <CODE><A HREF="../../../com/toedter/calendar/IDateEditor.html#setLocale(java.util.Locale)">IDateEditor</A></CODE></B></DD> 925<DD>Sets the locale. Usually this should have impact on the current date 926 format string. 927<P> 928<DD><DL> 929<DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/toedter/calendar/IDateEditor.html#setLocale(java.util.Locale)">setLocale</A></CODE> in interface <CODE><A HREF="../../../com/toedter/calendar/IDateEditor.html" title="interface in com.toedter.calendar">IDateEditor</A></CODE><DT><B>Overrides:</B><DD><CODE>setLocale</CODE> in class <CODE>java.awt.Component</CODE></DL> 930</DD> 931<DD><DL> 932<DT><B>Parameters:</B><DD><CODE>locale</CODE> - the locale to set</DL> 933</DD> 934</DL> 935<HR> 936 937<A NAME="createMaskFromDatePattern(java.lang.String)"><!-- --></A><H3> 938createMaskFromDatePattern</H3> 939<PRE> 940public java.lang.String <B>createMaskFromDatePattern</B>(java.lang.String datePattern)</PRE> 941<DL> 942<DD>Creates a mask from a date pattern. This is a very simple (and 943 incomplete) implementation thet works only with numbers. A date pattern 944 of "MM/dd/yy" will result in the mask "##/##/##". Probably you want to 945 override this method if it does not fit your needs. 946<P> 947<DD><DL> 948</DL> 949</DD> 950<DD><DL> 951<DT><B>Parameters:</B><DD><CODE>datePattern</CODE> - the date pattern 952<DT><B>Returns:</B><DD>the mask</DL> 953</DD> 954</DL> 955<HR> 956 957<A NAME="isMaskVisible()"><!-- --></A><H3> 958isMaskVisible</H3> 959<PRE> 960public boolean <B>isMaskVisible</B>()</PRE> 961<DL> 962<DD>Returns true, if the mask is visible. 963<P> 964<DD><DL> 965</DL> 966</DD> 967<DD><DL> 968 969<DT><B>Returns:</B><DD>true, if the mask is visible</DL> 970</DD> 971</DL> 972<HR> 973 974<A NAME="setMaskVisible(boolean)"><!-- --></A><H3> 975setMaskVisible</H3> 976<PRE> 977public void <B>setMaskVisible</B>(boolean isMaskVisible)</PRE> 978<DL> 979<DD>Sets the mask visible. 980<P> 981<DD><DL> 982</DL> 983</DD> 984<DD><DL> 985<DT><B>Parameters:</B><DD><CODE>isMaskVisible</CODE> - true, if the mask should be visible</DL> 986</DD> 987</DL> 988<HR> 989 990<A NAME="getPreferredSize()"><!-- --></A><H3> 991getPreferredSize</H3> 992<PRE> 993public java.awt.Dimension <B>getPreferredSize</B>()</PRE> 994<DL> 995<DD>Returns the preferred size. If a date pattern is set, it is the size the 996 date pattern would take. 997<P> 998<DD><DL> 999<DT><B>Overrides:</B><DD><CODE>getPreferredSize</CODE> in class <CODE>javax.swing.JTextField</CODE></DL> 1000</DD> 1001<DD><DL> 1002</DL> 1003</DD> 1004</DL> 1005<HR> 1006 1007<A NAME="actionPerformed(java.awt.event.ActionEvent)"><!-- --></A><H3> 1008actionPerformed</H3> 1009<PRE> 1010public void <B>actionPerformed</B>(java.awt.event.ActionEvent e)</PRE> 1011<DL> 1012<DD>Validates the typed date and sets it (only if it is valid). 1013<P> 1014<DD><DL> 1015<DT><B>Specified by:</B><DD><CODE>actionPerformed</CODE> in interface <CODE>java.awt.event.ActionListener<…
Large files files are truncated, but you can click here to view the full file