Package org.openswing.swing.lookup.client

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) {
          WarehouseVO vo = (WarehouseVO)controlWarehouseCode.getLookupController().getLookupVO();
View Full Code Here


      posController.setLookupValueObjectClassName("org.jallinone.hierarchies.java.CompanyHierarchyLevelVO");
      posController.addLookup2ParentLink("progressiveHIE01", "progressiveHie01DOC23");
      posController.addLookup2ParentLink("descriptionSYS10","locationDescriptionSYS10");
      posController.setFramePreferedSize(new Dimension(400,400));
      posController.addLookupListener(new LookupListener() {

        public void codeValidated(boolean validated) {}

        public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) {
          CompanyHierarchyLevelVO lookupVO = (CompanyHierarchyLevelVO)posController.getLookupVO();
          if (lookupVO!=null && "".equals(lookupVO.getDescriptionSYS10()))
            ((ProdOrderProductVO)parentVO).setLocationDescriptionSYS10(" ");
        }

        public void beforeLookupAction(ValueObject parentVO) {
          DetailProdOrderVO vo = (DetailProdOrderVO)headerFormPanel.getVOModel().getValueObject();
          treeLevelPosDataLocator.getTreeNodeParams().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01DOC22());
          treeLevelPosDataLocator.getTreeNodeParams().put(ApplicationConsts.PROGRESSIVE_HIE02,vo.getProgressiveHie02WAR01());
        }

        public void forceValidate() {}

      });


      // warehouse lookup...
      wareDataLocator.setGridMethodName("loadWarehouses");
      wareDataLocator.setValidationMethodName("validateWarehouseCode");

      controlWarehouseCode.setLookupController(wareController);
      controlWarehouseCode.setControllerMethodName("getWarehousesList");
      wareController.setLookupDataLocator(wareDataLocator);
      wareController.setFrameTitle("warehouses");
      wareController.setLookupValueObjectClassName("org.jallinone.warehouse.java.WarehouseVO");
      wareController.addLookup2ParentLink("companyCodeSys01WAR01", "companyCodeSys01DOC22");
      wareController.addLookup2ParentLink("warehouseCodeWAR01", "warehouseCodeWar01DOC22");
      wareController.addLookup2ParentLink("descriptionWAR01","descriptionWar01DOC22");
      wareController.setAllColumnVisible(false);
      wareController.setVisibleColumn("warehouseCodeWAR01", true);
      wareController.setVisibleColumn("descriptionWAR01", true);
      wareController.setVisibleColumn("addressWAR01", true);
      wareController.setVisibleColumn("cityWAR01", true);
      wareController.setVisibleColumn("zipWAR01", true);
      wareController.setVisibleColumn("provinceWAR01", true);
      wareController.setVisibleColumn("countryWAR01", true);
      wareController.setPreferredWidthColumn("descriptionWAR01",200);
      wareController.setFramePreferedSize(new Dimension(750,500));


      // destination warehouse lookup...
      ware2DataLocator.setGridMethodName("loadWarehouses");
      ware2DataLocator.setValidationMethodName("validateWarehouseCode");

      controlWarehouse2Code.setLookupController(ware2Controller);
      controlWarehouse2Code.setControllerMethodName("getWarehousesList");
      ware2Controller.setLookupDataLocator(ware2DataLocator);
      ware2Controller.setFrameTitle("warehouses");
      ware2Controller.setLookupValueObjectClassName("org.jallinone.warehouse.java.WarehouseVO");
      ware2Controller.addLookup2ParentLink("warehouseCodeWAR01", "warehouseCode2War01DOC22");
      ware2Controller.addLookup2ParentLink("descriptionWAR01","description2War01DOC22");
      ware2Controller.addLookup2ParentLink("progressiveHie02WAR01","progressiveHie02WAR01");
      ware2Controller.setAllColumnVisible(false);
      ware2Controller.setVisibleColumn("warehouseCodeWAR01", true);
      ware2Controller.setVisibleColumn("descriptionWAR01", true);
      ware2Controller.setVisibleColumn("addressWAR01", true);
      ware2Controller.setVisibleColumn("cityWAR01", true);
      ware2Controller.setVisibleColumn("zipWAR01", true);
      ware2Controller.setVisibleColumn("provinceWAR01", true);
      ware2Controller.setVisibleColumn("countryWAR01", true);
      ware2Controller.setPreferredWidthColumn("descriptionWAR01",200);
      ware2Controller.setFramePreferedSize(new Dimension(750,500));
      ware2Controller.addLookupListener(new LookupListener() {

        public void codeValidated(boolean validated) {}

        public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) {
          WarehouseVO lookupVO = (WarehouseVO)ware2Controller.getLookupVO();
          treeLevelPosDataLocator.getTreeNodeParams().put(ApplicationConsts.PROGRESSIVE_HIE02,lookupVO.getProgressiveHie02WAR01());

        }

        public void beforeLookupAction(ValueObject parentVO) {
          DetailProdOrderVO vo = (DetailProdOrderVO)headerFormPanel.getVOModel().getValueObject();
          ware2DataLocator.getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01DOC22());
          ware2DataLocator.getLookupValidationParameters().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01DOC22());
        }

        public void forceValidate() {}

      });


      // item code lookup...
      itemDataLocator.setGridMethodName("loadItems");
      itemDataLocator.setValidationMethodName("validateItemCode");
      itemDataLocator.getLookupFrameParams().put(ApplicationConsts.PRODUCTS_ONLY,Boolean.TRUE);
      itemDataLocator.getLookupValidationParameters().put(ApplicationConsts.PRODUCTS_ONLY,Boolean.TRUE);

      colItemCode.setLookupController(itemController);
      colItemCode.setControllerMethodName("getItemsList");
      itemController.setLookupDataLocator(itemDataLocator);
      itemController.setFrameTitle("products");

      itemController.setCodeSelectionWindow(itemController.TREE_GRID_FRAME);
      treeLevelDataLocator.setServerMethodName("loadCompanyHierarchy");
      itemDataLocator.setTreeDataLocator(treeLevelDataLocator);
      itemDataLocator.setNodeNameAttribute("descriptionSYS10");

      itemController.setLookupValueObjectClassName("org.jallinone.items.java.GridItemVO");
      itemController.addLookup2ParentLink("itemCodeITM01", "itemCodeItm01DOC23");
      itemController.addLookup2ParentLink("descriptionSYS10", "descriptionSYS10");

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

        public void codeValidated(boolean validated) {}

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

      itemController.setColumnDynamicSettings("valuePUR04",this);
      itemController.setPreferredWidthColumn("descriptionSYS10", 200);
      itemController.setPreferredWidthColumn("minPurchaseQtyPUR02", 60);
      itemController.setPreferredWidthColumn("umCodeReg02PUR02", 50);
      itemController.setFramePreferedSize(new Dimension(750,500));
      itemController.addLookupListener(new LookupListener() {

        public void codeValidated(boolean validated) {}

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

//      purchaseSupplierHeadPanel1.getSupplierDataLocator().getLookupFrameParams().put(ApplicationConsts.SUBJECT_TYPE,ApplicationConsts.SUBJECT_PEOPLE_CUSTOMER);
//      purchaseSupplierHeadPanel1.getSupplierDataLocator().getLookupValidationParameters().put(ApplicationConsts.SUBJECT_TYPE,ApplicationConsts.SUBJECT_PEOPLE_CUSTOMER);


      purchaseIdHeadPanel1.getControlDocRifLookup().getLookupController().addLookupListener(new LookupListener() {

        public void codeValidated(boolean validated) {}

        public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) {
          GridPurchaseDocVO vo = (GridPurchaseDocVO)purchaseIdHeadPanel1.getControlDocRifLookup().getLookupController().getLookupVO();
View Full Code Here

//      purchaseSupplierHeadPanel1.getSupplierDataLocator().getLookupFrameParams().put(ApplicationConsts.SUBJECT_TYPE,ApplicationConsts.SUBJECT_PEOPLE_CUSTOMER);
//      purchaseSupplierHeadPanel1.getSupplierDataLocator().getLookupValidationParameters().put(ApplicationConsts.SUBJECT_TYPE,ApplicationConsts.SUBJECT_PEOPLE_CUSTOMER);


      purchaseIdHeadPanel1.getControlDocRifLookup().getLookupController().addLookupListener(new LookupListener() {

        public void codeValidated(boolean validated) {}

        public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) {
          GridPurchaseDocVO vo = (GridPurchaseDocVO)purchaseIdHeadPanel1.getControlDocRifLookup().getLookupController().getLookupVO();
View Full Code Here

TOP

Related Classes of org.openswing.swing.lookup.client.LookupListener

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.