/** * Callback method invoked when the user has clicked on the insert button * * @param valueObject empty value object just created: the user can manage it to fill some * attribute values */ public void createValueObject(ValueObject valueObject) throws Exception { LevelPropertyVO vo = (LevelPropertyVO) valueObject; DefaultMutableTreeNode node = frame.getHierarTreePanel().getSelectedNode(); HierarchyLevelVO levelVO = (HierarchyLevelVO) node.getUserObject(); vo.setProgressiveHie02DOC21(frame.getHierarTreePanel().getProgressiveHIE02()); vo.setProgressiveHie01DOC21(levelVO.getProgressiveHIE01()); }
/** * Callback method invoked when the user has clicked on the insert button * * @param valueObject empty value object just created: the user can manage it to fill some * attribute values */ public void createValueObject(ValueObject valueObject) throws Exception { LevelPropertyVO vo = (LevelPropertyVO) valueObject; DefaultMutableTreeNode node = frame.getHierarTreePanel().getSelectedNode(); CompanyHierarchyLevelVO levelVO = (CompanyHierarchyLevelVO) node.getUserObject(); DocumentTypeVO docTypeVO = (DocumentTypeVO) frame.getGrid().getVOListTableModel().getObjectForRow(frame.getGrid().getSelectedRow()); vo.setProgressiveHie02DOC21(frame.getHierarTreePanel().getProgressiveHIE02()); vo.setProgressiveHie01DOC21(levelVO.getProgressiveHIE01()); vo.setCompanyCodeSys01DOC21(docTypeVO.getCompanyCodeSys01DOC16()); }