Пример #1
0
  public static final SimpleDataObjectPanel createPanel(Object obj) {
    if (obj instanceof Queuegeneral) {
      QueuegeneralDataPanelImpl p =
          newQueuegeneralDataPanel(); // getInstance().displayString((QueuegeneralMap)obj);
      p.setDataObject(obj);
      return p;
    }
    if (obj instanceof Queuesection) {
      QueuesectionDataPanelImpl p =
          newQueuesectionDataPanel(); // getInstance().displayString((QueuesectionMap)obj);
      p.setDataObject(obj);
      return p;
    }
    if (obj instanceof Queuemember) {
      QueuememberDataPanelImpl p =
          newQueuememberDataPanel(); // getInstance().displayString((QueuememberMap)obj);
      p.setDataObject(obj);
      return p;
    }
    if (obj instanceof MapTyper) {
      MapTyper mt = (MapTyper) obj;
      SimpleMapDataPanel p = new SimpleMapDataPanel();
      AbstractSimpleTableModel tableModel = createTableModel(mt);
      p.setModel(tableModel);
      p.setDataObject(mt);
      return p;
    }

    return com.useit.app.framework.gui.guiHelper.GuiClassFactory.createSimpleDataObjectPanel(obj);
  }
Пример #2
0
  public static final SimpleDataObjectPanel createPanel(Object obj) {
    if (obj instanceof ToneDefinitions) {
      ToneDefinitionsDataPanelImpl p =
          newToneDefinitionsDataPanel(); // getInstance().displayString((ToneDefinitionsMap)obj);
      p.setDataObject(obj);
      return p;
    }
    if (obj instanceof Indicationsconf) {
      IndicationsconfDataPanelImpl p =
          newIndicationsconfDataPanel(); // getInstance().displayString((IndicationsconfMap)obj);
      p.setDataObject(obj);
      return p;
    }
    if (obj instanceof CustomTone) {
      CustomToneDataPanelImpl p =
          newCustomToneDataPanel(); // getInstance().displayString((CustomToneMap)obj);
      p.setDataObject(obj);
      return p;
    }
    if (obj instanceof MapTyper) {
      MapTyper mt = (MapTyper) obj;
      SimpleMapDataPanel p = new SimpleMapDataPanel();
      AbstractSimpleTableModel tableModel = createTableModel(mt);
      p.setModel(tableModel);
      p.setDataObject(mt);
      return p;
    }

    return com.useit.app.framework.gui.guiHelper.GuiClassFactory.createSimpleDataObjectPanel(obj);
  }