Package org.apache.wicket.extensions.markup.html.repeater.data.table

Examples of org.apache.wicket.extensions.markup.html.repeater.data.table.PropertyColumn


                "Reports", "list"));

        paginatorRows = prefMan.getPaginatorRows(getRequest(), Constants.PREF_REPORT_PAGINATOR_ROWS);

        List<IColumn> columns = new ArrayList<IColumn>();
        columns.add(new PropertyColumn(new ResourceModel("id"), "id", "id"));
        columns.add(new PropertyColumn(new ResourceModel("name"), "name", "name"));
        columns.add(new DatePropertyColumn(new ResourceModel("lastExec"), "lastExec", "lastExec"));
        columns.add(new DatePropertyColumn(new ResourceModel("nextExec"), "nextExec", "nextExec"));
        columns.add(new DatePropertyColumn(new ResourceModel("startDate"), "startDate", "startDate"));
        columns.add(new DatePropertyColumn(new ResourceModel("endDate"), "endDate", "endDate"));
        columns.add(new PropertyColumn(new ResourceModel("latestExecStatus"), "latestExecStatus", "latestExecStatus"));
        columns.add(new ActionColumn<ReportTO, String>(new ResourceModel("actions", "")) {

            private static final long serialVersionUID = 2054811145491901166L;

            @Override
View Full Code Here


    }

    private void setupResources() {
        List<IColumn<ResourceTO, String>> columns = new ArrayList<IColumn<ResourceTO, String>>();

        columns.add(new PropertyColumn(new StringResourceModel("name", this, null), "name", "name"));

        columns.add(new AbstractColumn<ResourceTO, String>(
                new StringResourceModel("connector", this, null, "connector")) {

            private static final long serialVersionUID = 8263694778917279290L;

            @Override
            public void populateItem(final Item<ICellPopulator<ResourceTO>> cellItem, final String componentId,
                    final IModel<ResourceTO> rowModel) {

                final AjaxLink<String> editLink = new ClearIndicatingAjaxLink<String>("link", getPageReference()) {

                    private static final long serialVersionUID = -7978723352517770644L;

                    @Override
                    protected void onClickInternal(final AjaxRequestTarget target) {

                        editConnectorWin.setPageCreator(new ModalWindow.PageCreator() {

                            private static final long serialVersionUID = -7834632442532690940L;

                            @Override
                            public Page createPage() {
                                return new ConnectorModalPage(Resources.this.getPageReference(), editConnectorWin,
                                        connectorRestClient.read(rowModel.getObject().getConnectorId()));
                            }
                        });

                        editConnectorWin.show(target);
                    }
                };
                editLink.add(new Label("linkTitle", rowModel.getObject().getConnectorDisplayName()));

                LinkPanel editConnPanel = new LinkPanel(componentId);
                editConnPanel.add(editLink);

                cellItem.add(editConnPanel);

                MetaDataRoleAuthorizationStrategy.authorize(editConnPanel, ENABLE, xmlRolesReader.getAllAllowedRoles(
                        "Connectors", "read"));
            }
        });

        columns.add(new PropertyColumn(new StringResourceModel(
                "propagationPrimary", this, null), "propagationPrimary", "propagationPrimary"));
        columns.add(new PropertyColumn(new StringResourceModel(
                "propagationPriority", this, null), "propagationPriority", "propagationPriority"));

        columns.add(new AbstractColumn<ResourceTO, String>(new StringResourceModel("actions", this, null, "")) {

            private static final long serialVersionUID = 2054811145491901166L;
View Full Code Here

    }

    private void setupConnectors() {
        List<IColumn<ConnInstanceTO, String>> columns = new ArrayList<IColumn<ConnInstanceTO, String>>();

        columns.add(new PropertyColumn(
                new StringResourceModel("id", this, null), "id", "id"));
        columns.add(new PropertyColumn(
                new StringResourceModel("name", this, null), "connectorName", "connectorName"));
        columns.add(new PropertyColumn(
                new StringResourceModel("displayName", this, null), "displayName", "displayName"));
        columns.add(new PropertyColumn(
                new StringResourceModel("bundleName", this, null), "bundleName", "bundleName"));
        columns.add(new PropertyColumn(
                new StringResourceModel("version", this, null), "version", "version"));
        columns.add(new AbstractColumn<ConnInstanceTO, String>(new StringResourceModel("actions", this, null, "")) {

            private static final long serialVersionUID = 2054811145491901166L;
View Full Code Here

            }
        });
        add(reportExecExportWin);

        final List<IColumn> columns = new ArrayList<IColumn>();
        columns.add(new PropertyColumn(new ResourceModel("id"), "id", "id"));
        columns.add(new DatePropertyColumn(new ResourceModel("startDate"), "startDate", "startDate"));
        columns.add(new DatePropertyColumn(new ResourceModel("endDate"), "endDate", "endDate"));
        columns.add(new PropertyColumn(new ResourceModel("status"), "status", "status"));
        columns.add(new ActionColumn<ReportExecTO, String>(new ResourceModel("actions", "")) {

            private static final long serialVersionUID = 2054811145491901166L;

            @Override
View Full Code Here

        final List<IColumn> columns = new ArrayList<IColumn>();

        final int paginatorRows = 10;

        columns.add(new PropertyColumn(new ResourceModel("id"), "id", "id"));

        columns.add(new DatePropertyColumn(new ResourceModel("startDate"), "startDate", "startDate"));

        columns.add(new DatePropertyColumn(new ResourceModel("endDate"), "endDate", "endDate"));

        columns.add(new PropertyColumn(new ResourceModel("status"), "status", "status"));

        columns.add(new ActionColumn<TaskExecTO, String>(new ResourceModel("actions", "")) {

            private static final long serialVersionUID = 2054811145491901166L;
View Full Code Here

                "Approval", "list"));

        approvalPaginatorRows = prefMan.getPaginatorRows(getRequest(), Constants.PREF_APPROVAL_PAGINATOR_ROWS);

        List<IColumn> columns = new ArrayList<IColumn>();
        columns.add(new PropertyColumn(new ResourceModel("taskId"), "taskId", "taskId"));
        columns.add(new PropertyColumn(new ResourceModel("key"), "key", "key"));
        columns.add(new PropertyColumn(new ResourceModel("description"), "description", "description"));
        columns.add(new DatePropertyColumn(new ResourceModel("createTime"), "createTime", "createTime"));
        columns.add(new DatePropertyColumn(new ResourceModel("dueDate"), "dueDate", "dueDate"));
        columns.add(new PropertyColumn(new ResourceModel("owner"), "owner", "owner"));
        columns.add(new AbstractColumn<WorkflowFormTO, String>(new ResourceModel("actions", "")) {

            private static final long serialVersionUID = 2054811145491901166L;

            @Override
View Full Code Here

        paginatorRows = prefMan.getPaginatorRows(getWebRequest(), Constants.PREF_SCHED_TASKS_PAGINATOR_ROWS);

        columns = new ArrayList<IColumn<TaskTO>>();

        columns.add(new PropertyColumn(new ResourceModel("id"), "id", "id"));

        columns.add(new PropertyColumn(new ResourceModel("class"), "jobClassName", "jobClassName"));

        columns.add(new DatePropertyColumn(new ResourceModel("lastExec"), "lastExec", "lastExec"));

        columns.add(new DatePropertyColumn(new ResourceModel("nextExec"), "nextExec", "nextExec"));

        columns.add(new PropertyColumn(new ResourceModel("latestExecStatus"), "latestExecStatus", "latestExecStatus"));

        columns.add(new AbstractColumn<TaskTO>(new ResourceModel("actions", "")) {

            private static final long serialVersionUID = 2054811145491901166L;
View Full Code Here

        paginatorRows = prefMan.getPaginatorRows(getWebRequest(), Constants.PREF_PROPAGATION_TASKS_PAGINATOR_ROWS);

        columns = new ArrayList<IColumn<TaskTO>>();

        columns.add(new PropertyColumn(new ResourceModel("id"), "id", "id"));

        columns.add(new PropertyColumn(new ResourceModel("resource"), "resource", "resource"));

        columns.add(new PropertyColumn(new ResourceModel("accountId"), "accountId", "accountId"));

        columns.add(new PropertyColumn(new ResourceModel("propagationMode"), "propagationMode", "propagationMode"));

        columns.add(new PropertyColumn(new ResourceModel("propagationOperation"), "propagationOperation",
                "propagationOperation"));

        columns.add(new DatePropertyColumn(new ResourceModel("startDate"), "startDate", "startDate"));

        columns.add(new DatePropertyColumn(new ResourceModel("endDate"), "endDate", "endDate"));

        columns.add(new PropertyColumn(new ResourceModel("latestExecStatus"), "latestExecStatus", "latestExecStatus"));

        columns.add(new AbstractColumn<TaskTO>(new ResourceModel("actions", "")) {

            private static final long serialVersionUID = 2054811145491901166L;
View Full Code Here

            final String[] fields, final String readPermissions, final String deletePermissions) {

        List<IColumn> columns = new ArrayList<IColumn>();

        for (String field : fields) {
            columns.add(new PropertyColumn(new ResourceModel(field), field, field));
        }

        columns.add(new AbstractColumn<AbstractBaseBean>(new ResourceModel("actions", "")) {

            private static final long serialVersionUID = 2054811145491901166L;
View Full Code Here

        paginatorRows = prefMan.getPaginatorRows(getWebRequest(), Constants.PREF_NOTIFICATION_TASKS_PAGINATOR_ROWS);

        columns = new ArrayList<IColumn<TaskTO>>();

        columns.add(new PropertyColumn(new ResourceModel("id"), "id", "id"));
        columns.add(new PropertyColumn(new ResourceModel("sender"), "sender", "sender"));
        columns.add(new PropertyColumn(new ResourceModel("recipients"), "recipients", "recipients"));
        columns.add(new PropertyColumn(new ResourceModel("subject"), "subject", "subject"));
        columns.add(new PropertyColumn(new ResourceModel("traceLevel"), "traceLevel", "traceLevel"));
        columns.add(new PropertyColumn(new ResourceModel("latestExecStatus"), "latestExecStatus", "latestExecStatus"));

        columns.add(new AbstractColumn<TaskTO>(new ResourceModel("actions", "")) {

            private static final long serialVersionUID = 2054811145491901166L;
View Full Code Here

TOP

Related Classes of org.apache.wicket.extensions.markup.html.repeater.data.table.PropertyColumn

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.