/** * 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; }
/** * 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; }