public void buildPriLvlPnls() {

    for (int i = 0; i < 10; i++) {

      final SwitchButton priLvlBtn = new SwitchButton(String.valueOf(i));
      priLvlBtn.setEnableStyle("priLvl-btn-enable");
      priLvlBtn.setDisableStyle("priLvl-btn-disable");

      priLvlBtn.enable();

      priLvlBtn.addClickHandler(
          new ClickHandler() {

            @Override
            public void onClick(ClickEvent event) {
              if (checkPriLvlSlctd()) {
                getIndxOfSlctdWdgt();
              }

              priLvlBtn.disable();
              selectedPriLvl = priLvlBtn.getText();
            }
          });

      priLvlCntnrWdgt.add(priLvlBtn);
    }
  }
  public TransferElementPanel() {

    mainPnl = new FlowPanel();
    nodeList = new ArrayList<String>();
    container = new FlowPanel();
    container.setStyleName("trnsfrElmt-containerPnl");

    closeBtn = new Button();
    closeBtn.setStyleName("endpt-list-pnl-close-btn");

    HTMLPanel hdr = new HTMLPanel("Transfer Element");
    hdr.setStyleName("trnsfrElmnt-list-hdr");
    hdr.add(closeBtn);

    trnsfrElmntOkBtn = new SwitchButton("OK");
    trnsfrElmntOkBtn.setStyleName("priLvl-btn");
    FlowPanel btnPnl = new FlowPanel();
    btnPnl.setStyleName("trnsfrElem-btnPnl");
    btnPnl.add(trnsfrElmntOkBtn);

    nodeContainer = new FlowPanel();
    nodeContainer.setStyleName("node-wdgt-cntr");
    container.add(hdr);
    container.add(nodeContainer);
    container.add(btnPnl);

    mainPnl.setStyleName("endpt-list-pnl");
    mainPnl.add(container);
    // mainPnl.add(btnPnl);

    hide();

    initWidget(mainPnl);
  }
  public ChangePriorityLvlPanel() {

    closeBtn = new Button();
    closeBtn.setStyleName("endpt-list-pnl-close-btn");

    HTMLPanel hdr = new HTMLPanel("Change Priority Level");
    hdr.setStyleName("endpt-list-hdr");
    hdr.add(closeBtn);

    container = new FlowPanel();

    container.add(hdr);

    priLvlCntnrWdgt = new FlowPanel();
    priLvlCntnrWdgt.setStyleName("priLvl-wdgt-cntr");

    buildPriLvlPnls();

    container.add(priLvlCntnrWdgt);

    priLvlBtnCntr = new FlowPanel();
    priLvlBtnCntr.setStyleName("priLvl-btn-pnl");

    prilvlBtn = new SwitchButton("OK");
    prilvlBtn.setStyleName("priLvl-btn");

    priLvlBtnCntr.add(prilvlBtn);

    container.add(priLvlBtnCntr);

    mainPnl = new FlowPanel();

    mainPnl.setStyleName("endpt-list-pnl");
    mainPnl.add(container);

    hide();

    initWidget(mainPnl);
  }