Package moise.tools

Class OSTreeModel


  • public class OSTreeModel
    extends java.lang.Object
    Tree model for the OS tree
    Author:
    jomi
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) javax.swing.JTree jTree  
      (package private) javax.swing.tree.DefaultTreeModel treeModel  
    • Constructor Summary

      Constructors 
      Constructor Description
      OSTreeModel()
      Creates new OSTreeModel
      OSTreeModel​(javax.swing.JTree j)  
    • Method Summary

      Modifier and Type Method Description
      private void addGoal​(Goal g, javax.swing.tree.DefaultMutableTreeNode place)  
      private void addGr​(Group gr, javax.swing.tree.DefaultMutableTreeNode place)  
      private void addRoles​(OS os, javax.swing.tree.DefaultMutableTreeNode place)  
      private void addSch​(Scheme sch, javax.swing.tree.DefaultMutableTreeNode place)  
      javax.swing.tree.DefaultTreeModel getModel()  
      void setJTree​(javax.swing.JTree j)  
      void setOS​(OS os)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • treeModel

        javax.swing.tree.DefaultTreeModel treeModel
      • jTree

        javax.swing.JTree jTree
    • Constructor Detail

      • OSTreeModel

        public OSTreeModel()
        Creates new OSTreeModel
      • OSTreeModel

        public OSTreeModel​(javax.swing.JTree j)
    • Method Detail

      • getModel

        public javax.swing.tree.DefaultTreeModel getModel()
      • setOS

        public void setOS​(OS os)
      • setJTree

        public void setJTree​(javax.swing.JTree j)
      • addRoles

        private void addRoles​(OS os,
                              javax.swing.tree.DefaultMutableTreeNode place)
      • addGr

        private void addGr​(Group gr,
                           javax.swing.tree.DefaultMutableTreeNode place)
      • addSch

        private void addSch​(Scheme sch,
                            javax.swing.tree.DefaultMutableTreeNode place)
      • addGoal

        private void addGoal​(Goal g,
                             javax.swing.tree.DefaultMutableTreeNode place)