|
|
|
|
@ -9,6 +9,7 @@
|
|
|
|
|
|
|
|
|
|
package siprp.medicina.processo.detalhes;
|
|
|
|
|
|
|
|
|
|
import java.awt.CardLayout;
|
|
|
|
|
import java.util.Vector;
|
|
|
|
|
import javax.swing.JFrame;
|
|
|
|
|
import javax.swing.JPanel;
|
|
|
|
|
@ -22,12 +23,18 @@ public class DetalhesProcessoPanel extends JPanel
|
|
|
|
|
{
|
|
|
|
|
private final Vector<ProcessoListener> PROCESSO_LISTENERS = new Vector<ProcessoListener>();
|
|
|
|
|
|
|
|
|
|
private static final String CARD_BLANK = "";
|
|
|
|
|
private static final String CARD_CONSULTA = "CONSULTA";
|
|
|
|
|
private static final String CARD_ECD = "ECD";
|
|
|
|
|
|
|
|
|
|
protected JFrame owner;
|
|
|
|
|
|
|
|
|
|
protected JPanel blankPanel;
|
|
|
|
|
protected ConsultaPanel consultaPanel;
|
|
|
|
|
protected ECDsPanel ecdsPanel;
|
|
|
|
|
|
|
|
|
|
protected CardLayout cardLayout;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Creates a new instance of DetalhesProcessoPanel
|
|
|
|
|
*/
|
|
|
|
|
@ -42,6 +49,12 @@ public class DetalhesProcessoPanel extends JPanel
|
|
|
|
|
blankPanel = new JPanel();
|
|
|
|
|
consultaPanel = new ConsultaPanel( owner );
|
|
|
|
|
ecdsPanel = new ECDsPanel( owner );
|
|
|
|
|
|
|
|
|
|
cardLayout = new CardLayout();
|
|
|
|
|
setLayout( cardLayout );
|
|
|
|
|
add( blankPanel, CARD_BLANK );
|
|
|
|
|
add( consultaPanel, CARD_CONSULTA );
|
|
|
|
|
add( ecdsPanel, CARD_ECD );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void addProcessoListener( ProcessoListener listener )
|
|
|
|
|
|