Package gui

Examples of gui.JTextControlKey


   * Constructeur
   */
  public TypeAvertissementEditionFenetre() {
    aDialog = new JDialog(MainWindow.cadrePrincipal(), "  Type  avertissement...", true);
   
    textLibelle = new JTextControlKey("", 5, IsNumString);
    textDegre = new JTextControlKey("", 5, IsNum);
   
      okFlag = false;
  }
View Full Code Here


   * Constructeur
   */
  public TypeUniteEditionFenetre() {
    aDialog = new JDialog(MainWindow.cadrePrincipal(), "  Type unit�...", true);

    textLibelle = new JTextControlKey("", 3, IsString);
    textLibelle.ChampsTxt.setForeground(new java.awt.Color(66, 79, 120));
   
    textVal = new JTextControlKey("", 30, IsNum);
    textVal.ChampsTxt.setForeground(new java.awt.Color(66, 79, 120));
   
    okFlag = false;
  }
View Full Code Here

   * Constructeur
   */
  public ChauffeurEditionFenetre() {
    aDialog = new JDialog(MainWindow.cadrePrincipal(), "  Chauffeur...", true);

    textNom = new JTextControlKey("", 30, IsNumString);
    textPrenom = new JTextControlKey("", 30, IsNumString);
    textRue = new JTextArea(30, 6);
    textRue.setFont(titreFont);
    textRue.setForeground(new java.awt.Color(66, 79, 120));
    textNumeroRue = new JTextControlKey("", 11, IsNumString);

    cmbCp = new JComboBox(getListeLocaliteCp());
    cmbLoca = new JComboBox(getListeLocaliteCommune());


    cmbVille = new JComboBox(getListeVille());

    ani = new ImageIcon(getClass().getClassLoader().getResource("images/logoCalender.jpg"));
    textDtNais = new JLabel();
    textDtNais.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(66, 79, 120), 2));
    textDtNais.setIcon(ani);
    textDtNais.setFont(titreFont);
    textDtNais.setForeground(new java.awt.Color(66, 79, 120));
    textDtNais.addMouseListener(new MouseListener() {
      public void mouseClicked(MouseEvent e) {
        DateCalendar fen = new DateCalendar(MainWindow.cadrePrincipal(), DateCalendar.Mode.DATE_SEULEMENT);
        fen.affiche();

        if (fen.okFlag) {
          Date dateNaissance = fen.retourDate();
          textDtNais.setText(new SimpleDateFormat(MotsCleProjet.DATE_FORMAT).format(dateNaissance));
         
        } else {
          textDtNais.setText(DATE_ERREUR_TEXTE);
          MessageBox(MainWindow.desktop(), "DATE INVALIDE...");
        }
      }
      public void mouseEntered(MouseEvent e) {}
      public void mouseExited(MouseEvent e) {}
      public void mousePressed(MouseEvent e) {}
      public void mouseReleased(MouseEvent e) {}
    });

    getAge();

    textNumNat = new JTextControlKey("", 30, IsNumString);

    cmbSexe = new JComboBox();
    cmbSexe.setFont(titreFont);
    cmbSexe.setForeground(new java.awt.Color(66, 79, 120));
    cmbSexe.addItem("Feminin");
    cmbSexe.addItem("Masculin");

    cmbEtCiv = new JComboBox();
    cmbEtCiv.setFont(titreFont);
    cmbEtCiv.setForeground(new java.awt.Color(66, 79, 120));
    cmbEtCiv.addItem("C�libataire");
    cmbEtCiv.addItem("Mari�(e)");
    cmbEtCiv.addItem("Divorc�(e)");
    cmbEtCiv.addItem("Veuf(ve)");

    cmbNbPersonne = new JComboBox();
    cmbNbPersonne.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(66, 79, 120), 2));
    cmbNbPersonne.setFont(titreFont);
    cmbNbPersonne.setForeground(new java.awt.Color(66, 79, 120));
    cmbNbPersonne.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(66, 79, 120), 2));
 
    for (int i = 0; i <= 20; i++) {
      cmbNbPersonne.addItem(i);
    }
    cmbNbPersonne.addActionListener(this);

    textTelephone = new JTextControlKey("", 13, IsNumString);
    textGsm = new JTextControlKey("", 14, IsNumString);
    textEmail = new JTextControlKey("", 60, IsNumString);

    textNumCpteChauf = new JTextControlKey("", 30, IsNumString);

    getPermis();
    getDatePermis();
    getDateValiditePermis();
    getDureePermis();
    getEtatPermis();
    getVisiteMedicale();
    textCertifBVM = new JTextControlKey("", 10, IsNumString);

    cmbEtats = new JComboBox(getListeEtats());
      okFlag = false;
  }
