From 12856eb55ffcf7ef14bab838d1b3d519ce303a08 Mon Sep 17 00:00:00 2001 From: Frederico Palma Date: Sun, 29 Apr 2007 22:57:51 +0000 Subject: [PATCH] no message git-svn-id: https://svn.coded.pt/svn/SIPRP@348 bb69d46d-e84e-40c8-a05a-06db0d633741 --- .../medicina/processo/ProcessoPanel.java | 1 - .../estrutura/ProcessoMutableTreeNode.java | 14 ++++++--- .../estrutura/TrabalhadorMutableTreeNode.java | 30 +++++++++++++++++++ 3 files changed, 40 insertions(+), 5 deletions(-) create mode 100644 trunk/siprp/medicina/processo/estrutura/TrabalhadorMutableTreeNode.java diff --git a/trunk/siprp/medicina/processo/ProcessoPanel.java b/trunk/siprp/medicina/processo/ProcessoPanel.java index 61d83e4b..476930d1 100644 --- a/trunk/siprp/medicina/processo/ProcessoPanel.java +++ b/trunk/siprp/medicina/processo/ProcessoPanel.java @@ -50,7 +50,6 @@ public class ProcessoPanel extends JPanel { this.estruturaPanel = estruturaPanel; setupComponents(); - estruturaPanel.addTreeSelectionListener( this ); } diff --git a/trunk/siprp/medicina/processo/estrutura/ProcessoMutableTreeNode.java b/trunk/siprp/medicina/processo/estrutura/ProcessoMutableTreeNode.java index b0629ab5..2e213f9c 100644 --- a/trunk/siprp/medicina/processo/estrutura/ProcessoMutableTreeNode.java +++ b/trunk/siprp/medicina/processo/estrutura/ProcessoMutableTreeNode.java @@ -13,12 +13,18 @@ package siprp.medicina.processo.estrutura; * * @author Frederico */ -public class ProcessoMutableTreeNode +public class ProcessoMutableTreeNode extends EstruturaProcessoMutableTreeNode { - + public static final String ICON_PATH = "/siprp/medicina/processo/estrutura/icons/processo.png"; + /** Creates a new instance of ProcessoMutableTreeNode */ - public ProcessoMutableTreeNode() + public ProcessoMutableTreeNode( Integer id, String descricao ) { + super( id, descricao ); } -} + protected String getIconPath() + { + return ICON_PATH; + } +} \ No newline at end of file diff --git a/trunk/siprp/medicina/processo/estrutura/TrabalhadorMutableTreeNode.java b/trunk/siprp/medicina/processo/estrutura/TrabalhadorMutableTreeNode.java new file mode 100644 index 00000000..ace89827 --- /dev/null +++ b/trunk/siprp/medicina/processo/estrutura/TrabalhadorMutableTreeNode.java @@ -0,0 +1,30 @@ +/* + * TrabalhadorMutableTreeNode.java + * + * Created on 29 de Abril de 2007, 23:53 + * + * To change this template, choose Tools | Template Manager + * and open the template in the editor. + */ + +package siprp.medicina.processo.estrutura; + +/** + * + * @author Frederico + */ +public class TrabalhadorMutableTreeNode extends EstruturaProcessoMutableTreeNode +{ + public static final String ICON_PATH = "/siprp/medicina/processo/estrutura/icons/trabalhador.png"; + + /** Creates a new instance of TrabalhadorMutableTreeNode */ + public TrabalhadorMutableTreeNode( Integer id, String descricao ) + { + super( id, descricao ); + } + + protected String getIconPath() + { + return ICON_PATH; + } +}