コード例 #1
0
  /**
   * Creates a new image selector that displays the images attached to the link destination page.
   *
   * @param wikiService the service used to retrieve the list of image attachments
   * @param useLinkDestination {@code true} to consider that the link destination is the current
   *     page, {@code false} to consider that the link origin is the current page
   */
  public CurrentPageImageSelectorWizardStep(
      WikiServiceAsync wikiService, boolean useLinkDestination) {
    super(wikiService);

    this.useLinkDestination = useLinkDestination;

    getMainPanel().addStyleName("xImagesSelector");

    clearFloatsListItem = new ListItem<Attachment>();
    clearFloatsListItem.setStyleName("clearfloats");

    getList().addSelectionHandler(this);
  }