no message

git-svn-id: https://svn.coded.pt/svn/SIPRP@349 bb69d46d-e84e-40c8-a05a-06db0d633741
Frederico Palma 19 years ago
parent 12856eb55f
commit a20010b4cb

@ -15,7 +15,7 @@ package siprp.medicina.processo.estrutura;
*/ */
public class ConsultaMutableTreeNode extends EstruturaProcessoMutableTreeNode public class ConsultaMutableTreeNode extends EstruturaProcessoMutableTreeNode
{ {
public static final String ICON_PATH = "/siprp/medicina/processo/estrutura/icons/consulta.png"; public static final String ICON_PATH = "siprp/medicina/processo/estrutura/icons/consulta.png";
/** Creates a new instance of ConsultaMutableTreeNode */ /** Creates a new instance of ConsultaMutableTreeNode */
public ConsultaMutableTreeNode( Integer id, String descricao ) public ConsultaMutableTreeNode( Integer id, String descricao )

@ -15,7 +15,7 @@ package siprp.medicina.processo.estrutura;
*/ */
public class DataMutableTreeNode extends EstruturaProcessoMutableTreeNode public class DataMutableTreeNode extends EstruturaProcessoMutableTreeNode
{ {
public static final String ICON_PATH = "/siprp/medicina/processo/estrutura/icons/data.png"; public static final String ICON_PATH = "siprp/medicina/processo/estrutura/icons/data.png";
/** Creates a new instance of DataMutableTreeNode */ /** Creates a new instance of DataMutableTreeNode */
public DataMutableTreeNode( Integer id, String descricao ) public DataMutableTreeNode( Integer id, String descricao )

@ -15,7 +15,7 @@ package siprp.medicina.processo.estrutura;
*/ */
public class ECDsMutableTreeNode extends EstruturaProcessoMutableTreeNode public class ECDsMutableTreeNode extends EstruturaProcessoMutableTreeNode
{ {
public static final String ICON_PATH = "/siprp/medicina/processo/estrutura/icons/ecds.png"; public static final String ICON_PATH = "siprp/medicina/processo/estrutura/icons/ecds.png";
/** Creates a new instance of ECDsMutableTreeNode */ /** Creates a new instance of ECDsMutableTreeNode */
public ECDsMutableTreeNode( Integer id, String descricao ) public ECDsMutableTreeNode( Integer id, String descricao )

@ -57,6 +57,7 @@ abstract public class EstruturaProcessoMutableTreeNode extends DefaultMutableTre
public Icon getICon() public Icon getICon()
{ {
loadIcon();
return icon; return icon;
} }
@ -66,7 +67,7 @@ abstract public class EstruturaProcessoMutableTreeNode extends DefaultMutableTre
{ {
try try
{ {
ImageIconLoader.loadImageIcon( getClass(), getIconPath() ); icon = ImageIconLoader.loadImageIcon( getClass(), getIconPath() );
} }
catch( Exception ex ) catch( Exception ex )
{ {

@ -39,6 +39,7 @@ public class EstruturaProcessoRenderer extends DefaultTreeCellRenderer
expanded, leaf, row, expanded, leaf, row,
hasFocus); hasFocus);
EstruturaProcessoMutableTreeNode node = ( EstruturaProcessoMutableTreeNode ) value; EstruturaProcessoMutableTreeNode node = ( EstruturaProcessoMutableTreeNode ) value;
System.out.println( node.getICon() );
setIcon( node.getICon() ); setIcon( node.getICon() );
return this; return this;

@ -15,7 +15,7 @@ package siprp.medicina.processo.estrutura;
*/ */
public class FichaAptidaoMutableTreeNode extends EstruturaProcessoMutableTreeNode public class FichaAptidaoMutableTreeNode extends EstruturaProcessoMutableTreeNode
{ {
public static final String ICON_PATH = "/siprp/medicina/processo/estrutura/icons/fichaaptidao.png"; public static final String ICON_PATH = "siprp/medicina/processo/estrutura/icons/fichaaptidao.png";
/** Creates a new instance of FichaAptidaoMutableTreeNode */ /** Creates a new instance of FichaAptidaoMutableTreeNode */
public FichaAptidaoMutableTreeNode( Integer id, String descricao ) public FichaAptidaoMutableTreeNode( Integer id, String descricao )

@ -15,7 +15,7 @@ package siprp.medicina.processo.estrutura;
*/ */
public class MailMutableTreeNode extends EstruturaProcessoMutableTreeNode public class MailMutableTreeNode extends EstruturaProcessoMutableTreeNode
{ {
public static final String ICON_PATH = "/siprp/medicina/processo/estrutura/icons/mail.png"; public static final String ICON_PATH = "siprp/medicina/processo/estrutura/icons/mail.png";
/** Creates a new instance of MailMutableTreeNode */ /** Creates a new instance of MailMutableTreeNode */
public MailMutableTreeNode( Integer id, String descricao ) public MailMutableTreeNode( Integer id, String descricao )

@ -15,7 +15,7 @@ package siprp.medicina.processo.estrutura;
*/ */
public class ObservacoesMutableTreeNode extends EstruturaProcessoMutableTreeNode public class ObservacoesMutableTreeNode extends EstruturaProcessoMutableTreeNode
{ {
public static final String ICON_PATH = "/siprp/medicina/processo/estrutura/icons/observacoes.png"; public static final String ICON_PATH = "siprp/medicina/processo/estrutura/icons/observacoes.png";
/** Creates a new instance of ObservacoesMutableTreeNode */ /** Creates a new instance of ObservacoesMutableTreeNode */
public ObservacoesMutableTreeNode( Integer id, String descricao ) public ObservacoesMutableTreeNode( Integer id, String descricao )

@ -15,7 +15,7 @@ package siprp.medicina.processo.estrutura;
*/ */
public class ProcessoMutableTreeNode extends EstruturaProcessoMutableTreeNode public class ProcessoMutableTreeNode extends EstruturaProcessoMutableTreeNode
{ {
public static final String ICON_PATH = "/siprp/medicina/processo/estrutura/icons/processo.png"; public static final String ICON_PATH = "siprp/medicina/processo/estrutura/icons/processo.png";
/** Creates a new instance of ProcessoMutableTreeNode */ /** Creates a new instance of ProcessoMutableTreeNode */
public ProcessoMutableTreeNode( Integer id, String descricao ) public ProcessoMutableTreeNode( Integer id, String descricao )

@ -15,7 +15,7 @@ package siprp.medicina.processo.estrutura;
*/ */
public class TrabalhadorMutableTreeNode extends EstruturaProcessoMutableTreeNode public class TrabalhadorMutableTreeNode extends EstruturaProcessoMutableTreeNode
{ {
public static final String ICON_PATH = "/siprp/medicina/processo/estrutura/icons/trabalhador.png"; public static final String ICON_PATH = "siprp/medicina/processo/estrutura/icons/trabalhador.png";
/** Creates a new instance of TrabalhadorMutableTreeNode */ /** Creates a new instance of TrabalhadorMutableTreeNode */
public TrabalhadorMutableTreeNode( Integer id, String descricao ) public TrabalhadorMutableTreeNode( Integer id, String descricao )

Loading…
Cancel
Save