コード例 #1
0
 CustomABMJDialog getAbm(Window owner) {
   abmPanel = new ABMDiscapacidadPanel();
   UTIL.hideColumnTable(abmPanel.getjTable1(), 0); // --> DiscapacidadDetalle instance
   ArrayList<ComboBoxWrapper<UsuarioSector>> l = new ArrayList<>(5);
   List<ComboBoxWrapper<TipoDocumento>> ltd = new ArrayList<>();
   SGDUtilities.cargarInstitucionesYTipoDocumentoSegunSector(l, ltd, sectorUI);
   UTIL.loadComboBox(abmPanel.getCbInstitucion(), l, false);
   new TipoDocumentoComboListener(abmPanel.getCbTipoDocumento(), abmPanel.getCbSubTipoDocumento());
   UTIL.loadComboBox(abmPanel.getCbTipoDocumento(), ltd, false, "<Sin Tipo de Documento>");
   abmPanel.getCbInstitucion().setSelectedIndex(0);
   abmPanel.addButtonsActionListener(this);
   customABMJDialog = new CustomABMJDialog(owner, abmPanel, "ABM " + sectorUI, true, null);
   customABMJDialog.setPanelComponentsEnabled(false);
   customABMJDialog.addBottomButtonsActionListener(this);
   customABMJDialog.addToolBarButtonsActionListener(this);
   customABMJDialog.setEnabledBottomButtons(false);
   return customABMJDialog;
 }