Examples of EmptyPanel


Examples of org.apache.wicket.markup.html.panel.EmptyPanel

                    Class<?> permissionClass = permissionTypeModel.getObject();
                    user.getPermissions().add(new PermissionInput(permissionClass, values, State.NEW));
                } else {
                    permissionInput.setState(State.UPDATED);
                }
                editorPanel.replaceWith(new EmptyPanel("permissionEditor"));
                submitButton.setVisible(false);
                target.add(container);
                afterSubmit(target, form);
                LOGGER.info("got values {}", values.toString());
            }

            @Override
            protected void onError(AjaxRequestTarget target, Form<?> form) {
                LOGGER.warn("Error occured during submit of form via submitButton");
            }
        };
        form.add(submitButton);
        submitButton.setVisible(!createMode);

        permissionTypeChoice =
            new DropDownChoice<Class<?>>("permissionTypeSelect", permissionTypeModel, permissionTypeListModel) {
                private static final long serialVersionUID = -9044237781077496289L;

                @Override
                public boolean isVisible() {
                    return createMode;
                }

            };
        permissionTypeChoice.add(new AjaxFormComponentUpdatingBehavior("onchange") {
            private static final long serialVersionUID = 5195539410268926662L;

            @Override
            protected void onUpdate(AjaxRequestTarget target) {
                LOGGER.info("selected + " + permissionTypeModel.getObject());
                BeanEditorPanel beanEditorPanel =
                    new BeanEditorPanel("permissionEditor", permissionTypeModel.getObject(), values);
                editorPanel.replaceWith(beanEditorPanel);
                editorPanel = beanEditorPanel;
                submitButton.setVisible(true);
                target.add(container);
            }
        });

        form.add(permissionTypeChoice);

        if (createMode) {
            editorPanel = new EmptyPanel("permissionEditor");
        } else {
            editorPanel =
                new BeanEditorPanel("permissionEditor", permissionInput.getType(), permissionInput.getValues());
        }
View Full Code Here

Examples of org.apache.wicket.markup.html.panel.EmptyPanel

            }
        });
    }

    protected void hideSelf(AjaxRequestTarget ajaxRequestTarget) {
        replaceWith(new EmptyPanel(getId()));
        ajaxRequestTarget.add(parent);
    }
View Full Code Here

Examples of org.apache.wicket.markup.html.panel.EmptyPanel

  /**
   * Override this method if you need a top panel. The default top panel is empty and not visible.
   */
  protected void addTopPanel()
  {
    final Panel topPanel = new EmptyPanel("topPanel");
    topPanel.setVisible(false);
    form.add(topPanel);
  }
View Full Code Here

Examples of org.apache.wicket.markup.html.panel.EmptyPanel

  /**
   * Override this method if you need a bottom panel. The default bottom panel is empty and not visible.
   */
  protected void addBottomPanel(final String id)
  {
    final Panel bottomPanel = new EmptyPanel(id);
    bottomPanel.setVisible(false);
    form.add(bottomPanel);
  }
View Full Code Here

Examples of org.apache.wicket.markup.html.panel.EmptyPanel

  public NavigationComponent( @Nonnull @NonNls String id, @Nonnull final LinksDataView<?> dataView, @Nullable ResourceReference styleSheetReference ) {
    super( id );

    if ( styleSheetReference == null ) {
      add( new EmptyPanel( WicketConstants.ID_STYLE_SHEET ) );
    } else {
      add( new StyleSheetReference( WicketConstants.ID_STYLE_SHEET, styleSheetReference ) );
    }

    WebMarkupContainer container = new WebMarkupContainer( NAVIGATION_UL );
View Full Code Here

Examples of org.apache.wicket.markup.html.panel.EmptyPanel

   * panel to put on the west
   * @param id
   * @return
   */
  protected Panel getWestPanel(String id) {
    return new EmptyPanel(id);
  }
View Full Code Here

Examples of org.xrace.view.common.shared.EmptyPanel

    }
  }

  private void addEmptyPanels()
  {
    add(new EmptyPanel("contextPanel"));
    add(new EmptyPanel("inscriptions"));
  }
View Full Code Here

Examples of org.xrace.view.common.shared.EmptyPanel

    }
  }

  private void addEmptyPanels()
  {
    add(new EmptyPanel("contextPanel"));
    add(new EmptyPanel("evenementPanel"));
  }
View Full Code Here

Examples of org.xrace.view.common.shared.EmptyPanel

    }
  }

  private void addEmptyPanels()
  {
    add(new EmptyPanel("contextPanel"));
    add(new EmptyPanel("coursePanel"));
  }
View Full Code Here

Examples of org.xrace.view.common.shared.EmptyPanel

      this.add(new Label("lblCycliste",
          new ResourceModel("labelCycliste")).setVisible(true));
    }
    else
    {
      this.add(new EmptyPanel("evenement"));
      this.add(new EmptyPanel("saison"));
      this.add(new EmptyPanel("cycliste"));
      this.add(new EmptyPanel("lblCycliste"));
    }

    this.add(new Label("description", new PropertyModel(choix,
        "description")));
    this.add(new Label("textFieldValue", new PropertyModel(article,
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.