コード例 #1
0
  @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;
  }
コード例 #2
0
 public QuickListDataList(T[] data) {
   this(new Component() {});
   setListData(data);
 }