Ejemplo n.º 1
0
  public SISOneToMany(String struct, String descript, String structID, Map<String, Object> data) {
    super(struct, descript, structID);

    buildContentPanel(Orientation.VERTICAL);

    DisplayData defaultStructure = (DisplayData) data.get("data");
    String columnCSV = (String) data.get("columns");

    oneToMany = new SISOneToManyWindow(descript, defaultStructure);
    oneToMany.addWindowListener(
        new WindowListener() {
          public void windowHide(WindowEvent we) {
            updateRecordCount();

            updateRecords();
          }
        });

    displayFields = new ArrayList<Integer>();
    if (columnCSV != null) {
      for (String value : columnCSV.split(",")) {
        try {
          displayFields.add(Integer.valueOf(value.trim()));
        } catch (Exception e) {
        }
      }
    }
  }