private void initLayout() {
    Form mainForm = new Form(ID_MAIN_FORM);
    add(mainForm);

    MainObjectListPanel<AccessCertificationDefinitionType> mainPanel =
        new MainObjectListPanel<AccessCertificationDefinitionType>(
            ID_TABLE,
            AccessCertificationDefinitionType.class,
            TableId.PAGE_CERT_DEFINITIONS_PANEL,
            null,
            this) {
          private static final long serialVersionUID = 1L;

          @Override
          protected IColumn<SelectableBean<AccessCertificationDefinitionType>, String>
              createCheckboxColumn() {
            return null;
          }

          @Override
          public void objectDetailsPerformed(
              AjaxRequestTarget target, AccessCertificationDefinitionType service) {
            PageCertDefinitions.this.detailsPerformed(target, service);
          }

          @Override
          protected List<IColumn<SelectableBean<AccessCertificationDefinitionType>, String>>
              createColumns() {
            return PageCertDefinitions.this.initColumns();
          }

          @Override
          protected List<InlineMenuItem> createInlineMenu() {
            return null;
          }

          @Override
          protected void newObjectPerformed(AjaxRequestTarget target) {
            navigateToNext(PageCertDefinition.class);
          }
        };
    mainPanel.setAdditionalBoxCssClasses(GuiStyleConstants.CLASS_OBJECT_CERT_DEF_BOX_CSS_CLASSES);
    mainForm.add(mainPanel);
  }
示例#2
0
  private void initLayout() {
    Form mainForm = new Form(ID_MAIN_FORM);
    add(mainForm);

    MainObjectListPanel<ServiceType> servicePanel =
        new MainObjectListPanel<ServiceType>(
            ID_TABLE, ServiceType.class, TableId.TABLE_SERVICES, null, this) {
          private static final long serialVersionUID = 1L;

          @Override
          public void objectDetailsPerformed(AjaxRequestTarget target, ServiceType service) {
            PageServices.this.serviceDetailsPerformed(target, service);
          }

          @Override
          protected List<IColumn<SelectableBean<ServiceType>, String>> createColumns() {
            List<IColumn<SelectableBean<ServiceType>, String>> columns =
                ColumnUtils.getDefaultServiceColumns();

            IColumn column = new InlineMenuHeaderColumn(listInlineMenuHelper.initInlineMenu());
            columns.add(column);

            return columns;
          }

          @Override
          protected List<InlineMenuItem> createInlineMenu() {
            return listInlineMenuHelper.createRowActions();
          }

          @Override
          protected void newObjectPerformed(AjaxRequestTarget target) {
            navigateToNext(PageService.class);
          }
        };
    servicePanel.setAdditionalBoxCssClasses(GuiStyleConstants.CLASS_OBJECT_SERVICE_BOX_CSS_CLASSES);
    servicePanel.setOutputMarkupId(true);
    mainForm.add(servicePanel);
  }