|
|
|
@ -10,7 +10,9 @@ import java.awt.*;
|
|
|
|
import javax.swing.*;
|
|
|
|
import javax.swing.*;
|
|
|
|
import java.util.*;
|
|
|
|
import java.util.*;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.evolute.utils.data.*;
|
|
|
|
import com.evolute.utils.ui.button.*;
|
|
|
|
import com.evolute.utils.ui.button.*;
|
|
|
|
|
|
|
|
import com.evolute.utils.ui.panel.*;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
*
|
|
|
|
@ -21,8 +23,10 @@ public class EmpresaPanel extends JPanel
|
|
|
|
private JTextField designacaoSocialText;
|
|
|
|
private JTextField designacaoSocialText;
|
|
|
|
private JTextField estabelecimentoText;
|
|
|
|
private JTextField estabelecimentoText;
|
|
|
|
private JTextField localidadeText;
|
|
|
|
private JTextField localidadeText;
|
|
|
|
private RadioButtonGroup servicoSaudeTipoGroup;
|
|
|
|
// private RadioButtonGroup servicoSaudeTipoGroup;
|
|
|
|
private RadioButtonGroup servicoHigieneTipoGroup;
|
|
|
|
// private RadioButtonGroup servicoHigieneTipoGroup;
|
|
|
|
|
|
|
|
private RadioButtonFixedPanel servicoSaudeTipoPanel;
|
|
|
|
|
|
|
|
private RadioButtonFixedPanel servicoHigieneTipoPanel;
|
|
|
|
private JTextField designacaoText;
|
|
|
|
private JTextField designacaoText;
|
|
|
|
|
|
|
|
|
|
|
|
/** Creates a new instance of EmpresaPanel */
|
|
|
|
/** Creates a new instance of EmpresaPanel */
|
|
|
|
@ -39,7 +43,7 @@ public class EmpresaPanel extends JPanel
|
|
|
|
|
|
|
|
|
|
|
|
JLabel designacaoSocialLabel = new JLabel( "Designa\u00e7\u00e3o Social" );
|
|
|
|
JLabel designacaoSocialLabel = new JLabel( "Designa\u00e7\u00e3o Social" );
|
|
|
|
designacaoSocialText = new JTextField();
|
|
|
|
designacaoSocialText = new JTextField();
|
|
|
|
JPanel servicoSaudePanel = new JPanel();
|
|
|
|
// JPanel servicoSaudePanel = new JPanel();
|
|
|
|
JLabel estabelecimentoLabel = new JLabel( "Estabelecimento" );
|
|
|
|
JLabel estabelecimentoLabel = new JLabel( "Estabelecimento" );
|
|
|
|
estabelecimentoText = new JTextField();
|
|
|
|
estabelecimentoText = new JTextField();
|
|
|
|
JLabel localidadeLabel = new JLabel( "Localidade" );
|
|
|
|
JLabel localidadeLabel = new JLabel( "Localidade" );
|
|
|
|
@ -49,23 +53,25 @@ public class EmpresaPanel extends JPanel
|
|
|
|
// JRadioButton saudeInterempresas = new JRadioButton( "Interempresas" );
|
|
|
|
// JRadioButton saudeInterempresas = new JRadioButton( "Interempresas" );
|
|
|
|
// JRadioButton saudeExterno = new JRadioButton( "Externo" );
|
|
|
|
// JRadioButton saudeExterno = new JRadioButton( "Externo" );
|
|
|
|
// JRadioButton saudeSNS = new JRadioButton( "Servi\u00e7o Nacional de Sa\u00fade" );
|
|
|
|
// JRadioButton saudeSNS = new JRadioButton( "Servi\u00e7o Nacional de Sa\u00fade" );
|
|
|
|
servicoSaudeTipoGroup =
|
|
|
|
// servicoSaudeTipoGroup =
|
|
|
|
new RadioButtonGroup( servicoSaudePanel,
|
|
|
|
// new RadioButtonGroup( servicoSaudePanel,
|
|
|
|
new Vector( Arrays.asList( new Object[]{
|
|
|
|
// new Vector( Arrays.asList( new Object[]{
|
|
|
|
"Interno", "Interempresas",
|
|
|
|
// "Interno", "Interempresas",
|
|
|
|
"Externo", "Servi\u00e7o Nacional de Sa\u00fade" } ) ), false );
|
|
|
|
// "Externo", "Servi\u00e7o Nacional de Sa\u00fade" } ) ), false );
|
|
|
|
|
|
|
|
servicoSaudeTipoPanel =
|
|
|
|
|
|
|
|
new RadioButtonFixedPanel( new IDObject[]{ new MappableObject( new Integer(1), "Interno" ),
|
|
|
|
|
|
|
|
new MappableObject( new Integer(2), "Interempresas" ),
|
|
|
|
|
|
|
|
new MappableObject( new Integer(3), "Externo" ),
|
|
|
|
|
|
|
|
new MappableObject( new Integer(4), "Servi\u00e7o Nacional de Sa\u00fade" ) },
|
|
|
|
|
|
|
|
1, 4, RadioButtonPanel.ORIENTATION_HORIZONTAL, false );
|
|
|
|
|
|
|
|
|
|
|
|
JPanel servicoHigienePanel = new JPanel();
|
|
|
|
|
|
|
|
JLabel servicoHigieneLabel = new JLabel( "Servi\u00e7o de Higiene e Seguran\u00e7a: Tipo" );
|
|
|
|
JLabel servicoHigieneLabel = new JLabel( "Servi\u00e7o de Higiene e Seguran\u00e7a: Tipo" );
|
|
|
|
// JRadioButton higieneInterno = new JRadioButton( "Interno" );
|
|
|
|
servicoHigieneTipoPanel =
|
|
|
|
// JRadioButton higieneInterempresas = new JRadioButton( "Interempresas" );
|
|
|
|
new RadioButtonFixedPanel( new IDObject[]{ new MappableObject( new Integer(1), "Interno" ),
|
|
|
|
// JRadioButton higieneExterno = new JRadioButton( "Externo" );
|
|
|
|
new MappableObject( new Integer(2), "Interempresas" ),
|
|
|
|
// JRadioButton higieneOutro = new JRadioButton( "Outro" );
|
|
|
|
new MappableObject( new Integer(3), "Externo" ),
|
|
|
|
servicoHigieneTipoGroup =
|
|
|
|
new MappableObject( new Integer(4), "Outro" ) },
|
|
|
|
new RadioButtonGroup( servicoHigienePanel,
|
|
|
|
1, 4, RadioButtonPanel.ORIENTATION_HORIZONTAL, false );
|
|
|
|
new Vector( Arrays.asList( new Object[]{
|
|
|
|
|
|
|
|
"Interno", "Interempresas",
|
|
|
|
|
|
|
|
"Externo", "Outro" } ) ), false );
|
|
|
|
|
|
|
|
JLabel designacaoLabel = new JLabel( "Designa\u00e7\u00e3o" );
|
|
|
|
JLabel designacaoLabel = new JLabel( "Designa\u00e7\u00e3o" );
|
|
|
|
designacaoText = new JTextField();
|
|
|
|
designacaoText = new JTextField();
|
|
|
|
|
|
|
|
|
|
|
|
@ -93,10 +99,12 @@ public class EmpresaPanel extends JPanel
|
|
|
|
add( estabelecimentoLabel );
|
|
|
|
add( estabelecimentoLabel );
|
|
|
|
|
|
|
|
|
|
|
|
constraints.weightx = 0.6;
|
|
|
|
constraints.weightx = 0.6;
|
|
|
|
|
|
|
|
constraints.gridwidth = 3;
|
|
|
|
gridbag.setConstraints( estabelecimentoText, constraints );
|
|
|
|
gridbag.setConstraints( estabelecimentoText, constraints );
|
|
|
|
add( estabelecimentoText );
|
|
|
|
add( estabelecimentoText );
|
|
|
|
|
|
|
|
|
|
|
|
constraints.weightx = 0;
|
|
|
|
constraints.weightx = 0;
|
|
|
|
|
|
|
|
constraints.gridwidth = 1;
|
|
|
|
gridbag.setConstraints( localidadeLabel, constraints );
|
|
|
|
gridbag.setConstraints( localidadeLabel, constraints );
|
|
|
|
add( localidadeLabel );
|
|
|
|
add( localidadeLabel );
|
|
|
|
|
|
|
|
|
|
|
|
@ -105,26 +113,47 @@ public class EmpresaPanel extends JPanel
|
|
|
|
gridbag.setConstraints( localidadeText, constraints );
|
|
|
|
gridbag.setConstraints( localidadeText, constraints );
|
|
|
|
add( localidadeText );
|
|
|
|
add( localidadeText );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// constraints.weightx = 1;
|
|
|
|
|
|
|
|
// constraints.gridwidth = GridBagConstraints.REMAINDER;
|
|
|
|
|
|
|
|
// JPanel servicoSaudeOuterPanel = new JPanel();
|
|
|
|
|
|
|
|
// servicoSaudeOuterPanel.setLayout( new BorderLayout( 0, 0 ) );
|
|
|
|
|
|
|
|
// servicoSaudeOuterPanel.add( servicoSaudeLabel, BorderLayout.WEST );
|
|
|
|
|
|
|
|
// servicoSaudeOuterPanel.add( servicoSaudeTipoPanel, BorderLayout.CENTER );
|
|
|
|
|
|
|
|
// gridbag.setConstraints( servicoSaudeOuterPanel, constraints );
|
|
|
|
|
|
|
|
// add( servicoSaudeOuterPanel );
|
|
|
|
|
|
|
|
constraints.weightx = 0;
|
|
|
|
|
|
|
|
constraints.gridwidth = 2;
|
|
|
|
|
|
|
|
gridbag.setConstraints( servicoSaudeLabel, constraints );
|
|
|
|
|
|
|
|
add( servicoSaudeLabel );
|
|
|
|
|
|
|
|
|
|
|
|
constraints.weightx = 1;
|
|
|
|
constraints.weightx = 1;
|
|
|
|
constraints.gridwidth = GridBagConstraints.REMAINDER;
|
|
|
|
constraints.gridwidth = GridBagConstraints.REMAINDER;
|
|
|
|
JPanel servicoSaudeOuterPanel = new JPanel();
|
|
|
|
gridbag.setConstraints( servicoSaudeTipoPanel, constraints );
|
|
|
|
servicoSaudeOuterPanel.setLayout( new BorderLayout( 0, 0 ) );
|
|
|
|
add( servicoSaudeTipoPanel );
|
|
|
|
servicoSaudeOuterPanel.add( servicoSaudeLabel, BorderLayout.WEST );
|
|
|
|
|
|
|
|
servicoSaudeOuterPanel.add( servicoSaudePanel, BorderLayout.CENTER );
|
|
|
|
// constraints.weightx = 1;
|
|
|
|
gridbag.setConstraints( servicoSaudeOuterPanel, constraints );
|
|
|
|
// constraints.gridwidth = GridBagConstraints.REMAINDER;
|
|
|
|
add( servicoSaudeOuterPanel );
|
|
|
|
// JPanel servicoHigieneOuterPanel = new JPanel();
|
|
|
|
|
|
|
|
// servicoHigieneOuterPanel.setLayout( new BorderLayout( 0, 0 ) );
|
|
|
|
|
|
|
|
// servicoHigieneOuterPanel.add( servicoHigieneLabel, BorderLayout.WEST );
|
|
|
|
|
|
|
|
// servicoHigieneOuterPanel.add( servicoHigieneTipoPanel, BorderLayout.CENTER );
|
|
|
|
|
|
|
|
// gridbag.setConstraints( servicoHigieneOuterPanel, constraints );
|
|
|
|
|
|
|
|
// add( servicoHigieneOuterPanel );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
constraints.weightx = 0;
|
|
|
|
|
|
|
|
constraints.gridwidth = 3;
|
|
|
|
|
|
|
|
gridbag.setConstraints( servicoHigieneLabel, constraints );
|
|
|
|
|
|
|
|
add( servicoHigieneLabel );
|
|
|
|
|
|
|
|
|
|
|
|
constraints.weightx = 1;
|
|
|
|
constraints.weightx = 1;
|
|
|
|
constraints.gridwidth = GridBagConstraints.REMAINDER;
|
|
|
|
constraints.gridwidth = GridBagConstraints.REMAINDER;
|
|
|
|
JPanel servicoHigieneOuterPanel = new JPanel();
|
|
|
|
gridbag.setConstraints( servicoHigieneTipoPanel, constraints );
|
|
|
|
servicoHigieneOuterPanel.setLayout( new BorderLayout( 0, 0 ) );
|
|
|
|
add( servicoHigieneTipoPanel );
|
|
|
|
servicoHigieneOuterPanel.add( servicoHigieneLabel, BorderLayout.WEST );
|
|
|
|
|
|
|
|
servicoHigieneOuterPanel.add( servicoHigienePanel, BorderLayout.CENTER );
|
|
|
|
|
|
|
|
gridbag.setConstraints( servicoHigieneOuterPanel, constraints );
|
|
|
|
|
|
|
|
add( servicoHigieneOuterPanel );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
constraints.gridwidth = 1;
|
|
|
|
constraints.gridwidth = 1;
|
|
|
|
constraints.weightx = 0;
|
|
|
|
constraints.weightx = 0;
|
|
|
|
|
|
|
|
constraints.weighty = 1;
|
|
|
|
|
|
|
|
constraints.gridheight = GridBagConstraints.REMAINDER;
|
|
|
|
gridbag.setConstraints( designacaoLabel, constraints );
|
|
|
|
gridbag.setConstraints( designacaoLabel, constraints );
|
|
|
|
add( designacaoLabel );
|
|
|
|
add( designacaoLabel );
|
|
|
|
|
|
|
|
|
|
|
|
|