001 /* 002 003 Copyright (C) 2001 Laurent Martelli 004 005 This program is free software; you can redistribute it and/or modify 006 it under the terms of the GNU Lesser General Public License as 007 published by the Free Software Foundation; either version 2 of the 008 License, or (at your option) any later version. 009 010 This program is distributed in the hope that it will be useful, but 011 WITHOUT ANY WARRANTY; without even the implied warranty of 012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 013 Lesser General Public License for more details. 014 015 You should have received a copy of the GNU Lesser General Public 016 License along with this program; if not, write to the Free Software 017 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 018 USA */ 019 020 package org.objectweb.jac.aspects.gui.swing; 021 022 import org.objectweb.jac.aspects.gui.DateHourFormat; 023 import org.objectweb.jac.core.rtti.FieldItem; 024 025 /** 026 * A Swing viewer component for date values. 027 */ 028 029 public class DateHourViewer extends FormatViewer 030 { 031 /** 032 * Constructs a new date viewer. 033 */ 034 public DateHourViewer(Object value, Object substance, FieldItem field) { 035 super(value,substance,field); 036 } 037 038 public DateHourViewer() { 039 } 040 041 protected void initFormat(FieldItem field) { 042 format = new DateHourFormat(field); 043 } 044 }