public PPanel_Progressbars(PObject prototype) {
    super();
    setAnchor(Anchors.CENTER_ANCHOR);
    сontentPanel = new PContentPanelImpl(prototype);
    setElement(сontentPanel);

    buttonClose.setParent(this);

    // ----- Элементы формы
    // -------------------------------------------------------------------------------------------------

    PSimpleLabel label1 = new PSimpleLabel();
    label1.setText("P SIMPLE INDICATOR");
    label1.setFont(PFontCollection.getFontLabel());
    addChild(label1, 20, 40);

    PObject prototypeIndicator1 = Application.getInstance().getRender().getObject(Graph.OBJ_IND_1);
    PObject prototypeIndicator2 =
        Application.getInstance().getRender().getObject(Graph.OBJ_IND_CHARACTER);

    simpleIndicator1 = new PSimpleIndicator(prototypeIndicator1);
    addChild(simpleIndicator1, 200, 40);

    simpleIndicator2 = new PSimpleIndicator(prototypeIndicator2);
    addChild(simpleIndicator2, 200, 70);

    //        hintProgressIndicator = new PHintProgressIndicator(prototypeIndicator, ...);
    //        addChild(simpleIndicator, 200, 40);

    TimerManager.setPeriodicTimer(TimerIdMap.AWTDEMO_PROGRESSBARS_TICK, 500, this);
  }
 @Override
 protected void createSlotElementByIndex(IndexObject index, PObject parentPrototype) {
   switch (index.getSlot()) {
     case 13:
       // Кнопка закрытия окна
       buttonClose = new PEntitledClosePanelButton((PObject) index.getPrototype());
       addActiveChild(buttonClose, index);
       break;
     case 109:
       // Заголовок окна
       PSimpleLabel caption = new PSimpleLabel(index);
       caption.setText("PROGRESS BARS");
       caption.setFont(PFontCollection.getFontFormTitle());
       addPassiveChild(caption, index);
       break;
   }
 }