Examples of HideableExternalLink


Examples of fr.openwide.core.wicket.markup.html.basic.HideableExternalLink

        item.add(new ArtifactVersionTagPanel("version", BindingModel.of(item.getModel(), Binding.projectVersion().version())));
        item.add(new DateLabel("lastUpdateDate", BindingModel.of(item.getModel(), Binding.projectVersion().lastUpdateDate()),
            DatePattern.SHORT_DATE));
       
        // Changelog link
        item.add(new HideableExternalLink("changelogLink",
            BindingModel.of(item.getModel(), Binding.projectVersion().additionalInformation().changelogUrl().url())));
       
        // Release notes link
        item.add(new HideableExternalLink("releaseNotesLink",
            BindingModel.of(item.getModel(), Binding.projectVersion().additionalInformation().releaseNotesUrl().url())));

        // Announce link
        item.add(new HideableExternalLink("announceLink",
            BindingModel.of(item.getModel(), Binding.projectVersion().additionalInformation().announceUrl().url())));
       
        // Status
        item.add(new BooleanIcon("centralAvailability", new LoadableDetachableModel<Boolean>() {
          private static final long serialVersionUID = 1L;
View Full Code Here

Examples of fr.openwide.core.wicket.markup.html.basic.HideableExternalLink

  public ItemAdditionalInformationPanel(String id, IModel<? extends ItemAdditionalInformation> model) {
    super(id, model);

    // Website link
    add(new HideableExternalLink("websiteLink", BindingModel.of(model, Binding.itemAdditionalInformation().websiteUrl().url())));
   
    // Issue tracker link
    add(new HideableExternalLink("issueTrackerLink", BindingModel.of(model, Binding.itemAdditionalInformation().issueTrackerUrl().url())));
   
    // Scm link
    add(new HideableExternalLink("scmLink", BindingModel.of(model, Binding.itemAdditionalInformation().scmUrl().url())));
   
    // Changelog link
    add(new HideableExternalLink("changelogLink", BindingModel.of(model, Binding.itemAdditionalInformation().changelogUrl().url())));
   
    // Licenses
    final IModel<List<ProjectLicense>> licensesModel = BindingModel.of(model, Binding.itemAdditionalInformation().licenses());
    add(new CountLabel("licensesHeader", "project.description.links.licenses", new LoadableDetachableModel<Number>() {
      private static final long serialVersionUID = 1L;

      @Override
      protected Number load() {
        List<ProjectLicense> licenses = licensesModel.getObject();
        if (licenses != null) {
          return licenses.size();
        }
        return 0;
      }
    }));
    add(new ListView<ProjectLicense>("licenses", licensesModel) {
      private static final long serialVersionUID = 1L;

      @Override
      protected void populateItem(ListItem<ProjectLicense> item) {
        item.add(new CoreLabel("licenseShortLabel", BindingModel.of(item.getModel(), Binding.projectLicense().shortLabel()))
            .hideIfEmpty());
       
        item.add(new Label("licenseLabel", BindingModel.of(item.getModel(), Binding.projectLicense().label())));

        item.add(new HideableExternalLink("licenseLink", BindingModel.of(item.getModel(), Binding.projectLicense().licenseUrl())));
      }
     
      @Override
      protected void onConfigure() {
        super.onConfigure();
View Full Code Here

Examples of fr.openwide.core.wicket.markup.html.basic.HideableExternalLink

        BindingModel.of(getModel(), Binding.artifactVersion().additionalInformation().changelogUrl().url()),
        BindingModel.of(getModel(), Binding.artifactVersion().projectVersion().additionalInformation().changelogUrl().url()));
    IModel<String> changelogUrlModel = new ArtifactVersionAdditionalInformationModel<String>(
        versionChangelogUrlModel,
        BindingModel.of(getModel(), Binding.artifactVersion().projectVersion().project().additionalInformation().changelogUrl().url()));
    add(new HideableExternalLink("changelogLink", changelogUrlModel));
   
    // Release notes link
    IModel<String> releaseNotesUrlModel = new ArtifactVersionAdditionalInformationModel<String>(
        BindingModel.of(getModel(), Binding.artifactVersion().additionalInformation().releaseNotesUrl().url()),
        BindingModel.of(getModel(), Binding.artifactVersion().projectVersion().additionalInformation().releaseNotesUrl().url()));
    add(new HideableExternalLink("releaseNotesLink", releaseNotesUrlModel));

    // Announce link
    IModel<String> announceUrlModel = new ArtifactVersionAdditionalInformationModel<String>(
        BindingModel.of(getModel(), Binding.artifactVersion().additionalInformation().announceUrl().url()),
        BindingModel.of(getModel(), Binding.artifactVersion().projectVersion().additionalInformation().announceUrl().url()));
    add(new HideableExternalLink("announceLink", announceUrlModel));
   
    // Maven central link
    add(new ExternalLink("mavenCentralLink", new LoadableDetachableModel<String>() {
      private static final long serialVersionUID = 1L;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.