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

      {
        cellItem.add(new ActionPanel(componentId, model));
      }
    });

    columns.add(new PropertyColumn(new Model<String>("ID"), "id")
    {
      @Override
      public String getCssClass()
      {
        return "numeric";
      }
    });

    columns.add(new PropertyColumn(new Model<String>("First Name"), "firstName", "firstName"));

    columns.add(new PropertyColumn(new Model<String>("Last Name"), "lastName", "lastName")
    {
      @Override
      public String getCssClass()
      {
        return "last-name";
      }
    });

    columns.add(new PropertyColumn(new Model<String>("Home Phone"), "homePhone"));
    columns.add(new PropertyColumn(new Model<String>("Cell Phone"), "cellPhone"));

    add(new DefaultDataTable("table", columns, new SortableContactDataProvider(), 8));
  }
View Full Code Here

   * Construct.
   */
  public ContactsDisplayPage()
  {
    IColumn<?>[] cols = new IColumn[4];
    cols[0] = new PropertyColumn(new Model<String>("first name"), "firstName", "firstName");
    cols[1] = new PropertyColumn(new Model<String>("last name"), "lastName", "lastName");
    cols[2] = new PropertyColumn(new Model<String>("home phone"), "homePhone");
    cols[3] = new PropertyColumn(new Model<String>("cell phone"), "cellPhone");

    add(new DefaultDataTable("contacts", Arrays.asList(cols), getDataProvider(), 5));
  }
View Full Code Here

      {
        cellItem.add(new ActionPanel(componentId, model));
      }
    });

    columns.add(new PropertyColumn(new Model<String>("ID"), "id")
    {
      @Override
      public String getCssClass()
      {
        return "numeric";
      }
    });

    columns.add(new PropertyColumn(new Model<String>("First Name"), "firstName", "firstName"));

    columns.add(new PropertyColumn(new Model<String>("Last Name"), "lastName", "lastName")
    {
      @Override
      public String getCssClass()
      {
        return "last-name";
      }
    });

    columns.add(new PropertyColumn(new Model<String>("Home Phone"), "homePhone"));
    columns.add(new PropertyColumn(new Model<String>("Cell Phone"), "cellPhone"));

    add(new DefaultDataTable("table", columns, new SortableContactDataProvider(), 8));
  }
View Full Code Here

            if ("token".equalsIgnoreCase(name)) {
                columns.add(new TokenColumn("token"));
            } else if (field != null && field.getType().equals(Date.class)) {
                columns.add(new DatePropertyColumn<UserTO>(new ResourceModel(name, name), name, name));
            } else {
                columns.add(new PropertyColumn(new ResourceModel(name, name), name, name));
            }
        }

        for (String name : prefMan.getList(getRequest(), Constants.PREF_USERS_ATTRIBUTES_VIEW)) {
            columns.add(new UserAttrColumn(name, UserAttrColumn.SchemaType.schema));
        }

        for (String name : prefMan.getList(getRequest(), Constants.PREF_USERS_DERIVED_ATTRIBUTES_VIEW)) {
            columns.add(new UserAttrColumn(name, UserAttrColumn.SchemaType.derivedSchema));
        }

        for (String name : prefMan.getList(getRequest(), Constants.PREF_USERS_VIRTUAL_ATTRIBUTES_VIEW)) {
            columns.add(new UserAttrColumn(name, UserAttrColumn.SchemaType.virtualSchema));
        }

        // Add defaults in case of no selection
        if (columns.isEmpty()) {
            for (String name : DisplayAttributesModalPage.DEFAULT_SELECTION) {
                columns.add(new PropertyColumn(new ResourceModel(name, name), name, name));
            }

            prefMan.setList(getRequest(), getResponse(), Constants.PREF_USERS_DETAILS_VIEW,
                    DisplayAttributesModalPage.DEFAULT_SELECTION);
        }
View Full Code Here

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

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

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

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

        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

                "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>(new ResourceModel("actions", "")) {

            private static final long serialVersionUID = 2054811145491901166L;

            @Override
View Full Code Here

                "UserRequest", "list"));

        userRequestPaginatorRows = prefMan.getPaginatorRows(getRequest(), Constants.PREF_USER_REQUEST_PAGINATOR_ROWS);

        List<IColumn> columns = new ArrayList<IColumn>();
        columns.add(new PropertyColumn(new ResourceModel("id"), "id", "id"));
        columns.add(new PropertyColumn(new ResourceModel("type"), "type", "type"));
        columns.add(new UserRequestColumn("user"));
        columns.add(new AbstractColumn<UserRequestTO>(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

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.