no message

git-svn-id: https://svn.coded.pt/svn/SIPRP@347 bb69d46d-e84e-40c8-a05a-06db0d633741
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
Frederico Palma 19 years ago
parent 76f2a82b24
commit 643daa0522

@ -9,6 +9,9 @@
package siprp.medicina.processo;
import siprp.medicina.processo.detalhes.DetalhesProcessoPanel;
import siprp.medicina.processo.estrutura.EstruturaProcessoPanel;
/**
*
* @author Frederico

@ -33,11 +33,12 @@ public class ProcessoEvent
public static final int ACCAO_ESCREVER_MAIL = 15;
public static final int OBJECTO_ANY = 0;
public static final int OBJECTO_CONSULTA = 1;
public static final int OBJECTO_ECDS = 2;
public static final int OBJECTO_DATA = 3;
public static final int OBJECTO_OBSERVACOES = 4;
public static final int OBJECTO_MAIL = 5;
public static final int OBJECTO_PROCESSO = 1;
public static final int OBJECTO_CONSULTA = 2;
public static final int OBJECTO_ECDS = 3;
public static final int OBJECTO_DATA = 4;
public static final int OBJECTO_OBSERVACOES = 5;
public static final int OBJECTO_MAIL = 6;
protected final int accao;
protected final int tiposObjectos[];

@ -22,6 +22,7 @@ import javax.swing.*;
import javax.swing.event.TreeSelectionEvent;
import javax.swing.event.TreeSelectionListener;
import siprp.medicina.processo.data.MarcacoesProcessoData;
import siprp.medicina.processo.estrutura.EstruturaProcessoPanel;
/**
*

@ -16,6 +16,7 @@ import javax.swing.BorderFactory;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.SwingUtilities;
import siprp.medicina.processo.estrutura.EstruturaProcessoPanel;
/**
*

@ -7,10 +7,11 @@
* and open the template in the editor.
*/
package siprp.medicina.processo;
package siprp.medicina.processo.detalhes;
import java.util.Vector;
import javax.swing.JPanel;
import siprp.medicina.processo.*;
/**
*

@ -0,0 +1,30 @@
/*
* ConsultaMutableTreeNode.java
*
* Created on 29 de Abril de 2007, 19:31
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package siprp.medicina.processo.estrutura;
/**
*
* @author Frederico
*/
public class ConsultaMutableTreeNode extends EstruturaProcessoMutableTreeNode
{
public static final String ICON_PATH = "/siprp/medicina/processo/estrutura/icons/consulta.png";
/** Creates a new instance of ConsultaMutableTreeNode */
public ConsultaMutableTreeNode( Integer id, String descricao )
{
super( id, descricao );
}
protected String getIconPath()
{
return ICON_PATH;
}
}

@ -0,0 +1,30 @@
/*
* DataMutableTreeNode.java
*
* Created on 29 de Abril de 2007, 19:32
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package siprp.medicina.processo.estrutura;
/**
*
* @author Frederico
*/
public class DataMutableTreeNode extends EstruturaProcessoMutableTreeNode
{
public static final String ICON_PATH = "/siprp/medicina/processo/estrutura/icons/data.png";
/** Creates a new instance of DataMutableTreeNode */
public DataMutableTreeNode( Integer id, String descricao )
{
super( id, descricao );
}
protected String getIconPath()
{
return ICON_PATH;
}
}

@ -0,0 +1,30 @@
/*
* ECDsMutableTreeNode.java
*
* Created on 29 de Abril de 2007, 19:31
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package siprp.medicina.processo.estrutura;
/**
*
* @author Frederico
*/
public class ECDsMutableTreeNode extends EstruturaProcessoMutableTreeNode
{
public static final String ICON_PATH = "/siprp/medicina/processo/estrutura/icons/ecds.png";
/** Creates a new instance of ECDsMutableTreeNode */
public ECDsMutableTreeNode( Integer id, String descricao )
{
super( id, descricao );
}
protected String getIconPath()
{
return ICON_PATH;
}
}

@ -0,0 +1,77 @@
/*
* EstruturaProcessoMutableTreeNode.java
*
* Created on 29 de Abril de 2007, 18:57
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package siprp.medicina.processo.estrutura;
import com.evolute.utils.data.IDObject;
import com.evolute.utils.images.ImageIconLoader;
import javax.swing.Icon;
import javax.swing.tree.DefaultMutableTreeNode;
/**
*
* @author Frederico
*/
abstract public class EstruturaProcessoMutableTreeNode extends DefaultMutableTreeNode
implements IDObject
{
protected Icon icon;
protected Integer id;
protected String descricao;
/** Creates a new instance of EstruturaProcessoMutableTreeNode */
public EstruturaProcessoMutableTreeNode( Integer id, String descricao )
{
super( descricao );
this.id = id;
this.descricao = descricao;
}
public Integer getID()
{
return id;
}
public void setID( Integer id )
{
this.id = id;
}
public String getDescricao()
{
return descricao;
}
public void setDescricao( String descricao )
{
this.descricao = descricao;
}
abstract protected String getIconPath();
public Icon getICon()
{
return icon;
}
protected void loadIcon()
{
if( icon == null )
{
try
{
ImageIconLoader.loadImageIcon( getClass(), getIconPath() );
}
catch( Exception ex )
{
ex.printStackTrace();
}
}
}
}

