示例#1
0
 /**
  * Setter.
  *
  * @param pPresenter the new presenter
  */
 public void setPresenter(final P pPresenter) {
   if (LOG.isDetailEnabled()) {
     LOG.detail(
         "setPresenter", //$NON-NLS-1$
         "pPresenter = " + pPresenter); // $NON-NLS-1$
   }
   iPresenter = pPresenter;
 }
示例#2
0
  /**
   * Getter.
   *
   * @return the ID of the marked entry
   */
  @SuppressWarnings("unchecked")
  public String getMarkedID() {
    LOG.enter("getMarkedID"); // $NON-NLS-1$
    if (LOG.isDetailEnabled()) {
      LOG.detail(
          "getMarkedID", //$NON-NLS-1$
          "iMarkedIdx = " + iMarkedIdx); // $NON-NLS-1$
    }

    String result = null;
    if (iMarkedIdx >= 0 && iMarkedIdx < iGuiList.getWidgetCount()) {
      result =
          getIdFromWidget(
              ((CbGenericListItem<W>) iGuiList.getWidget(iMarkedIdx)).getDisplayWidget());
    }

    LOG.exit("getMarkedID", result); // $NON-NLS-1$
    return result;
  }