Package com.insacosa.Inmobles.domain

Examples of com.insacosa.Inmobles.domain.Caracteristiques


    it = caracteristiquesInmoble.iterator();
    while (it.hasNext())
    {
      CaracteristicaForm caracteristicaForm = new CaracteristicaForm();
     
      Caracteristiques caracteristicaInmoble = (Caracteristiques) it.next();
      caracteristicaForm.setKey(caracteristicaInmoble.getCaracteristicaKey());
      //caracteristicaForm.setKeyTipus(caracteristicaInmoble.getTipus().getTipusKey());
      caracteristicaForm.setNom(caracteristicaInmoble.getNom());
     
      if (caracteristicaInmoble.getControl() == 0// NOMES LES CARACTERISTIQUES BOOLEANES
      {
        // afegim a la llista de caracteristiques seleccionades
        dragDropBean.getTarget().add(caracteristicaInmoble)
       
        // eliminem l'objecte de la llista de caracteristiques No Seleccionades
View Full Code Here


      ValuesCaracteristiques vc = new ValuesCaracteristiques();
     
      vc.setInmobles(inmoble); // 1
      vc.setValue(String.valueOf(cv.getValue()))// 2 convertim un Objecte (Integer, String,..) a String
     
      Caracteristiques c = new Caracteristiques();
      c.setCaracteristicaKey(cv.getKey());
     
      vc.setCaracteristiques(c)// 3
      /* 
      ValuesCaracteristiquesId vcId = new ValuesCaracteristiquesId();
      vcId.setKeycaracteristica(cv.getKey());
View Full Code Here

   
    // en funcio del tipus(varchar,select,...) del Tipus construim el formulari
    Iterator<?> iter = c.iterator();
    while (iter.hasNext())
    {
      Caracteristiques cc = (Caracteristiques) iter.next();
     
      if (cc.getTtpcontrol().getTipus().compareTo("ITXT") == 0)
      {
        // construim outputText
             containerControlsDinamics.getChildren().add(HtmlDinamic.buildOutputText(
          Cadenes.primeraLletraMajuscula(cc.getNom())
          ,(ValueExpression) Utils.resolveExpression(cc.getNom() + " " + cc.getCaracteristicaKey())));
                 
           // construim inputText
                       
           HtmlInputText inputText = new HtmlInputText();   
        ValueExpression v = (ValueExpression) Utils.resolveExpression("#{inmobleForm.valorsCaracts[" + cc.getCaracteristicaKey() + "]}");
          Utils.processProperty(inputText, v,  "value");
                 
           containerControlsDinamics.getChildren().add(HtmlDinamic.buildInputText(
             "controlsdinamics_" + cc.getNom().toLowerCase() ,
             v,
              "width:" + (10*cc.getTamanyControl()) + "px",
              cc.getTamanyControl(),
              "Campo requerido",   // requiredMessage
              cc.getTtpbasic().getBdtype().compareTo("INT") == 0 "valor numérico" : "valor incorrecto",
              cc.getTtpbasic().getBdtype(),
              cc.getObligatori(),
              true,     // transient !!!!!!!!!!!!
              0,
              cc.getTamanyControl())
              );
     
           // misatge d'error
           containerControlsDinamics.getChildren().add(HtmlDinamic.buildMessageRich(
               "inputText_controlsdinamics_" + cc.getNom().toLowerCase(),
               "color:red;font-weight:bold",
               true));   // transient, true pq no dupliqui ID 
                 
          // construim checkbox
              
          ValueExpression v2 = (ValueExpression) Utils.resolveExpression("#{inmobleForm.columnesVisibles[" + cc.getCaracteristicaKey() + "]}");
                 
          containerControlsDinamics.getChildren().add(HtmlDinamic.buildCheckbox(
               cc.getCaracteristicaKey()// idCaracteristica
               v2,
               new ArrayList<String>(){/**
             *
             */
            private static final long serialVersionUID = 1L;
View Full Code Here

  }

   
    public Caracteristiques caracteristicaCaractInmoble(Caractinmobles caractinmoble) {
   
    Caracteristiques c = null;
   
    try {         
        c = entityManager.find(Caracteristiques.class, caractinmoble.getKey());
        
    } catch (RuntimeException e) {
View Full Code Here


   
  public Caracteristiques caractPerKey(String keyCaract) {
   
    Caracteristiques caracteristica = null;

    EntityTransaction tx = entityManager.getTransaction();
    tx.begin();
   
    try {    
View Full Code Here

    //tipus.setKey(keyTipus);
   
    Iterator<Caracteristiques> iter = caracteristiquesFinder.caractTipus(tipus, 0, false).iterator();
    while (iter.hasNext())
    {
      Caracteristiques caracteristica = (Caracteristiques)(iter.next());
     
      CaracteristicaForm caract = new CaracteristicaForm();
     
      caract.setKey(caracteristica.getCaracteristicaKey());
      //caract.setKeyTipus(caracteristica.getTipus().getTipusKey());
      caract.setNom(caracteristica.getNom());
                        
      dragDropBean.getSource().add(caracteristica);
     
    }
  }
View Full Code Here

  {
   
    Iterator<Caracteristiques> iter = l.iterator();
    while(iter.hasNext())
    {
      Caracteristiques lc = (Caracteristiques) iter.next();
      /*if (lc.compareTo(c) == 0)
      { 
        return lc;
      }*/
    }
 
View Full Code Here

    dragDropBean.getSource().clear();
   
    Iterator<Caracteristiques> iter = novaLlista.iterator();
    while (iter.hasNext())
      {
        Caracteristiques caracteristicaHBM = (Caracteristiques)(iter.next());
       
        dragDropBean.getSource().add(caracteristicaHBM);
      }
   
  }
View Full Code Here

  @Inject
  private InjectorHelper injectorHelper;
 
 
  public Caracteristiques load(Long id) {   
    Caracteristiques caracteristiques = super.load(id);
    injectorHelper.injectDependencies(caracteristiques);
    return caracteristiques;
  }
View Full Code Here

TOP

Related Classes of com.insacosa.Inmobles.domain.Caracteristiques

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.