@Override public boolean onCloseButtonClicked(AjaxRequestTarget target) { sendActionPerformed(); return true; } });
public SelectODocumentCommand(OrienteerDataTable<ODocument, ?> table, IModel<ODocument> documentModel, IModel<OProperty> propertyModel) { super(new ResourceModel("command.select"), table); setBootstrapType(BootstrapType.SUCCESS); setIcon(FAIconType.hand_o_right); this.documentModel = documentModel; this.propertyModel = propertyModel; }
table.getHeadersToolbar().setVisibilityAllowed(false); table.getNoRecordsToolbar().setVisibilityAllowed(false); table.addCommand(new SelectODocumentCommand(table, documentModel, new OPropertyModel(property)) .setBootstrapSize(BootstrapSize.EXTRA_SMALL) .setIcon((String)null)); add(tablePanel);
table.addCommand(new CopyODocumentCommand(table, linkedClass).add(securityBehaviour)); table.addCommand(new DeleteODocumentCommand(table, linkedClass).add(securityBehaviour)); table.addCommand(new SelectODocumentCommand(table, documentModel, propertyModel).add(securityBehaviour)); table.addCommand(new ReleaseODocumentCommand(table, documentModel, propertyModel).add(securityBehaviour));