01: // Copyright (c) 2002 Cunningham & Cunningham, Inc.
02: // Released under the terms of the GNU General Public License version 2 or later.
03:
04: package eg.music;
05:
06: import java.util.Date;
07:
08: public class Display extends fit.RowFixture {
09:
10: public Class getTargetClass() {
11: return Music.class;
12: }
13:
14: public Object[] query() {
15: return MusicLibrary.displayContents();
16: }
17:
18: public Object parse(String s, Class type) throws Exception {
19: if (type.equals(Date.class)) {
20: return Music.dateFormat.parse(s);
21: }
22: return super.parse(s, type);
23: }
24:
25: }
|