Package boco.ejb3PlugIn.gui

Examples of boco.ejb3PlugIn.gui.ShowInFormDialog


        }
      }

      // Richiama la dialog per l'acquisizione delle informazioni

      ShowInFormDialog showInFormDialog = new ShowInFormDialog(null, Utils.getIntegerValue(annotationCode, "order").toString(), getImplementationType(annotationCode), Utils.getBooleanValue(annotationCode, "required"), Utils.getBooleanValue(annotationCode, "help"));

      showInFormDialog.pack();
      showInFormDialog.setLocationRelativeTo(null);
      showInFormDialog.setVisible(true);
      String order = showInFormDialog.getOrder();
      String implementationType = showInFormDialog.getType();

      if (order == null)
        return;

      IType type = compilationUnit.getTypes()[0];

      //Rimuove il campo esistente
      type.getField(field.getElementName()).delete(true, null);

      if (implementationType.contains("TEXTAREA"))
      {
        newFieldSourceCode += "\r\n\r\n@ShowInForm(order=" + order + ",type=" + implementationType + ", rows=" + showInFormDialog.getRows() + ", columns=" + showInFormDialog.getColumns();
      }
      else
      {
        newFieldSourceCode += "\r\n\r\n@ShowInForm(order=" + order + ",type=" + implementationType;
      }

      if (showInFormDialog.getRequired())
      {
        newFieldSourceCode += ", required=true";
      }

      if (showInFormDialog.getHelp())
      {
        newFieldSourceCode += ", help=true";
      }

      newFieldSourceCode += ")\r\n";
View Full Code Here


        }       
      }

      // Richiama la dialog per l'acquisizione delle informazioni
     
      ShowInFormDialog showInFormDialog = new ShowInFormDialog(null,
          Utils.getIntegerValue(annotationCode, "order").toString(),
          getImplementationType(annotationCode),
          Utils.getBooleanValue(annotationCode, "required"),
          Utils.getBooleanValue(annotationCode, "help"));

      showInFormDialog.pack();
      showInFormDialog.setLocationRelativeTo(null);
      showInFormDialog.setVisible(true);
      String order = showInFormDialog.getOrder();
      String implementationType = showInFormDialog.getType();

      if (order == null)
        return;     
     
      IType type = compilationUnit.getTypes()[0];

      //Rimuove il campo esistente
      type.getField(field.getElementName()).delete(true, null);

      if (implementationType.contains("TEXTAREA"))
      {
        newFieldSourceCode += "\r\n@SearchOnAttribute(order=" + order + ",type=" + implementationType + ", rows=" + showInFormDialog.getRows() + ", columns=" + showInFormDialog.getColumns() + ")\r\n";
      }
      else
      {
        newFieldSourceCode += "\r\n@SearchOnAttribute(order=" + order + ",type=" + implementationType + ")\r\n";
      }
View Full Code Here

TOP

Related Classes of boco.ejb3PlugIn.gui.ShowInFormDialog

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.