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

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


    }

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

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

        columns.add(new PropertyColumn(new ResourceModel("name"), "connectorName", "connectorName"));

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

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

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

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

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


        Item rowItem = super.newRowItem(id, index, model);
        return IndexBasedMouseOverMouseOutSupport.add(rowItem, rowItem.getIndex());
    }

    private static PropertyColumn createColumn(String resourceKey, String propertyName) {
        return new PropertyColumn(getResourceModelForKey(resourceKey), propertyName, propertyName);
    }
View Full Code Here

    private static PropertyColumn createColumn(String resourceKey, String propertyName) {
        return new PropertyColumn(getResourceModelForKey(resourceKey), propertyName, propertyName);
    }

    private static PropertyColumn createColumnWithLinkToDetail(String resourceKey, String propertyName) {
        return new PropertyColumn(getResourceModelForKey(resourceKey), propertyName, propertyName) {
            @Override
            public void populateItem(Item item, String componentId, IModel model) {
                item.add(new LinkToDetailPanel(componentId, createLabelModel(model)));
            }
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

                        public String getCssClass() {
                            return "small_fixedsize";
                        }
                    });
                } else {
                    IColumn column = new PropertyColumn(new ResourceModel(field), field, field) {

                        private static final long serialVersionUID = 3282547854226892169L;

                        @Override
                        public String getCssClass() {
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

        setWindowClosedCallback(mwindow, container);

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

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

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

        columns.add(new AbstractColumn<PolicyTO>(new ResourceModel("type")) {

            private static final long serialVersionUID = 8263694778917279290L;
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

      {
        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

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

    columns.add(new PropertyColumn(new Model("ID"), "id") {
      @Override
      public String getCssClass()
      {
        return "numeric";
      }
    });
   
    columns.add(new PropertyColumn(new Model("First Name"), "firstName", "firstName"));
   
    columns.add(new PropertyColumn(new Model("Last Name"), "lastName", "lastName") {
      @Override
      public String getCssClass()
      {
        return "last-name";
      }
    });
   
    columns.add(new PropertyColumn(new Model("Home Phone"), "homePhone"));
    columns.add(new PropertyColumn(new Model("Cell Phone"), "cellPhone"));

    add(new DefaultDataTable("table", columns, new SortableContactDataProvider(), 8));
  }
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.