@Override
  protected boolean prepareForShowing(QuickListContainer container) {
    boolean toShow = false;
    // if data list contains at least 1 element, show this popup.
    T[] data;
    if ((data = getData()).length > 0) {
      dataList.setListData(data);
      toShow = true;
    }
    // else, show popup with a "no elements" message.
    else emptyPopup.show();

    return toShow;
  }
 public QuickListDataList(T[] data) {
   this(new Component() {});
   setListData(data);
 }