01: /*
02: * Created on 30/06/2004
03: *
04: * ============================================================================
05: * GNU Lesser General Public License
06: * ============================================================================
07: *
08: * Swing Components - visit http://sf.net/projects/gfd
09: *
10: * Copyright (C) 2004 Igor Regis da Silva Simőes
11: *
12: * This library is free software; you can redistribute it and/or
13: * modify it under the terms of the GNU Lesser General Public
14: * License as published by the Free Software Foundation; either
15: * version 2.1 of the License, or (at your option) any later version.
16: *
17: * This library is distributed in the hope that it will be useful,
18: * but WITHOUT ANY WARRANTY; without even the implied warranty of
19: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20: * Lesser General Public License for more details.
21: *
22: * You should have received a copy of the GNU Lesser General Public
23: * License along with this library; if not, write to the Free Software
24: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
25: */
26:
27: package br.com.gfpshare.beans;
28:
29: import java.util.Calendar;
30: import java.util.Date;
31:
32: /**
33: * Interface básica de um campo que cumpre um papel de receber e enviar calores para um ICalendar
34: * @author Igor Regis da Silva Simoes
35: */
36: public interface ICalendarField {
37:
38: /**
39: * Usado para setar a data do componente através de um Calendar
40: * Este método deve ser thread safe pois pode ser chamado simultaneamente pelas threads
41: * que atribuem os valores de dia, mes a ano.
42: * @param timeKeeper Calendário possuindo a data a ser exibida pelo componente
43: */
44: public void setCalendar(Calendar timeKeeper);
45:
46: /** Usado para retornar a data do componente através de um Calendar
47: * @return Calendário possuindo a data exibida pelo componente
48: */
49: public Calendar getCalendar();
50:
51: /** Usado para setar a data do componente através de um Date
52: * @param time Date possuindo a data a ser exibida pelo componente
53: */
54: public void setDate(Date time);
55:
56: /** Usado para setar a data do componente através de um Date
57: * @return Date possuindo a data a ser exibida pelo componente
58: */
59: public Date getDate();
60:
61: /**
62: * Coloca o foco no componente
63: */
64: public void requestFocus();
65: }
|