Examples of AjaxModalOpenBehavior


Examples of fr.openwide.core.wicket.more.markup.html.template.js.jquery.plugins.bootstrap.modal.behavior.AjaxModalOpenBehavior

      protected void onConfigure() {
        super.onConfigure();
        setVisible(MavenArtifactNotifierSession.get().hasRoleAdmin());
      }
    };
    addButton.add(new AjaxModalOpenBehavior(projectVersionAddPopup, MouseEvent.CLICK));
    add(addButton);
   
    // Versions
    IModel<Set<ProjectVersion>> setModel = BindingModel.of(getModel(), Binding.project().versions());
    add(new ListView<ProjectVersion>("projectVersions", CollectionToListWrapperModel.of(setModel)) {
      private static final long serialVersionUID = 1L;

      @Override
      protected void populateItem(final ListItem<ProjectVersion> item) {
        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;

          @Override
          protected Boolean load() {
            IModel<ProjectVersionStatus> statusModel = BindingModel.of(item.getModel(), Binding.projectVersion().status());
            return ProjectVersionStatus.PUBLISHED_ON_MAVEN_CENTRAL.equals(statusModel.getObject());
          }
        }));
       
        // Edit action
        Button editButton = new AuthenticatedOnlyButton("edit");
        editButton.add(new AjaxModalOpenBehavior(projectVersionEditPopup, MouseEvent.CLICK) {
          private static final long serialVersionUID = 1L;

          @Override
          protected void onShow(AjaxRequestTarget target) {
            super.onShow(target);
View Full Code Here

Examples of fr.openwide.core.wicket.more.markup.html.template.js.jquery.plugins.bootstrap.modal.behavior.AjaxModalOpenBehavior

  }
 
  @Override
  protected MarkupContainer getEditLink(String id, final IModel<? extends Project> projectModel) {
    Button editLink = new Button(id);
    editLink.add(new AjaxModalOpenBehavior(editProjectPopup, MouseEvent.CLICK) {
      private static final long serialVersionUID = 1L;

      @Override
      protected void onShow(AjaxRequestTarget target) {
        editProjectPopup.getModel().setObject(projectModel.getObject());
View Full Code Here

Examples of fr.openwide.core.wicket.more.markup.html.template.js.jquery.plugins.bootstrap.modal.behavior.AjaxModalOpenBehavior

    ProjectFormPopupPanel editProjectPopup = new ProjectFormPopupPanel("editProjectPopup", projectModel);
    add(editProjectPopup);
   
    // Edit button
    Button editButton = new AuthenticatedOnlyButton("editButton");
    editButton.add(new AjaxModalOpenBehavior(editProjectPopup, MouseEvent.CLICK));
    add(editButton);
   
    // Follow
    AjaxLink<Project> follow = new AjaxLink<Project>("follow", projectModel) {
      private static final long serialVersionUID = 1L;
View Full Code Here

Examples of fr.openwide.core.wicket.more.markup.html.template.js.jquery.plugins.bootstrap.modal.behavior.AjaxModalOpenBehavior

      protected void onConfigure() {
        super.onConfigure();
        setVisible(MavenArtifactNotifierSession.get().hasRoleAdmin());
      }
    };
    addProjectButton.add(new AjaxModalOpenBehavior(addProjectPopup, MouseEvent.CLICK));
    add(addProjectButton);

    // Page content
    ProjectPortfolioPanel portfolioPanel = new ProjectPortfolioPanel("portfolio",
        new ProjectDataProvider(searchTermModel), configurer.getPortfolioItemsPerPage());
View Full Code Here

Examples of fr.openwide.core.wicket.more.markup.html.template.js.jquery.plugins.bootstrap.modal.behavior.AjaxModalOpenBehavior

    // User create popup
    UserFormPopupPanel userCreatePanel = new UserFormPopupPanel("userCreatePopupPanel");
    add(userCreatePanel);
   
    Button createUser = new Button("createUser");
    createUser.add(new AjaxModalOpenBehavior(userCreatePanel, MouseEvent.CLICK) {
      private static final long serialVersionUID = 5414159291353181776L;
     
      @Override
      protected void onShow(AjaxRequestTarget target) {
      }
View Full Code Here

Examples of fr.openwide.core.wicket.more.markup.html.template.js.jquery.plugins.bootstrap.modal.behavior.AjaxModalOpenBehavior

    // User group create popup
    UserGroupFormPopupPanel userGroupCreatePanel = new UserGroupFormPopupPanel("userGroupCreatePopupPanel");
    add(userGroupCreatePanel);
   
    Button createUserGroup = new Button("createUserGroup");
    createUserGroup.add(new AjaxModalOpenBehavior(userGroupCreatePanel, MouseEvent.CLICK) {
      private static final long serialVersionUID = 5414159291353181776L;
     
      @Override
      protected void onShow(AjaxRequestTarget target) {
      }
View Full Code Here

Examples of fr.openwide.core.wicket.more.markup.html.template.js.jquery.plugins.bootstrap.modal.behavior.AjaxModalOpenBehavior

    // User update popup
    UserFormPopupPanel userUpdatePanel = new UserFormPopupPanel("userUpdatePopupPanel", getModel());
    add(userUpdatePanel);
   
    Button updateUser = new Button("updateUser");
    updateUser.add(new AjaxModalOpenBehavior(userUpdatePanel, MouseEvent.CLICK) {
      private static final long serialVersionUID = 5414159291353181776L;
     
      @Override
      protected void onShow(AjaxRequestTarget target) {
      }
    });
    add(updateUser);
   
    // Change password popup
    ChangePasswordPopupPanel changePasswordPanel = new ChangePasswordPopupPanel("changePasswordPopupPanel", getModel());
    add(changePasswordPanel);
   
    Button changeUserPassword = new Button("changeUserPassword") {
      private static final long serialVersionUID = 1L;

      @Override
      protected void onConfigure() {
        super.onConfigure();
        User user = userModel.getObject();
        if (user != null) {
          setVisible(AuthenticationType.LOCAL.equals(user.getAuthenticationType()));
        }
      }
    };
    changeUserPassword.add(new AjaxModalOpenBehavior(changePasswordPanel, MouseEvent.CLICK) {
      private static final long serialVersionUID = -7179264122322968921L;
     
      @Override
      protected void onShow(AjaxRequestTarget target) {
      }
View Full Code Here

Examples of fr.openwide.core.wicket.more.markup.html.template.js.jquery.plugins.bootstrap.modal.behavior.AjaxModalOpenBehavior

        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) {
          private static final long serialVersionUID = 1L;

          @Override
          protected void onShow(AjaxRequestTarget target) {
            ruleEditPopupPanel.getModel().setObject(item.getModelObject());
View Full Code Here

Examples of fr.openwide.core.wicket.more.markup.html.template.js.jquery.plugins.bootstrap.modal.behavior.AjaxModalOpenBehavior

      protected void onConfigure() {
        super.onConfigure();
        setVisible(!UserGroupDescriptionPanel.this.getModelObject().isLocked());
      }
    };
    updateUserGroup.add(new AjaxModalOpenBehavior(userGroupUpdatePanel, MouseEvent.CLICK) {
      private static final long serialVersionUID = 5414159291353181776L;
     
      @Override
      protected void onShow(AjaxRequestTarget target) {
      }
View Full Code Here

Examples of fr.openwide.core.wicket.more.markup.html.template.js.jquery.plugins.bootstrap.modal.behavior.AjaxModalOpenBehavior

    ArtifactDeprecationFormPopupPanel deprecationPopup = new ArtifactDeprecationFormPopupPanel("deprecationPopup", artifactModel);
    add(deprecationPopup);
   
    // Deprecation status
    add(new EnumLabel<ArtifactDeprecationStatus>("deprecationStatus", BindingModel.of(getModel(), Binding.artifact().deprecationStatus())));
    add(new AuthenticatedOnlyButton("editDeprecation").add(new AjaxModalOpenBehavior(deprecationPopup, MouseEvent.CLICK)));
   
    // Deprecates
    IModel<List<Artifact>> relatedDeprecatedArtifactsModel = new LoadableDetachableModel<List<Artifact>>() {
      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.