no message

git-svn-id: https://svn.coded.pt/svn/SIPRP@346 bb69d46d-e84e-40c8-a05a-06db0d633741
Frederico Palma 19 years ago
parent 63b1669d8c
commit 76f2a82b24

@ -0,0 +1,36 @@
/*
* DetalhesProcessoPanel.java
*
* Created on 25 de Abril de 2007, 17:34
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package siprp.medicina.processo;
import java.util.Vector;
import javax.swing.JPanel;
/**
*
* @author Frederico
*/
public class DetalhesProcessoPanel extends JPanel
{
private final Vector<ProcessoListener> PROCESSO_LISTENERS = new Vector<ProcessoListener>();
/**
* Creates a new instance of DetalhesProcessoPanel
*/
public DetalhesProcessoPanel()
{
}
public void addProcessoListener( ProcessoListener listener )
{
PROCESSO_LISTENERS.add( listener );
}
}

@ -46,6 +46,8 @@ public class EstruturaProcessoPanel extends JPanel
private final Vector<TreeSelectionListener> SELECTION_LISTENERS = private final Vector<TreeSelectionListener> SELECTION_LISTENERS =
new Vector<TreeSelectionListener>(); new Vector<TreeSelectionListener>();
private final Vector<ProcessoListener> PROCESSO_LISTENERS = new Vector<ProcessoListener>();
/** Creates a new instance of EstruturaProcessoPanel */ /** Creates a new instance of EstruturaProcessoPanel */
public EstruturaProcessoPanel() public EstruturaProcessoPanel()
throws Exception throws Exception
@ -162,4 +164,8 @@ public class EstruturaProcessoPanel extends JPanel
return processo; return processo;
} }
public void addProcessoListener( ProcessoListener listener )
{
PROCESSO_LISTENERS.add( listener );
}
} }

@ -0,0 +1,36 @@
/*
* ProcessoController.java
*
* Created on 25 de Abril de 2007, 15:10
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package siprp.medicina.processo;
/**
*
* @author Frederico
*/
public class ProcessoController
implements ProcessoListener
{
protected EstruturaProcessoPanel estruturaProcessoPanel;
protected ProcessoPanel processoPanel;
protected DetalhesProcessoPanel detalhesProcessoPanel;
/** Creates a new instance of ProcessoController */
public ProcessoController( EstruturaProcessoPanel estruturaProcessoPanel, ProcessoPanel processoPanel,
DetalhesProcessoPanel detalhesProcessoPanel )
{
this.estruturaProcessoPanel = estruturaProcessoPanel;
this.processoPanel = processoPanel;
this.detalhesProcessoPanel = detalhesProcessoPanel;
}
public void processoStateChenged(ProcessoEvent e)
{
}
}

@ -17,6 +17,7 @@ import java.awt.event.ActionListener;
import java.text.DateFormat; import java.text.DateFormat;
import java.util.Date; import java.util.Date;
import java.util.Locale; import java.util.Locale;
import java.util.Vector;
import javax.swing.*; import javax.swing.*;
import javax.swing.event.TreeSelectionEvent; import javax.swing.event.TreeSelectionEvent;
import javax.swing.event.TreeSelectionListener; import javax.swing.event.TreeSelectionListener;
@ -41,6 +42,8 @@ public class ProcessoPanel extends JPanel
private final EstruturaProcessoPanel estruturaPanel; private final EstruturaProcessoPanel estruturaPanel;
private final Vector<ProcessoListener> PROCESSO_LISTENERS = new Vector<ProcessoListener>();
/** Creates a new instance of ProcessoPanel */ /** Creates a new instance of ProcessoPanel */
public ProcessoPanel( EstruturaProcessoPanel estruturaPanel ) public ProcessoPanel( EstruturaProcessoPanel estruturaPanel )
{ {
@ -192,4 +195,9 @@ public class ProcessoPanel extends JPanel
} }
} }
} }
public void addProcessoListener( ProcessoListener listener )
{
PROCESSO_LISTENERS.add( listener );
}
} }

Loading…
Cancel
Save