Examples of CountLabel


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

    localContainer.add(new DateLabelWithPlaceholder("lastUpdateDate",
        Model.of(artifactLastVersionModel.getLastVersionUpdateDate()), DatePattern.SHORT_DATE));
    item.add(localContainer);

    // Followers count column
    Label followersCount = new CountLabel("followersCount", "artifact.follow.dataView.followers",
        BindingModel.of(artifactModel, Binding.artifact().followersCount()));
    followersCount.add(new AttributeModifier("class", new LoadableDetachableModel<String>() {
      private static final long serialVersionUID = 1L;

      @Override
      protected String load() {
        if (artifactModel.getObject() != null && artifactModel.getObject().getFollowersCount() > 0) {
View Full Code Here

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

            return followedArtifactModel.getObject() != null;
          }
        }));
       
        // Rules
        item.add(new CountLabel("rules", "dashboard.artifact.rules",
            BindingModel.of(followedArtifactModel, Binding.followedArtifact().artifactNotificationRules().size())));
       
        // Last version
        final IModel<String> lastVersionModel = new EitherModel<String>(
            BindingModel.of(followedArtifactModel, Binding.followedArtifact().artifact().latestVersion().version()),
View Full Code Here

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

    // 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();
View Full Code Here

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

    };
    unfollow.add(new AuthenticatedOnlyBehavior());
    add(unfollow);
   
    // Followers count label
    add(new CountLabel("followersCountLabel", "artifact.description.followers", new LoadableDetachableModel<Long>() {
      private static final long serialVersionUID = 1L;

      @Override
      protected Long load() {
        Artifact artifact = artifactModel.getObject();
View Full Code Here

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

        artifactBean.getArtifactId(), artifactBean.getLatestVersion())));
    localContainer.add(new DateLabelWithPlaceholder("lastUpdateDate", Model.of(artifactLastVersionModel.getLastVersionUpdateDate()), DatePattern.SHORT_DATE));
    item.add(localContainer);

    // Followers count column
    Label followersCount = new CountLabel("followersCount", "artifact.follow.dataView.followers",
        BindingModel.of(artifactModel, Binding.artifact().followersCount()));
    followersCount.add(new AttributeModifier("class", new LoadableDetachableModel<String>() {
      private static final long serialVersionUID = 1L;

      @Override
      protected String load() {
        if (artifactModel.getObject() != null && artifactModel.getObject().getFollowersCount() > 0) {
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.