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); }
public PPanel_Progressbars() { this(Application.getInstance().getRender().getObject(Graph.PAN_BATTLE_CREATE)); }