no message
git-svn-id: https://svn.coded.pt/svn/SIPRP@347 bb69d46d-e84e-40c8-a05a-06db0d633741
@ -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();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -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()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
After Width: | Height: | Size: 4.9 KiB |
|
After Width: | Height: | Size: 5.5 KiB |
|
After Width: | Height: | Size: 6.1 KiB |
|
After Width: | Height: | Size: 5.2 KiB |
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 4.4 KiB |
|
After Width: | Height: | Size: 19 KiB |