예제 #1
0
 /**
  * erzeugt ein treepanel
  *
  * @param obj
  * @return
  */
 public static AbstractSimpleTreePanel createTreePanel(Object obj) {
   if (obj instanceof Queuegeneral) {
     AbstractSimpleTreePanel p = new SimplequeueconfTreePanel();
     p.initTree(obj);
     return p;
   }
   if (obj instanceof Queuesection) {
     AbstractSimpleTreePanel p = new SimplequeueconfTreePanel();
     p.initTree(obj);
     return p;
   }
   if (obj instanceof Queuemember) {
     AbstractSimpleTreePanel p = new SimplequeueconfTreePanel();
     p.initTree(obj);
     return p;
   }
   return null;
 }
예제 #2
0
 /**
  * erzeugt ein treepanel
  *
  * @param obj
  * @return
  */
 public static AbstractSimpleTreePanel createTreePanel(Object obj) {
   if (obj instanceof ToneDefinitions) {
     AbstractSimpleTreePanel p = new SimpleindicationsconfTreePanel();
     p.initTree(obj);
     return p;
   }
   if (obj instanceof Indicationsconf) {
     AbstractSimpleTreePanel p = new SimpleindicationsconfTreePanel();
     p.initTree(obj);
     return p;
   }
   if (obj instanceof CustomTone) {
     AbstractSimpleTreePanel p = new SimpleindicationsconfTreePanel();
     p.initTree(obj);
     return p;
   }
   return null;
 }