View Full Code Here

   *
   * @return JTextField textPermis
   */
  private JTextField getPermis() {
    if (permis == null) {
      textPermis = new JTextControlKey("", 10, IsString);
      textPermis.ChampsTxt.setFont(titreFont);
      textPermis.ChampsTxt.setForeground(new java.awt.Color(66, 79, 120));
      textPermis.ChampsTxt.setPreferredSize(new java.awt.Dimension(70, 20));

    }
View Full Code Here

   * Constructeur
   */
  public PeriodeTravailEditionFenetre() {
    aDialog = new JDialog(MainWindow.cadrePrincipal(), "  P�riode de travail...", true);

    textLibelle = new JTextControlKey("", 30, IsNumString);
    cmbChauffeur = new JComboBox(getListeChauffeur());   
    cmbContrat = new JComboBox(getListeContrat());
    cmbMotifFinContrat = new JComboBox(getListeMotifFinContrat());
   
    ani = new ImageIcon(getClass().getClassLoader().getResource("images/logoCalender.jpg"));
View Full Code Here

   * Constructeur
   */
  public TypeContratEditionFenetre() {
    aDialog = new JDialog(MainWindow.cadrePrincipal(), "  Type contrat...", true);
   
    textLibelle = new JTextControlKey("", 30, IsNumString);
    textNbrHrTypCtr = new JTextControlKey("", 30, IsNumString);   
    textPourcSal = new JTextControlKey("", 30, IsDecimal);
  }
View Full Code Here

   *
   */
  public ChargeVoitureEditionFenetre() {
        aDialog = new JDialog(MainWindow.cadrePrincipal(), "  Charge Voiture...", true);

        textReference = new JTextControlKey("", 20, IsNumString);
        textLibelle = new JTextControlKey("", 30, IsNumString);

        Calendar calendarEmissionChargeMinimum = Calendar.getInstance();       
        calendarEmissionChargeMinimum.add(Calendar.DAY_OF_MONTH, -15);       
        Date dateEmissionChargeMinimum = calendarEmissionChargeMinimum.getTime();

        Calendar calendarEmissionChargeMaximum = Calendar.getInstance();
        calendarEmissionChargeMaximum.add(Calendar.DAY_OF_MONTH, 1);       
        Date dateEmissionChargeMaximum = calendarEmissionChargeMaximum.getTime();
       
        textdateEmissionCharge = TaxiGuiUtil.creeDateLabel(gui.MotsCleProjet.DATE_FORMAT, DateCalendar.Mode.DATE_SEULEMENT, dateEmissionChargeMinimum, dateEmissionChargeMaximum);

        Calendar calendarEcheanceChrgMinimum = Calendar.getInstance();
        calendarEcheanceChrgMinimum.add(Calendar.DAY_OF_MONTH, -14);
        Date dateEcheanceChrgMinimum = calendarEcheanceChrgMinimum.getTime();

        Calendar calendarEcheanceChrgMaximum = Calendar.getInstance();
        calendarEcheanceChrgMaximum.add(Calendar.DAY_OF_MONTH, 15);
        Date dateEcheanceChrgMaximum = calendarEcheanceChrgMaximum.getTime();
        textDateEcheanceChrg = TaxiGuiUtil.creeDateLabel(gui.MotsCleProjet.DATE_FORMAT, DateCalendar.Mode.DATE_SEULEMENT, dateEcheanceChrgMinimum, dateEcheanceChrgMaximum);

        textMontIndicatif = new JTextControlKey("", 10, IsDecimal);
       
        cmbTypeCharge = new JComboBox(getListeTypeCharge());
        cmbVoiture = new JComboBox(getListeVoiture());

        cmbEtatCharge = new JComboBox(getListeEtatCharge());
View Full Code Here

TOP

Related Classes of gui.JTextControlKey

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.