Package org.jallinone.hierarchies.java

Examples of org.jallinone.hierarchies.java.HierarchyLevelVO


   * Callback method invoked when the user has clicked the left mouse button.
   * @param node selected node
   */
  public void leftClick(DefaultMutableTreeNode node) {
    if (rolesGridControl.getSelectedRow()!=-1) {
      HierarchyLevelVO f = (HierarchyLevelVO)node.getUserObject();
      RoleVO vo = (RoleVO)rolesGridControl.getVOListTableModel().getObjectForRow(rolesGridControl.getSelectedRow());
      functionsGridControl.getOtherGridParams().put(ApplicationConsts.PROGRESSIVE_SYS04,vo.getProgressiveSYS04());
      functionsGridControl.getOtherGridParams().put(ApplicationConsts.PROGRESSIVE_HIE03,f.getProgressiveHIE03());
      functionsGridControl.reloadData();
    }
  }
View Full Code Here


        Hashtable currentLevelNodes = new Hashtable();
        Hashtable newLevelNodes = new Hashtable();
        int currentLevel = -1;
        DefaultMutableTreeNode currentNode = null;
        DefaultMutableTreeNode parentNode = null;
        HierarchyLevelVO vo = null;
        while(rset.next()) {
          if (currentLevel!=rset.getInt(3)) {
            // next level...
            currentLevel = rset.getInt(3);
            currentLevelNodes = newLevelNodes;
            newLevelNodes = new Hashtable();
          }

          if (currentLevel==0) {
            // prepare a tree model with the root node...
            vo = new HierarchyLevelVO();
            vo.setDescriptionSYS10(rset.getString(4));
            vo.setEnabledHIE03("Y");
            vo.setLevelHIE03(rset.getBigDecimal(3));
            vo.setProgressiveHIE03(rset.getBigDecimal(1));
            vo.setProgressiveHie03HIE03(rset.getBigDecimal(2));
            vo.setProgressiveHie04HIE03(new BigDecimal(2));
            currentNode = new OpenSwingTreeNode(vo);
            model = new DefaultTreeModel(currentNode);
          }
          else {
            vo = new HierarchyLevelVO();
            vo.setDescriptionSYS10(rset.getString(4));
            vo.setEnabledHIE03("Y");
            vo.setLevelHIE03(rset.getBigDecimal(3));
            vo.setProgressiveHIE03(rset.getBigDecimal(1));
            vo.setProgressiveHie03HIE03(rset.getBigDecimal(2));
            vo.setProgressiveHie04HIE03(new BigDecimal(2));
            currentNode = new OpenSwingTreeNode(vo);

            parentNode = (DefaultMutableTreeNode)currentLevelNodes.get(new Integer(rset.getInt(2)));
            parentNode.add(currentNode);
          }
View Full Code Here

        Hashtable currentLevelNodes = new Hashtable();
        Hashtable newLevelNodes = new Hashtable();
        int currentLevel = -1;
        DefaultMutableTreeNode currentNode = null;
        DefaultMutableTreeNode parentNode = null;
        HierarchyLevelVO vo = null;
        while(rset.next()) {
          if (currentLevel!=rset.getInt(3)) {
            // next level...
            currentLevel = rset.getInt(3);
            currentLevelNodes = newLevelNodes;
            newLevelNodes = new Hashtable();
          }

          if (currentLevel==0) {
            // prepare a tree model with the root node...
            vo = new HierarchyLevelVO();
            vo.setEnabledHIE03("Y");
            vo.setLevelHIE03(rset.getBigDecimal(3));
            vo.setProgressiveHIE03(rset.getBigDecimal(1));
            vo.setProgressiveHie03HIE03(rset.getBigDecimal(2));
            vo.setProgressiveHie04HIE03(progressiveHIE04);
            vo.setDescriptionSYS10(rset.getString(4));
            vo.setProgressiveHie03HIE04(rset.getBigDecimal(5));
            currentNode = new OpenSwingTreeNode(vo);
            model = new DefaultTreeModel(currentNode);
          }
          else {
            vo = new HierarchyLevelVO();
            vo.setEnabledHIE03("Y");
            vo.setLevelHIE03(rset.getBigDecimal(3));
            vo.setProgressiveHIE03(rset.getBigDecimal(1));
            vo.setProgressiveHie03HIE03(rset.getBigDecimal(2));
            vo.setProgressiveHie04HIE03(progressiveHIE04);
            vo.setDescriptionSYS10(rset.getString(4));
            vo.setProgressiveHie03HIE04(rset.getBigDecimal(5));
            currentNode = new OpenSwingTreeNode(vo);

            parentNode = (DefaultMutableTreeNode)currentLevelNodes.get(new Integer(rset.getInt(2)));
            parentNode.add(currentNode);
          }
View Full Code Here

TOP

Related Classes of org.jallinone.hierarchies.java.HierarchyLevelVO

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.