Examples of LookupListener


Examples of org.openswing.swing.lookup.client.LookupListener

      itemController.setVisibleColumn("companyCodeSys01ITM01", true);
      itemController.setVisibleColumn("itemCodeITM01", true);
      itemController.setVisibleColumn("descriptionSYS10", true);
      itemController.setPreferredWidthColumn("descriptionSYS10", 200);
      itemController.setFramePreferedSize(new Dimension(650,500));
      itemController.addLookupListener(new LookupListener() {

        public void codeValidated(boolean validated) {}

        public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) {
          // fill in the grid v.o., according to the selected item settings...
View Full Code Here

Examples of org.openswing.swing.lookup.client.LookupListener

      altController.setAllColumnVisible(false);
      altController.setVisibleColumn("operationCodePRO04", true);
      altController.setVisibleColumn("descriptionSYS10", true);
      altController.setPreferredWidthColumn("descriptionSYS10", 200);
      altController.setFramePreferedSize(new Dimension(350,500));
      altController.addLookupListener(new LookupListener() {

        public void codeValidated(boolean validated) {}

        public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) {}

        public void beforeLookupAction(ValueObject parentVO) {
          ManufactureVO vo = (ManufactureVO)grid.getVOListTableModel().getObjectForRow(grid.getSelectedRow());
          altController.getLookupDataLocator().getLookupValidationParameters().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01PRO01());
          altController.getLookupDataLocator().getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01PRO01());
        }

        public void forceValidate() {}

      });


      // operation code lookup...
      opDataLocator.setGridMethodName("loadOperations");
      opDataLocator.setValidationMethodName("validateOperationCode");
      colOpCod.setLookupController(opController);
      colOpCod.setControllerMethodName("getOperationsList");
      opController.setLookupDataLocator(opDataLocator);
      opController.setFrameTitle("operations");
      opController.setLookupValueObjectClassName("org.jallinone.production.manufactures.java.OperationVO");
      opController.addLookup2ParentLink("operationCodePRO04", "operationCodePro04PRO02");
      opController.addLookup2ParentLink("descriptionSYS10", "descriptionSYS10");
      opController.addLookup2ParentLink("qtyPRO04", "qtyPRO02");
      opController.addLookup2ParentLink("durationPRO04", "durationPRO02");
      opController.addLookup2ParentLink("notePRO04", "notePRO02");
      opController.addLookup2ParentLink("taskCodeReg07PRO04", "taskCodeReg07PRO02");
      opController.addLookup2ParentLink("taskDescriptionSYS10", "taskDescriptionSYS10");
      opController.addLookup2ParentLink("machineryCodePro03PRO04", "machineryCodePro03PRO02");
      opController.addLookup2ParentLink("machineryDescriptionSYS10", "machineryDescriptionSYS10");
      opController.addLookup2ParentLink("valuePRO04", "valuePRO02");
      opController.setAllColumnVisible(false);
      opController.setVisibleColumn("operationCodePRO04", true);
      opController.setVisibleColumn("descriptionSYS10", true);
      opController.setPreferredWidthColumn("descriptionSYS10", 200);
      opController.setFramePreferedSize(new Dimension(350,500));
      opController.addLookupListener(new LookupListener() {

        public void codeValidated(boolean validated) {}

        public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) {}

        public void beforeLookupAction(ValueObject parentVO) {
          ManufactureVO vo = (ManufactureVO)grid.getVOListTableModel().getObjectForRow(grid.getSelectedRow());
          opController.getLookupDataLocator().getLookupValidationParameters().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01PRO01());
          opController.getLookupDataLocator().getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01PRO01());
        }

        public void forceValidate() {}

      });


      // task lookup...
      taskDataLocator.setGridMethodName("loadTasks");
      taskDataLocator.setValidationMethodName("validateTaskCode");
      colTaskCode.setLookupController(taskController);
      colTaskCode.setControllerMethodName("getTasksList");
      taskController.setLookupDataLocator(taskDataLocator);
      taskController.setFrameTitle("tasks");
      taskController.setLookupValueObjectClassName("org.jallinone.registers.task.java.TaskVO");
      taskController.addLookup2ParentLink("taskCodeREG07", "taskCodeReg07PRO02");
      taskController.addLookup2ParentLink("descriptionSYS10","taskDescriptionSYS10");
      taskController.setAllColumnVisible(false);
      taskController.setVisibleColumn("taskCodeREG07", true);
      taskController.setVisibleColumn("descriptionSYS10", true);
      taskController.addLookupListener(new LookupListener() {

        public void codeValidated(boolean validated) {}

        public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) {}

        public void beforeLookupAction(ValueObject parentVO) {
          ManufacturePhaseVO vo = (ManufacturePhaseVO)parentVO;
          taskDataLocator.getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01PRO02());
          taskDataLocator.getLookupValidationParameters().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01PRO02());
        }

        public void forceValidate() {}

      });
      new CustomizedColumns(new BigDecimal(192),taskController);


      // machineries lookup...
       macDataLocator.setGridMethodName("loadMachineries");
       macDataLocator.setValidationMethodName("validateMachineryCode");
       colMachCode.setLookupController(macController);
       colMachCode.setControllerMethodName("getMachineriesList");
       macController.setLookupDataLocator(macDataLocator);
       macController.setFrameTitle("machineries");
       macController.setLookupValueObjectClassName("org.jallinone.production.machineries.java.MachineryVO");
       macController.addLookup2ParentLink("machineryCodePRO03", "machineryCodePro03PRO02");
       macController.addLookup2ParentLink("descriptionSYS10", "machineryDescriptionSYS10");
       macController.setAllColumnVisible(false);
       macController.setVisibleColumn("machineryCodePRO03", true);
       macController.setVisibleColumn("descriptionSYS10", true);
       macController.addLookupListener(new LookupListener() {

         public void codeValidated(boolean validated) {}

         public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) {}
View Full Code Here

Examples of org.openswing.swing.lookup.client.LookupListener

      taskController.addLookup2ParentLink("taskCodeREG07", "taskCodeReg07PRO04");
      taskController.addLookup2ParentLink("descriptionSYS10","taskDescriptionSYS10");
      taskController.setAllColumnVisible(false);
      taskController.setVisibleColumn("taskCodeREG07", true);
      taskController.setVisibleColumn("descriptionSYS10", true);
      taskController.addLookupListener(new LookupListener() {

        public void codeValidated(boolean validated) {}

        public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) {}

        public void beforeLookupAction(ValueObject parentVO) {
          OperationVO vo = (OperationVO)parentVO;
          taskDataLocator.getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01PRO04());
          taskDataLocator.getLookupValidationParameters().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01PRO04());
        }

        public void forceValidate() {}

      });
      new CustomizedColumns(new BigDecimal(192),taskController);


      // machineries lookup...
      macDataLocator.setGridMethodName("loadMachineries");
      macDataLocator.setValidationMethodName("validateMachineryCode");
      colMachCode.setLookupController(macController);
      colMachCode.setControllerMethodName("getMachineriesList");
      macController.setLookupDataLocator(macDataLocator);
      macController.setFrameTitle("machineries");
      macController.setLookupValueObjectClassName("org.jallinone.production.machineries.java.MachineryVO");
      macController.addLookup2ParentLink("machineryCodePRO03", "machineryCodePro03PRO04");
      macController.addLookup2ParentLink("descriptionSYS10", "machineryDescriptionSYS10");
      macController.setAllColumnVisible(false);
      macController.setVisibleColumn("machineryCodePRO03", true);
      macController.setVisibleColumn("descriptionSYS10", true);
      macController.addLookupListener(new LookupListener() {

        public void codeValidated(boolean validated) {}

        public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) {}
View Full Code Here

Examples of org.openswing.swing.lookup.client.LookupListener

      agentController.setPreferredWidthColumn("name_1REG04", 200);
      agentController.setPreferredWidthColumn("name_2REG04", 200);
      agentController.setHeaderColumnName("name_1REG04", "firstname");
      agentController.setHeaderColumnName("name_2REG04", "lastname");
      agentController.setFramePreferedSize(new Dimension(510,500));
      agentController.addLookupListener(new LookupListener() {

        public void codeValidated(boolean validated) {}

        public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) {}
View Full Code Here

Examples of org.openswing.swing.lookup.client.LookupListener

      docRefController.setVisibleColumn("name_1REG04", true);
      docRefController.setVisibleColumn("name_2REG04", true);
      docRefController.setVisibleColumn("docDateDOC01", true);
      docRefController.setFramePreferedSize(new Dimension(700,500));

      docRefController.addLookupListener(new LookupListener() {

        public void codeValidated(boolean validated) {}

        public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) {}
View Full Code Here

Examples of org.openswing.swing.lookup.client.LookupListener

      wareController.setVisibleColumn("zipWAR01", true);
      wareController.setVisibleColumn("provinceWAR01", true);
      wareController.setVisibleColumn("countryWAR01", true);
      wareController.setPreferredWidthColumn("descriptionWAR01",200);
      wareController.setFramePreferedSize(new Dimension(750,500));
      wareController.addLookupListener(new LookupListener() {

        public void codeValidated(boolean validated) {}

        public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) {}

        public void beforeLookupAction(ValueObject parentVO) {
          DetailSaleDocVO vo = (DetailSaleDocVO)form.getVOModel().getValueObject();
          wareDataLocator.getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01DOC01());
          wareDataLocator.getLookupValidationParameters().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01DOC01());
        }

        public void forceValidate() {}

      });



      // destination lookup...
      destDataLocator.setGridMethodName("loadDestinations");
      destDataLocator.setValidationMethodName("validateDestinationCode");

      controlDestCode.setLookupController(destController);
      destController.setForm(form);
      destController.setLookupDataLocator(destDataLocator);
      destController.setFrameTitle("destinations");
      destController.setLookupValueObjectClassName("org.jallinone.sales.destinations.java.DestinationVO");
      destController.addLookup2ParentLink("destinationCodeREG18", "destinationCodeReg18DOC01");
      destController.addLookup2ParentLink("descriptionREG18","descriptionDOC01");
      destController.addLookup2ParentLink("addressREG18", "addressDOC01");
      destController.addLookup2ParentLink("cityREG18","cityDOC01");
      destController.addLookup2ParentLink("zipREG18","zipDOC01");
      destController.addLookup2ParentLink("provinceREG18","provinceDOC01");
      destController.addLookup2ParentLink("countryREG18","countryDOC01");
      destController.setAllColumnVisible(false);
      destController.setVisibleColumn("destinationCodeREG18", true);
      destController.setVisibleColumn("descriptionREG18", true);
      destController.setVisibleColumn("addressREG18", true);
      destController.setVisibleColumn("cityREG18", true);
      destController.setVisibleColumn("zipREG18", true);
      destController.setVisibleColumn("provinceREG18", true);
      destController.setVisibleColumn("countryREG18", true);

      destController.setHeaderColumnName("addressREG18", "address");
      destController.setHeaderColumnName("cityREG18", "city");
      destController.setHeaderColumnName("zipREG18", "zip");
      destController.setHeaderColumnName("provinceREG18", "province");
      destController.setHeaderColumnName("countryREG18", "country");

      destController.setPreferredWidthColumn("descriptionREG18",200);
      destController.setFramePreferedSize(new Dimension(750,500));
      destController.addLookupListener(new LookupListener() {

        public void codeValidated(boolean validated) {}

        public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) {
          DetailSaleDocVO vo = (DetailSaleDocVO)form.getVOModel().getValueObject();
View Full Code Here

Examples of org.openswing.swing.lookup.client.LookupListener

      creditController.setAllColumnVisible(false);
      creditController.setVisibleColumn("accountCodeACC02", true);
      creditController.setVisibleColumn("descriptionSYS10", true);
      creditController.setPreferredWidthColumn("accountCodeACC02",100);
      creditController.setPreferredWidthColumn("descriptionSYS10",290);
      creditController.addLookupListener(new LookupListener() {

        public void codeValidated(boolean validated) {}

        public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) { }

        public void beforeLookupAction(ValueObject parentVO) {
          creditDataLocator.getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompanies.getValue());
          creditDataLocator.getLookupValidationParameters().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompanies.getValue());
        }

        public void forceValidate() {}

      });


      // items account code lookup...
      controlItemsCode.setLookupController(itemsController);
      controlItemsCode.setControllerMethodName("getAccounts");
      itemsController.setLookupDataLocator(itemsDataLocator);
      itemsDataLocator.setGridMethodName("loadAccounts");
      itemsDataLocator.setValidationMethodName("validateAccountCode");
      itemsController.setFrameTitle("accounts");
      itemsController.setLookupValueObjectClassName("org.jallinone.accounting.accounts.java.AccountVO");
      itemsController.addLookup2ParentLink("accountCodeACC02", "itemsAccountCodeAcc02SAL07");
      itemsController.addLookup2ParentLink("descriptionSYS10","itemsAccountDescrSAL07");
      itemsController.setFilterableColumn("accountCodeACC02",true);
      itemsController.setFilterableColumn("descriptionSYS10",true);
      itemsController.setFramePreferedSize(new Dimension(400,400));
      itemsController.setAllColumnVisible(false);
      itemsController.setVisibleColumn("accountCodeACC02", true);
      itemsController.setVisibleColumn("descriptionSYS10", true);
      itemsController.setPreferredWidthColumn("accountCodeACC02",100);
      itemsController.setPreferredWidthColumn("descriptionSYS10",290);
      itemsController.addLookupListener(new LookupListener() {

        public void codeValidated(boolean validated) {}

        public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) { }

        public void beforeLookupAction(ValueObject parentVO) {
          itemsDataLocator.getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompanies.getValue());
          itemsDataLocator.getLookupValidationParameters().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompanies.getValue());
        }

        public void forceValidate() {}

      });


      // activities account code lookup...
      controlActCode.setLookupController(actController);
      controlActCode.setControllerMethodName("getAccounts");
      actController.setLookupDataLocator(actDataLocator);
      actDataLocator.setGridMethodName("loadAccounts");
      actDataLocator.setValidationMethodName("validateAccountCode");
      actController.setFrameTitle("accounts");
      actController.setLookupValueObjectClassName("org.jallinone.accounting.accounts.java.AccountVO");
      actController.addLookup2ParentLink("accountCodeACC02", "activitiesAccountCodeAcc02SAL07");
      actController.addLookup2ParentLink("descriptionSYS10","activitiesAccountDescrSAL07");
      actController.setFilterableColumn("accountCodeACC02",true);
      actController.setFilterableColumn("descriptionSYS10",true);
      actController.setFramePreferedSize(new Dimension(400,400));
      actController.setAllColumnVisible(false);
      actController.setVisibleColumn("accountCodeACC02", true);
      actController.setVisibleColumn("descriptionSYS10", true);
      actController.setPreferredWidthColumn("accountCodeACC02",100);
      actController.setPreferredWidthColumn("descriptionSYS10",290);
      actController.addLookupListener(new LookupListener() {

        public void codeValidated(boolean validated) {}

        public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) { }

        public void beforeLookupAction(ValueObject parentVO) {
          actDataLocator.getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompanies.getValue());
          actDataLocator.getLookupValidationParameters().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompanies.getValue());
        }

        public void forceValidate() {}

      });


      // charges account code lookup...
      controlChargesCode.setLookupController(chargesController);
      controlChargesCode.setControllerMethodName("getAccounts");
      chargesController.setLookupDataLocator(chargesDataLocator);
      chargesDataLocator.setGridMethodName("loadAccounts");
      chargesDataLocator.setValidationMethodName("validateAccountCode");
      chargesController.setFrameTitle("accounts");
      chargesController.setLookupValueObjectClassName("org.jallinone.accounting.accounts.java.AccountVO");
      chargesController.addLookup2ParentLink("accountCodeACC02", "chargesAccountCodeAcc02SAL07");
      chargesController.addLookup2ParentLink("descriptionSYS10","chargesAccountDescrSAL07");
      chargesController.setFilterableColumn("accountCodeACC02",true);
      chargesController.setFilterableColumn("descriptionSYS10",true);
      chargesController.setFramePreferedSize(new Dimension(400,400));
      chargesController.setAllColumnVisible(false);
      chargesController.setVisibleColumn("accountCodeACC02", true);
      chargesController.setVisibleColumn("descriptionSYS10", true);
      chargesController.setPreferredWidthColumn("accountCodeACC02",100);
      chargesController.setPreferredWidthColumn("descriptionSYS10",290);
      chargesController.addLookupListener(new LookupListener() {

        public void codeValidated(boolean validated) {}

        public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) { }

        public void beforeLookupAction(ValueObject parentVO) {
          chargesDataLocator.getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompanies.getValue());
          chargesDataLocator.getLookupValidationParameters().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompanies.getValue());
        }

        public void forceValidate() {}

      });


      // debit account code lookup...
      controlDebitsCode.setLookupController(debitController);
      controlDebitsCode.setControllerMethodName("getAccounts");
      debitController.setLookupDataLocator(debitDataLocator);
      debitDataLocator.setGridMethodName("loadAccounts");
      debitDataLocator.setValidationMethodName("validateAccountCode");
      debitController.setFrameTitle("accounts");
      debitController.setLookupValueObjectClassName("org.jallinone.accounting.accounts.java.AccountVO");
      debitController.addLookup2ParentLink("accountCodeACC02", "debitAccountCodeAcc02PUR01");
      debitController.addLookup2ParentLink("descriptionSYS10","debitAccountDescrPUR01");
      debitController.setFilterableColumn("accountCodeACC02",true);
      debitController.setFilterableColumn("descriptionSYS10",true);
      debitController.setFramePreferedSize(new Dimension(400,400));
      debitController.setAllColumnVisible(false);
      debitController.setVisibleColumn("accountCodeACC02", true);
      debitController.setVisibleColumn("descriptionSYS10", true);
      debitController.setPreferredWidthColumn("accountCodeACC02",100);
      debitController.setPreferredWidthColumn("descriptionSYS10",290);
      debitController.addLookupListener(new LookupListener() {

        public void codeValidated(boolean validated) {}

        public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) { }

        public void beforeLookupAction(ValueObject parentVO) {
          debitDataLocator.getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompanies.getValue());
          debitDataLocator.getLookupValidationParameters().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompanies.getValue());
        }

        public void forceValidate() {}

      });


      // costs account code lookup...
      controlCostsCode.setLookupController(costsController);
      controlCostsCode.setControllerMethodName("getAccounts");
      costsController.setLookupDataLocator(costsDataLocator);
      costsDataLocator.setGridMethodName("loadAccounts");
      costsDataLocator.setValidationMethodName("validateAccountCode");
      costsController.setFrameTitle("accounts");
      costsController.setLookupValueObjectClassName("org.jallinone.accounting.accounts.java.AccountVO");
      costsController.addLookup2ParentLink("accountCodeACC02", "costsAccountCodeAcc02PUR01");
      costsController.addLookup2ParentLink("descriptionSYS10","costsAccountDescrPUR01");
      costsController.setFilterableColumn("accountCodeACC02",true);
      costsController.setFilterableColumn("descriptionSYS10",true);
      costsController.setFramePreferedSize(new Dimension(400,400));
      costsController.setAllColumnVisible(false);
      costsController.setVisibleColumn("accountCodeACC02", true);
      costsController.setVisibleColumn("descriptionSYS10", true);
      costsController.setPreferredWidthColumn("accountCodeACC02",100);
      costsController.setPreferredWidthColumn("descriptionSYS10",290);
      costsController.addLookupListener(new LookupListener() {

        public void codeValidated(boolean validated) {}

        public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) { }

        public void beforeLookupAction(ValueObject parentVO) {
          costsDataLocator.getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompanies.getValue());
          costsDataLocator.getLookupValidationParameters().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompanies.getValue());
        }

        public void forceValidate() {}

      });


      // case account code lookup...
      controlCaseCode.setLookupController(caseController);
      controlCaseCode.setControllerMethodName("getAccounts");
      caseController.setLookupDataLocator(caseDataLocator);
      caseDataLocator.setGridMethodName("loadAccounts");
      caseDataLocator.setValidationMethodName("validateAccountCode");
      caseController.setFrameTitle("accounts");
      caseController.setLookupValueObjectClassName("org.jallinone.accounting.accounts.java.AccountVO");
      caseController.addLookup2ParentLink("accountCodeACC02", "caseAccountCodeAcc02DOC21");
      caseController.addLookup2ParentLink("descriptionSYS10","caseAccountDescrDOC21");
      caseController.setFilterableColumn("accountCodeACC02",true);
      caseController.setFilterableColumn("descriptionSYS10",true);
      caseController.setFramePreferedSize(new Dimension(400,400));
      caseController.setAllColumnVisible(false);
      caseController.setVisibleColumn("accountCodeACC02", true);
      caseController.setVisibleColumn("descriptionSYS10", true);
      caseController.setPreferredWidthColumn("accountCodeACC02",100);
      caseController.setPreferredWidthColumn("descriptionSYS10",290);
      caseController.addLookupListener(new LookupListener() {

        public void codeValidated(boolean validated) {}

        public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) { }

        public void beforeLookupAction(ValueObject parentVO) {
          caseDataLocator.getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompanies.getValue());
          caseDataLocator.getLookupValidationParameters().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompanies.getValue());
        }

        public void forceValidate() {}

      });

      // bank account code lookup...
      controlBankCode.setLookupController(bankController);
      controlBankCode.setControllerMethodName("getAccounts");
      bankController.setLookupDataLocator(bankDataLocator);
      bankDataLocator.setGridMethodName("loadAccounts");
      bankDataLocator.setValidationMethodName("validateAccountCode");
      bankController.setFrameTitle("accounts");
      bankController.setLookupValueObjectClassName("org.jallinone.accounting.accounts.java.AccountVO");
      bankController.addLookup2ParentLink("accountCodeACC02", "bankAccountCodeAcc02DOC21");
      bankController.addLookup2ParentLink("descriptionSYS10","bankAccountDescrDOC21");
      bankController.setFilterableColumn("accountCodeACC02",true);
      bankController.setFilterableColumn("descriptionSYS10",true);
      bankController.setFramePreferedSize(new Dimension(400,400));
      bankController.setAllColumnVisible(false);
      bankController.setVisibleColumn("accountCodeACC02", true);
      bankController.setVisibleColumn("descriptionSYS10", true);
      bankController.setPreferredWidthColumn("accountCodeACC02",100);
      bankController.setPreferredWidthColumn("descriptionSYS10",290);
      bankController.addLookupListener(new LookupListener() {

        public void codeValidated(boolean validated) {}

        public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) { }

        public void beforeLookupAction(ValueObject parentVO) {
          bankDataLocator.getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompanies.getValue());
          bankDataLocator.getLookupValidationParameters().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompanies.getValue());
        }

        public void forceValidate() {}

      });

      // vatEnd account code lookup...
      controlVatEndCode.setLookupController(vatEndController);
      controlVatEndCode.setControllerMethodName("getAccounts");
      vatEndController.setLookupDataLocator(vatEndDataLocator);
      vatEndDataLocator.setGridMethodName("loadAccounts");
      vatEndDataLocator.setValidationMethodName("validateAccountCode");
      vatEndController.setFrameTitle("accounts");
      vatEndController.setLookupValueObjectClassName("org.jallinone.accounting.accounts.java.AccountVO");
      vatEndController.addLookup2ParentLink("accountCodeACC02", "vatEndAccountCodeAcc02DOC21");
      vatEndController.addLookup2ParentLink("descriptionSYS10","vatEndAccountDescrDOC21");
      vatEndController.setFilterableColumn("accountCodeACC02",true);
      vatEndController.setFilterableColumn("descriptionSYS10",true);
      vatEndController.setFramePreferedSize(new Dimension(400,400));
      vatEndController.setAllColumnVisible(false);
      vatEndController.setVisibleColumn("accountCodeACC02", true);
      vatEndController.setVisibleColumn("descriptionSYS10", true);
      vatEndController.setPreferredWidthColumn("accountCodeACC02",100);
      vatEndController.setPreferredWidthColumn("descriptionSYS10",290);
      vatEndController.addLookupListener(new LookupListener() {

        public void codeValidated(boolean validated) {}

        public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) { }

        public void beforeLookupAction(ValueObject parentVO) {
          vatEndDataLocator.getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompanies.getValue());
          vatEndDataLocator.getLookupValidationParameters().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompanies.getValue());
        }

        public void forceValidate() {}

      });

      /*
          private String lossProfitEAccountCodeAcc02DOC21;
          private String lossProfitEAccountDescrSAL07;
          private String lossProfitPAccountCodeAcc02DOC21;
          private String lossProfitPAccountDescrSAL07;
          private String closingAccountCodeAcc02DOC21;
          private String closingAccountDescrSAL07;
          private String openingAccountCodeAcc02DOC21;
          private String openingAccountDescrSAL07;

      */


     // lossProfit econ. account code lookup...
     controlLossProfitECode.setLookupController(lossProfitEController);
     controlLossProfitECode.setControllerMethodName("getAccounts");
     lossProfitEController.setLookupDataLocator(lossProfitEDataLocator);
     lossProfitEDataLocator.setGridMethodName("loadAccounts");
     lossProfitEDataLocator.setValidationMethodName("validateAccountCode");
     lossProfitEController.setFrameTitle("accounts");
     lossProfitEController.setLookupValueObjectClassName("org.jallinone.accounting.accounts.java.AccountVO");
     lossProfitEController.addLookup2ParentLink("accountCodeACC02", "lossProfitEAccountCodeAcc02DOC21");
     lossProfitEController.addLookup2ParentLink("descriptionSYS10","lossProfitEAccountDescrDOC21");
     lossProfitEController.setFilterableColumn("accountCodeACC02",true);
     lossProfitEController.setFilterableColumn("descriptionSYS10",true);
     lossProfitEController.setFramePreferedSize(new Dimension(400,400));
     lossProfitEController.setAllColumnVisible(false);
     lossProfitEController.setVisibleColumn("accountCodeACC02", true);
     lossProfitEController.setVisibleColumn("descriptionSYS10", true);
     lossProfitEController.setPreferredWidthColumn("accountCodeACC02",100);
     lossProfitEController.setPreferredWidthColumn("descriptionSYS10",290);
     lossProfitEController.addLookupListener(new LookupListener() {

       public void codeValidated(boolean validated) {}

       public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) { }

       public void beforeLookupAction(ValueObject parentVO) {
         lossProfitEDataLocator.getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompanies.getValue());
         lossProfitEDataLocator.getLookupValidationParameters().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompanies.getValue());
       }

       public void forceValidate() {}

     });


     // lossProfit patrim. account code lookup...
     controlLossProfitPCode.setLookupController(lossProfitPController);
     controlLossProfitPCode.setControllerMethodName("getAccounts");
     lossProfitPController.setLookupDataLocator(lossProfitPDataLocator);
     lossProfitPDataLocator.setGridMethodName("loadAccounts");
     lossProfitPDataLocator.setValidationMethodName("validateAccountCode");
     lossProfitPController.setFrameTitle("accounts");
     lossProfitPController.setLookupValueObjectClassName("org.jallinone.accounting.accounts.java.AccountVO");
     lossProfitPController.addLookup2ParentLink("accountCodeACC02", "lossProfitPAccountCodeAcc02DOC21");
     lossProfitPController.addLookup2ParentLink("descriptionSYS10","lossProfitPAccountDescrDOC21");
     lossProfitPController.setFilterableColumn("accountCodeACC02",true);
     lossProfitPController.setFilterableColumn("descriptionSYS10",true);
     lossProfitPController.setFramePreferedSize(new Dimension(400,400));
     lossProfitPController.setAllColumnVisible(false);
     lossProfitPController.setVisibleColumn("accountCodeACC02", true);
     lossProfitPController.setVisibleColumn("descriptionSYS10", true);
     lossProfitPController.setPreferredWidthColumn("accountCodeACC02",100);
     lossProfitPController.setPreferredWidthColumn("descriptionSYS10",290);
     lossProfitPController.addLookupListener(new LookupListener() {

       public void codeValidated(boolean validated) {}

       public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) { }

       public void beforeLookupAction(ValueObject parentVO) {
         lossProfitPDataLocator.getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompanies.getValue());
         lossProfitPDataLocator.getLookupValidationParameters().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompanies.getValue());
       }

       public void forceValidate() {}

     });


     // closing account code lookup...
     controlClosingCode.setLookupController(closingController);
     controlClosingCode.setControllerMethodName("getAccounts");
     closingController.setLookupDataLocator(closingDataLocator);
     closingDataLocator.setGridMethodName("loadAccounts");
     closingDataLocator.setValidationMethodName("validateAccountCode");
     closingController.setFrameTitle("accounts");
     closingController.setLookupValueObjectClassName("org.jallinone.accounting.accounts.java.AccountVO");
     closingController.addLookup2ParentLink("accountCodeACC02", "closingAccountCodeAcc02DOC21");
     closingController.addLookup2ParentLink("descriptionSYS10","closingAccountDescrDOC21");
     closingController.setFilterableColumn("accountCodeACC02",true);
     closingController.setFilterableColumn("descriptionSYS10",true);
     closingController.setFramePreferedSize(new Dimension(400,400));
     closingController.setAllColumnVisible(false);
     closingController.setVisibleColumn("accountCodeACC02", true);
     closingController.setVisibleColumn("descriptionSYS10", true);
     closingController.setPreferredWidthColumn("accountCodeACC02",100);
     closingController.setPreferredWidthColumn("descriptionSYS10",290);
     closingController.addLookupListener(new LookupListener() {

       public void codeValidated(boolean validated) {}

       public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) { }

       public void beforeLookupAction(ValueObject parentVO) {
         closingDataLocator.getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompanies.getValue());
         closingDataLocator.getLookupValidationParameters().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompanies.getValue());
       }

       public void forceValidate() {}

     });


     // opening account code lookup...
     controlOpeningCode.setLookupController(openingController);
     controlOpeningCode.setControllerMethodName("getAccounts");
     openingController.setLookupDataLocator(openingDataLocator);
     openingDataLocator.setGridMethodName("loadAccounts");
     openingDataLocator.setValidationMethodName("validateAccountCode");
     openingController.setFrameTitle("accounts");
     openingController.setLookupValueObjectClassName("org.jallinone.accounting.accounts.java.AccountVO");
     openingController.addLookup2ParentLink("accountCodeACC02", "openingAccountCodeAcc02DOC21");
     openingController.addLookup2ParentLink("descriptionSYS10","openingAccountDescrDOC21");
     openingController.setFilterableColumn("accountCodeACC02",true);
     openingController.setFilterableColumn("descriptionSYS10",true);
     openingController.setFramePreferedSize(new Dimension(400,400));
     openingController.setAllColumnVisible(false);
     openingController.setVisibleColumn("accountCodeACC02", true);
     openingController.setVisibleColumn("descriptionSYS10", true);
     openingController.setPreferredWidthColumn("accountCodeACC02",100);
     openingController.setPreferredWidthColumn("descriptionSYS10",290);
     openingController.addLookupListener(new LookupListener() {

       public void codeValidated(boolean validated) {}

       public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) { }

       public void beforeLookupAction(ValueObject parentVO) {
         openingDataLocator.getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompanies.getValue());
         openingDataLocator.getLookupValidationParameters().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompanies.getValue());
       }

       public void forceValidate() {}

     });


     // rounding costs account lookup...
     accCDataLocator.setGridMethodName("loadAccounts");
     accCDataLocator.setValidationMethodName("validateAccountCode");

     controlRoundingC.setLookupController(accCController);
     controlRoundingC.setControllerMethodName("getAccounts");
     accCController.setLookupDataLocator(accCDataLocator);
     accCController.setFrameTitle("accounts");
     accCController.setLookupValueObjectClassName("org.jallinone.accounting.accounts.java.AccountVO");
     accCController.addLookup2ParentLink("accountCodeACC02", "roundingCostsAccountCodeAcc02DOC19");
     accCController.addLookup2ParentLink("descriptionSYS10","roundingCostsDescrDOC19");
     accCController.setAllColumnVisible(false);
     accCController.setVisibleColumn("accountCodeACC02", true);
     accCController.setVisibleColumn("descriptionSYS10", true);
     accCController.setFilterableColumn("accountCodeACC02",true);
     accCController.setFilterableColumn("descriptionSYS10",true);
     accCController.setPreferredWidthColumn("descriptionSYS10", 200);
     accCController.setFramePreferedSize(new Dimension(340,400));
     accCController.setSortedColumn("accountCodeACC02","ASC",1);
     accCController.setFilterableColumn("accountCodeACC02",true);
     accCController.setFilterableColumn("descriptionSYS10",true);
     accCController.addLookupListener(new LookupListener() {

        public void codeValidated(boolean validated) {}

        public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) { }

        public void beforeLookupAction(ValueObject parentVO) {
          accCDataLocator.getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompanies.getValue());
          accCDataLocator.getLookupValidationParameters().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompanies.getValue());
        }

        public void forceValidate() {}

      });


     // rounding proceeds account lookup...
     accPDataLocator.setGridMethodName("loadAccounts");
     accPDataLocator.setValidationMethodName("validateAccountCode");

     controlRoundingP.setLookupController(accPController);
     controlRoundingP.setControllerMethodName("getAccounts");
     accPController.setLookupDataLocator(accPDataLocator);
     accPController.setFrameTitle("accounts");
     accPController.setLookupValueObjectClassName("org.jallinone.accounting.accounts.java.AccountVO");
     accPController.addLookup2ParentLink("accountCodeACC02", "roundingProceedsAccountCodeAcc02DOC19");
     accPController.addLookup2ParentLink("descriptionSYS10","roundingProceedsDescrDOC19");
     accPController.setAllColumnVisible(false);
     accPController.setVisibleColumn("accountCodeACC02", true);
     accPController.setVisibleColumn("descriptionSYS10", true);
     accPController.setFilterableColumn("accountCodeACC02",true);
     accPController.setFilterableColumn("descriptionSYS10",true);
     accPController.setPreferredWidthColumn("descriptionSYS10", 200);
     accPController.setFramePreferedSize(new Dimension(340,400));
     accPController.setSortedColumn("accountCodeACC02","ASC",1);
     accPController.setFilterableColumn("accountCodeACC02",true);
     accPController.setFilterableColumn("descriptionSYS10",true);
     accPController.addLookupListener(new LookupListener() {

         public void codeValidated(boolean validated) {}

         public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) { }

View Full Code Here

Examples of org.openswing.swing.lookup.client.LookupListener

      motiveController.setFramePreferedSize(new Dimension(400,400));
      motiveController.setAllColumnVisible(false);
      motiveController.setVisibleColumn("accountingMotiveCodeACC03",true);
      motiveController.setVisibleColumn("descriptionSYS10",true);
      motiveController.setPreferredWidthColumn("descriptionSYS10",290);
      motiveController.addLookupListener(new LookupListener() {

        public void codeValidated(boolean validated) {}

        public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) {
        }

        public void beforeLookupAction(ValueObject parentVO) {
          motiveDataLocator.getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompaniesCombo.getValue());
          motiveDataLocator.getLookupValidationParameters().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompaniesCombo.getValue());
        }

        public void forceValidate() {}

      });


      // account code lookup...
      controlAcode.setLookupController(accountController);
      controlAcode.setControllerMethodName("getAccounts");
      accountController.setForm(detailPanel);
      accountController.setLookupDataLocator(accountDataLocator);
      accountDataLocator.setGridMethodName("loadAccounts");
      accountDataLocator.setValidationMethodName("validateAccountCode");
      accountController.setFrameTitle("accounts");
      accountController.setLookupValueObjectClassName("org.jallinone.accounting.accounts.java.AccountVO");
      accountController.addLookup2ParentLink("accountCodeACC02", "accountCodeACC06");
      accountController.addLookup2ParentLink("descriptionSYS10","accountDescriptionACC06");
      accountController.setFramePreferedSize(new Dimension(400,400));
      accountController.setAllColumnVisible(false);
      accountController.setVisibleColumn("accountCodeACC02",true);
      accountController.setVisibleColumn("descriptionSYS10",true);
      accountController.setPreferredWidthColumn("descriptionSYS10",290);
      accountController.addLookupListener(new LookupListener() {

        public void codeValidated(boolean validated) {}

        public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) {
          AccountVO accountVO = (AccountVO)accountController.getLookupVO();
          JournalRowVO vo = (JournalRowVO)detailPanel.getVOModel().getValueObject();
          vo.setAccountCodeAcc02ACC06(accountVO.getAccountCodeACC02());
          vo.setAccountCodeACC06(accountVO.getAccountCodeACC02());
          controlAcode.setValue(accountVO.getAccountCodeACC02());
          if (accountVO.getAccountTypeACC02()!=null) {
            if (accountVO.getAccountTypeACC02().equals(ApplicationConsts.DEBIT_ACCOUNT))
              controlDebit.requestFocus();
            else
              controlCredit.requestFocus();
          }
        }

        public void beforeLookupAction(ValueObject parentVO) {
          accountDataLocator.getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompaniesCombo.getValue());
          accountDataLocator.getLookupValidationParameters().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompaniesCombo.getValue());
        }

        public void forceValidate() {}

      });


      // customer lookup...
      customerDataLocator.setGridMethodName("loadCustomers");
      customerDataLocator.setValidationMethodName("validateCustomerCode");
      controlCcode.setLookupController(customerController);
      controlCcode.setControllerMethodName("getCustomersList");
      customerController.setForm(detailPanel);
      customerController.setLookupDataLocator(customerDataLocator);
      customerController.setFrameTitle("customers");
      customerController.setLookupValueObjectClassName("org.jallinone.sales.customers.java.GridCustomerVO");
      customerController.addLookup2ParentLink("customerCodeSAL07","accountCodeACC06");
      customerController.addLookup2ParentLink("name_1REG04", "accountDescriptionACC06");
      customerController.setAllColumnVisible(false);
      customerController.setVisibleColumn("companyCodeSys01REG04", true);
      customerController.setVisibleColumn("customerCodeSAL07", true);
      customerController.setVisibleColumn("name_1REG04", true);
      customerController.setVisibleColumn("name_2REG04", true);
      customerController.setVisibleColumn("cityREG04", true);
      customerController.setVisibleColumn("provinceREG04", true);
      customerController.setVisibleColumn("countryREG04", true);
      customerController.setVisibleColumn("taxCodeREG04", true);
      customerController.setHeaderColumnName("cityREG04", "city");
      customerController.setHeaderColumnName("provinceREG04", "prov");
      customerController.setHeaderColumnName("countryREG04", "country");
      customerController.setHeaderColumnName("taxCodeREG04", "taxCode");
      customerController.setPreferredWidthColumn("name_1REG04", 200);
      customerController.setPreferredWidthColumn("name_2REG04", 150);
      customerController.setFramePreferedSize(new Dimension(750,500));
      customerDataLocator.getLookupFrameParams().put(ApplicationConsts.FILTER_COMPANY_FOR_INSERT,"ACC05_NEW_ITEM_NOVAT");
      customerDataLocator.getLookupValidationParameters().put(ApplicationConsts.FILTER_COMPANY_FOR_INSERT,"ACC05_NEW_ITEM_NOVAT");
      customerController.addLookupListener(new LookupListener() {

        public void codeValidated(boolean validated) {}

        public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) {
          GridCustomerVO custVO = (GridCustomerVO)customerController.getLookupVO();
          JournalRowVO vo = (JournalRowVO)detailPanel.getVOModel().getValueObject();
          vo.setAccountCodeAcc02ACC06(custVO.getCreditAccountCodeAcc02SAL07());
          vo.setAccountCodeACC06(custVO.getCustomerCodeSAL07());
          controlCcode.setValue(custVO.getCustomerCodeSAL07());
          controlDebit.requestFocus();
        }

        public void beforeLookupAction(ValueObject parentVO) {
          customerDataLocator.getLookupFrameParams().put(ApplicationConsts.SUBJECT_TYPE,ApplicationConsts.SUBJECT_ORGANIZATION_CUSTOMER);
          customerDataLocator.getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompaniesCombo.getValue());
          customerDataLocator.getLookupValidationParameters().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompaniesCombo.getValue());
          customerController.setHeaderColumnName("name_1REG04", "corporateName1");
          customerController.setHeaderColumnName("name_2REG04", "corporateName2");
        }

        public void forceValidate() {}

      });


      // supplier lookup...
      supplierDataLocator.setGridMethodName("loadSuppliers");
      supplierDataLocator.setValidationMethodName("validateSupplierCode");
      controlScode.setLookupController(supplierController);
      controlScode.setControllerMethodName("getSuppliersList");
      supplierController.setForm(detailPanel);
      supplierController.setLookupDataLocator(supplierDataLocator);
      supplierController.setFrameTitle("suppliers");
      supplierController.setLookupValueObjectClassName("org.jallinone.purchases.suppliers.java.GridSupplierVO");
      supplierController.addLookup2ParentLink("supplierCodePUR01","accountCodeACC06");
      supplierController.addLookup2ParentLink("name_1REG04", "accountDescriptionACC06");
      supplierController.setAllColumnVisible(false);
      supplierController.setVisibleColumn("companyCodeSys01REG04", true);
      supplierController.setVisibleColumn("supplierCodePUR01", true);
      supplierController.setVisibleColumn("name_1REG04", true);
      supplierController.setVisibleColumn("name_2REG04", true);
      supplierController.setVisibleColumn("cityREG04", true);
      supplierController.setVisibleColumn("provinceREG04", true);
      supplierController.setVisibleColumn("countryREG04", true);
      supplierController.setVisibleColumn("taxCodeREG04", true);
      supplierController.setHeaderColumnName("name_1REG04", "corporateName1");
      supplierController.setHeaderColumnName("cityREG04", "city");
      supplierController.setHeaderColumnName("provinceREG04", "prov");
      supplierController.setHeaderColumnName("countryREG04", "country");
      supplierController.setHeaderColumnName("taxCodeREG04", "taxCode");
      supplierController.setPreferredWidthColumn("name_1REG04", 200);
      supplierController.setPreferredWidthColumn("name_2REG04", 150);
      supplierController.setFramePreferedSize(new Dimension(750,500));
      supplierDataLocator.getLookupFrameParams().put(ApplicationConsts.FILTER_COMPANY_FOR_INSERT,"ACC05_NEW_ITEM_NOVAT");
      supplierDataLocator.getLookupValidationParameters().put(ApplicationConsts.FILTER_COMPANY_FOR_INSERT,"ACC05_NEW_ITEM_NOVAT");
      supplierController.addLookupListener(new LookupListener() {

        public void codeValidated(boolean validated) {}

        public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) {
          GridSupplierVO supplierVO = (GridSupplierVO)supplierController.getLookupVO();
View Full Code Here

Examples of org.openswing.swing.lookup.client.LookupListener

      empController.setVisibleColumn("name_1REG04", true);
      empController.setVisibleColumn("name_2REG04", true);
      empController.setPreferredWidthColumn("name_1REG04",150);
      empController.setPreferredWidthColumn("name_2REG04",150);
      empController.setFramePreferedSize(new Dimension(430,400));
      empController.addLookupListener(new LookupListener() {

        /**
         * Method called when lookup code is validated and when code is selected on lookup grid frame.
         * @param validated <code>true</code> if lookup code is correclty validated, <code>false</code> otherwise
         */
 
View Full Code Here

Examples of org.openswing.swing.lookup.client.LookupListener

    peopleController.setPreferredWidthColumn("addressREG04", 200);
    peopleController.setPreferredWidthColumn("provinceREG04", 50);
    peopleController.setPreferredWidthColumn("countryREG04", 70);
    peopleController.setPreferredWidthColumn("zipREG04", 50);
    peopleController.setFramePreferedSize(new Dimension(740,500));
    peopleController.addLookupListener(new LookupListener() {

      public void codeValidated(boolean validated) {}

      public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) {
        PeopleVO vo = (PeopleVO)peopleController.getLookupVO();
        controlName_1.setValue(vo.getName_1REG04());
        controlName_2.setValue(vo.getName_2REG04());
        filterPeopleButton.setValue(vo.getProgressiveREG04());
      }

      public void beforeLookupAction(ValueObject parentVO) {
        peopleDataLocator.getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,empVO.getCompanyCodeSys01REG04());
        peopleDataLocator.getLookupFrameParams().put(ApplicationConsts.SUBJECT_TYPE,ApplicationConsts.SUBJECT_PEOPLE);
      }

      public void forceValidate() {}

    });


    // organization lookup...
    orgDataLocator.setGridMethodName("loadSubjectPerName");
    orgDataLocator.setValidationMethodName("");
    filterOrgButton.setLookupController(orgController);
    orgController.setLookupDataLocator(orgDataLocator);
    orgController.setFrameTitle("organizations");
    orgController.setLookupValueObjectClassName("org.jallinone.subjects.java.OrganizationVO");
    orgController.addLookup2ParentLink("progressiveREG04","progressiveReg04SubjectSCH06");
    orgController.addLookup2ParentLink("name_1REG04","subjectName_1SCH06");
    orgController.addLookup2ParentLink("name_2REG04","subjectName_2SCH06");
    orgController.setAllColumnVisible(false);
    orgController.setVisibleColumn("name_1REG04", true);
    orgController.setVisibleColumn("addressREG04", true);
    orgController.setVisibleColumn("cityREG04", true);
    orgController.setVisibleColumn("provinceREG04", true);
    orgController.setVisibleColumn("countryREG04", true);
    orgController.setVisibleColumn("zipREG04", true);
    orgController.setHeaderColumnName("addressREG04", "address");
    orgController.setHeaderColumnName("cityREG04", "city");
    orgController.setHeaderColumnName("provinceREG04", "prov");
    orgController.setHeaderColumnName("countryREG04", "country");
    orgController.setHeaderColumnName("zipREG04", "zip");
    orgController.setPreferredWidthColumn("name_1REG04", 150);
    orgController.setPreferredWidthColumn("addressREG04", 200);
    orgController.setPreferredWidthColumn("provinceREG04", 50);
    orgController.setPreferredWidthColumn("zipREG04", 50);
    orgController.setFramePreferedSize(new Dimension(740,500));
    orgController.addLookupListener(new LookupListener() {

      public void codeValidated(boolean validated) {}

      public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) {
        OrganizationVO vo = (OrganizationVO)orgController.getLookupVO();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.