108 |
/** |
/** |
109 |
* DOCUMENT ME! |
* DOCUMENT ME! |
110 |
*/ |
*/ |
111 |
public void commitEdit() |
public void commitEdit() throws ParseException |
|
throws ParseException |
|
112 |
{ |
{ |
113 |
} /* TODO */ |
// TODO: Implement this properly. |
114 |
|
} |
115 |
|
|
116 |
/** |
/** |
117 |
* DOCUMENT ME! |
* DOCUMENT ME! |
184 |
*/ |
*/ |
185 |
public void propertyChange(PropertyChangeEvent event) |
public void propertyChange(PropertyChangeEvent event) |
186 |
{ |
{ |
187 |
} /* TODO */ |
// TODO: Implement this properly. |
188 |
|
} |
189 |
|
|
190 |
/** |
/** |
191 |
* DOCUMENT ME! |
* DOCUMENT ME! |
194 |
*/ |
*/ |
195 |
public void stateChanged(ChangeEvent event) |
public void stateChanged(ChangeEvent event) |
196 |
{ |
{ |
197 |
} /* TODO */ |
// TODO: Implement this properly. |
198 |
|
} |
199 |
|
|
|
/* no-ops */ |
|
200 |
public void removeLayoutComponent(Component child) |
public void removeLayoutComponent(Component child) |
201 |
{ |
{ |
202 |
|
// Nothing to do here. |
203 |
} |
} |
204 |
|
|
205 |
/** |
/** |
210 |
*/ |
*/ |
211 |
public void addLayoutComponent(String name, Component child) |
public void addLayoutComponent(String name, Component child) |
212 |
{ |
{ |
213 |
|
// Nothing to do here. |
214 |
} |
} |
215 |
} |
} |
216 |
|
|
261 |
} |
} |
262 |
|
|
263 |
/** |
/** |
264 |
|
* A <code>JSpinner</code> editor used for the {@link SpinnerListModel}. |
265 |
|
* This editor uses a <code>JFormattedTextField</code> to edit the values |
266 |
|
* of the spinner. |
267 |
|
* |
268 |
|
* @author Roman Kennke (kennke@aicas.com) |
269 |
|
*/ |
270 |
|
public static class ListEditor extends DefaultEditor |
271 |
|
{ |
272 |
|
/** |
273 |
|
* Creates a new instance of <code>ListEditor</code>. |
274 |
|
* |
275 |
|
* @param spinner the spinner for which this editor is used |
276 |
|
*/ |
277 |
|
public ListEditor(JSpinner spinner) |
278 |
|
{ |
279 |
|
super(spinner); |
280 |
|
} |
281 |
|
|
282 |
|
public SpinnerListModel getModel() |
283 |
|
{ |
284 |
|
return (SpinnerListModel) getSpinner().getModel(); |
285 |
|
} |
286 |
|
} |
287 |
|
|
288 |
|
/** |
289 |
* An editor class for a <code>JSpinner</code> that is used |
* An editor class for a <code>JSpinner</code> that is used |
290 |
* for displaying and editing dates (e.g. that uses |
* for displaying and editing dates (e.g. that uses |
291 |
* <code>SpinnerDateModel</code> as model). |
* <code>SpinnerDateModel</code> as model). |
335 |
/** |
/** |
336 |
* Initializes the JFormattedTextField for this editor. |
* Initializes the JFormattedTextField for this editor. |
337 |
* |
* |
338 |
* @param the date format to use in the formatted text field |
* @param format the date format to use in the formatted text field |
339 |
*/ |
*/ |
340 |
private void init(SimpleDateFormat format) |
private void init(SimpleDateFormat format) |
341 |
{ |
{ |