01: /*
02: * Created on 16/01/2006
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: package br.com.gfpshare.beans;
27:
28: import javax.swing.JProgressBar;
29:
30: /**
31: *
32: * @author Igor Regis da Silva Simoes
33: * @since 16/01/2006
34: */
35: public interface MessagePanel {
36: /**
37: * Exibe ou oculta a barra de progresso
38: * @param show
39: */
40: public abstract void showProgress(boolean show);
41:
42: /**
43: * Pisca a janela de mensagens intermitentemente por 10 vezes
44: * Caso a janela estaja minimizada ela será restaurada temporariamente
45: * como se o usuário tivesse clicado no botão da janela.
46: * @param popup Indica se é necessário "saltar" a mensagem na tela
47: */
48: public abstract void piscar(boolean popup);
49:
50: /**
51: * Adiciona uma string a menssagem sendo exibida.
52: * @param message
53: */
54: public abstract void addMessage(String message);
55:
56: /**
57: * Seta a mensagem a ser exibida e pisca a janela de menssagens
58: * @param message
59: * @param popup boolean indicando se a tela deberá saltar para chamar a atenção do usuário
60: */
61: public abstract void setMessage(String message, boolean popup);
62:
63: /**
64: * Retorna uma referencia a progress de forma que se possa configurá-la
65: * e realizar a sua atualização.
66: * @return JProgressBar
67: */
68: public abstract JProgressBar getProgressBar();
69: }
|