|
|
|
@ -10,8 +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.*;
|
|
|
|
import com.evolute.utils.ui.*;
|
|
|
|
import com.evolute.utils.ui.button.*;
|
|
|
|
import com.evolute.utils.ui.panel.*;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
*
|
|
|
|
@ -20,7 +21,7 @@ import com.evolute.utils.ui.button.*;
|
|
|
|
public class TrabalhadorPanel extends JPanel
|
|
|
|
public class TrabalhadorPanel extends JPanel
|
|
|
|
{
|
|
|
|
{
|
|
|
|
private JTextField nomeText;
|
|
|
|
private JTextField nomeText;
|
|
|
|
private RadioButtonGroup sexoGroup;
|
|
|
|
private RadioButtonFixedPanel sexoPanel;
|
|
|
|
private JCalendarPanel dataNascimentoPanel;
|
|
|
|
private JCalendarPanel dataNascimentoPanel;
|
|
|
|
private JTextField nacionalidadeText;
|
|
|
|
private JTextField nacionalidadeText;
|
|
|
|
private JTextField numeroMecanograficoText;
|
|
|
|
private JTextField numeroMecanograficoText;
|
|
|
|
@ -45,11 +46,11 @@ public class TrabalhadorPanel extends JPanel
|
|
|
|
JLabel nomeLabel = new JLabel( "Nome" );
|
|
|
|
JLabel nomeLabel = new JLabel( "Nome" );
|
|
|
|
nomeText = new JTextField();
|
|
|
|
nomeText = new JTextField();
|
|
|
|
JLabel sexoLabel = new JLabel( "Sexo" );
|
|
|
|
JLabel sexoLabel = new JLabel( "Sexo" );
|
|
|
|
JPanel sexoPanel = new JPanel();
|
|
|
|
sexoPanel =
|
|
|
|
sexoGroup =
|
|
|
|
new RadioButtonFixedPanel(
|
|
|
|
new RadioButtonGroup( sexoPanel,
|
|
|
|
new IDObject[]{ new MappableObject( new Integer( 1 ), "M" ),
|
|
|
|
new Vector( Arrays.asList( new String[]{ "M", "F" } ) ),
|
|
|
|
new MappableObject( new Integer( 2 ), "F" ) },
|
|
|
|
false );
|
|
|
|
1, 2, RadioButtonPanel.ORIENTATION_HORIZONTAL, false );
|
|
|
|
JLabel dataNascimentoLabel = new JLabel( "Data de Nascimento" );
|
|
|
|
JLabel dataNascimentoLabel = new JLabel( "Data de Nascimento" );
|
|
|
|
dataNascimentoPanel = new JCalendarPanel( null );
|
|
|
|
dataNascimentoPanel = new JCalendarPanel( null );
|
|
|
|
JLabel nacionalidadeLabel = new JLabel( "Nacionalidade" );
|
|
|
|
JLabel nacionalidadeLabel = new JLabel( "Nacionalidade" );
|
|
|
|
|