@ -7,7 +7,7 @@
* and open the template in the editor.
*/
package siprp.medicina.processo;
package siprp.medicina.processo.estrutura;
import com.evolute.utils.data.IDObject;
import com.evolute.utils.data.MappableObject;
@ -23,6 +23,7 @@ import javax.swing.event.TreeSelectionEvent;
import javax.swing.event.TreeSelectionListener;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.TreePath;
import siprp.medicina.processo.*;
import siprp.medicina.processo.data.MarcacoesProcessoData;
/**
@ -43,8 +44,6 @@ public class EstruturaProcessoPanel extends JPanel
protected IDObject trabalhador;
protected final HashMap<Integer,MarcacoesProcessoData> PROCESSOS_POR_ID =
new HashMap<Integer,MarcacoesProcessoData>();
private final Vector<TreeSelectionListener> SELECTION_LISTENERS =
new Vector<TreeSelectionListener>();
private final Vector<ProcessoListener> PROCESSO_LISTENERS = new Vector<ProcessoListener>();
@ -125,22 +124,9 @@ public class EstruturaProcessoPanel extends JPanel
}
}
public void addTreeSelectionListener( TreeSelectionListener listener )
{
SELECTION_LISTENERS.add( listener );
}
public void removeTreeSelectionListener( TreeSelectionListener listener )
{
SELECTION_LISTENERS.remove( listener );
}
public void valueChanged(TreeSelectionEvent e)
{
for( int n = 0; n < SELECTION_LISTENERS.size(); n++ )
{
SELECTION_LISTENERS.get( n ).valueChanged( e );
}
}
public MarcacoesProcessoData getProcessoEscolhido()

@ -0,0 +1,46 @@
/*
* EstruturaProcessoRenderer.java
*
* Created on 29 de Abril de 2007, 18:52
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package siprp.medicina.processo.estrutura;
import java.awt.Component;
import javax.swing.*;
import javax.swing.tree.*;
/**
*
* @author Frederico
*/
public class EstruturaProcessoRenderer extends DefaultTreeCellRenderer
{
/** Creates a new instance of EstruturaProcessoRenderer */
public EstruturaProcessoRenderer()
{
}
public Component getTreeCellRendererComponent(
JTree tree,
Object value,
boolean sel,
boolean expanded,
boolean leaf,
int row,
boolean hasFocus) {
super.getTreeCellRendererComponent(
tree, value, sel,
expanded, leaf, row,
hasFocus);
EstruturaProcessoMutableTreeNode node = ( EstruturaProcessoMutableTreeNode ) value;
setIcon( node.getICon() );
return this;
}
}

@ -0,0 +1,30 @@
/*
* FichaAptidaoMutableTreeNode.java
*
* Created on 29 de Abril de 2007, 19:32
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package siprp.medicina.processo.estrutura;
/**
*
* @author Frederico
*/
public class FichaAptidaoMutableTreeNode extends EstruturaProcessoMutableTreeNode
{
public static final String ICON_PATH = "/siprp/medicina/processo/estrutura/icons/fichaaptidao.png";
/** Creates a new instance of FichaAptidaoMutableTreeNode */
public FichaAptidaoMutableTreeNode( Integer id, String descricao )
{
super( id, descricao );
}
protected String getIconPath()
{
return ICON_PATH;
}
}

@ -0,0 +1,30 @@
/*
* MailMutableTreeNode.java
*
* Created on 29 de Abril de 2007, 19:32
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package siprp.medicina.processo.estrutura;
/**
*
* @author Frederico
*/
public class MailMutableTreeNode extends EstruturaProcessoMutableTreeNode
{
public static final String ICON_PATH = "/siprp/medicina/processo/estrutura/icons/mail.png";
/** Creates a new instance of MailMutableTreeNode */
public MailMutableTreeNode( Integer id, String descricao )
{
super( id, descricao );
}
protected String getIconPath()
{
return ICON_PATH;
}
}

@ -0,0 +1,30 @@
/*
* ObservacoesMutableTreeNode.java
*
* Created on 29 de Abril de 2007, 19:32
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package siprp.medicina.processo.estrutura;
/**
*
* @author Frederico
*/
public class ObservacoesMutableTreeNode extends EstruturaProcessoMutableTreeNode
{
public static final String ICON_PATH = "/siprp/medicina/processo/estrutura/icons/observacoes.png";
/** Creates a new instance of ObservacoesMutableTreeNode */
public ObservacoesMutableTreeNode( Integer id, String descricao )
{
super( id, descricao );
}
protected String getIconPath()
{
return ICON_PATH;
}
}

@ -0,0 +1,24 @@
/*
* ProcessoMutableTreeNode.java
*
* Created on 29 de Abril de 2007, 19:31
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package siprp.medicina.processo.estrutura;
/**
*
* @author Frederico
*/
public class ProcessoMutableTreeNode
{
/** Creates a new instance of ProcessoMutableTreeNode */
public ProcessoMutableTreeNode()
{
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Loading…
Cancel
Save