Package org.apache.wicket.markup.html.panel

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


            }
        });
    }

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

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

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

  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

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

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

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

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

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

TOP

Related Classes of org.apache.wicket.markup.html.panel.EmptyPanel

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.