Package fr.openwide.core.wicket.more.markup.html.image

Examples of fr.openwide.core.wicket.more.markup.html.image.BooleanIcon


        // 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;

          @Override
          protected Boolean load() {
            IModel<ProjectVersionStatus> statusModel = BindingModel.of(item.getModel(), Binding.projectVersion().status());
View Full Code Here


    // Principal email address
    add(new EmailLink("email", BindingModel.of(userModel, Binding.user().email())));
   
    add(new Label("fullName", BindingModel.of(userModel, Binding.user().fullName())));
   
    add(new BooleanIcon("active", BindingModel.of(userModel, Binding.user().active())));
   
    // Dates
    add(new DateLabel("creationDate", BindingModel.of(userModel, Binding.user().creationDate()),
        DatePattern.SHORT_DATETIME));
    add(new DateLabel("lastLoginDate", BindingModel.of(userModel, Binding.user().lastLoginDate()),
View Full Code Here

  protected void addItemColumns(Item<User> item, IModel<? extends User> userModel) {
    Link<Void> userNameLink = AdministrationUserDescriptionPage.linkDescriptor(ReadOnlyModel.of(userModel)).link("userNameLink");
    userNameLink.add(new Label("userName", BindingModel.of(userModel, Binding.user().userName())));
    item.add(userNameLink);
    item.add(new Label("fullName", BindingModel.of(userModel, Binding.user().fullName())));
    item.add(new BooleanIcon("active", BindingModel.of(userModel, Binding.user().active())));
    item.add(new EmailLink("email", BindingModel.of(userModel, Binding.user().email())));
  }
View Full Code Here

      @Override
      protected void populateItem(final ListItem<ArtifactNotificationRule> item) {
        item.add(new Label("regex", BindingModel.of(item.getModel(), Binding.artifactNotificationRule().regex())));

        boolean complyRule = item.getModelObject().getType().equals(ArtifactNotificationRuleType.COMPLY);
        MarkupContainer icon = new BooleanIcon("notifyMatches", Model.of(complyRule));
        String tooltipKey = (complyRule ? "artifact.rules.notifyMatches" : "artifact.rules.ignoreMatches");
        icon.add(new AttributeModifier("title", new ResourceModel(tooltipKey)));
        item.add(icon);
       
        // Update rule link
        Button updateRuleLink = new Button("editRuleLink");
        updateRuleLink.add(new AjaxModalOpenBehavior(ruleEditPopupPanel, MouseEvent.CLICK) {
View Full Code Here

      @Override
      protected void populateItem(ListItem<Authority> item) {
        Authority authority = item.getModelObject();
        item.add(new Label("authorityName", new ResourceModel(
            "administration.usergroup.authority." + authority.getName())));
        item.add(new BooleanIcon("authorityCheck", Model.of(
            userGroupModel.getObject().getAuthorities().contains(authority))));
      }
    });
   
    // User group update popup
View Full Code Here

    artifactLink.add(new Label("artifactId", BindingModel.of(artifactModel, Binding.artifact().artifactId())));
    item.add(artifactLink);
    item.add(new Label("nbVersions", BindingModel.of(artifactModel, Binding.artifact().versions().size())));
   
    final IModel<ArtifactDeprecationStatus> deprecatedModel = BindingModel.of(artifactModel, Binding.artifact().deprecationStatus());
    item.add(new BooleanIcon("deprecated", new LoadableDetachableModel<Boolean>() {
      private static final long serialVersionUID = 1L;

      @Override
      protected Boolean load() {
        return ArtifactDeprecationStatus.DEPRECATED.equals(deprecatedModel.getObject());
View Full Code Here

TOP

Related Classes of fr.openwide.core.wicket.more.markup.html.image.BooleanIcon

Copyright © 2018 www.massapicom. 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.