Package org.springframework.richclient.widget.table

Examples of org.springframework.richclient.widget.table.PropertyColumnTableDescription


    {
        super("itemDataEditor", itemDataProvider);
        setDetailForm(new ItemForm());
        setFilterForm(new ItemFilterForm());

        PropertyColumnTableDescription tableDescription = new PropertyColumnTableDescription("itemDataEditor", Item.class);
        tableDescription.addPropertyColumn("name");
        tableDescription.addPropertyColumn("description");
        tableDescription.addPropertyColumn("supplier.name");
        setTableWidget(tableDescription);
    }
View Full Code Here


        setShowDetailSupported(true);
    }

    protected TableDescription getTableDescription()
    {
        PropertyColumnTableDescription desc = new PropertyColumnTableDescription("todoListBinding", TodoItem.class);
        desc.addPropertyColumn("name");
        desc.addPropertyColumn("description");
        return desc;
    }
View Full Code Here

     *
     * @return component holding this view
     */
    protected JComponent createControl()
    {
        PropertyColumnTableDescription desc = new PropertyColumnTableDescription("contactViewTable", Contact.class);
        desc.addPropertyColumn("lastName").withMinWidth(150);
        desc.addPropertyColumn("firstName").withMinWidth(150);
        desc.addPropertyColumn("address.address1");
        desc.addPropertyColumn("address.city");
        desc.addPropertyColumn("address.state");
        desc.addPropertyColumn("address.zip");
        widget = new GlazedListTableWidget(Arrays.asList(contactDataStore.getAllContacts()), desc);
        JPanel table = new JPanel(new BorderLayout());
        table.add(widget.getListSummaryLabel(), BorderLayout.NORTH);
        table.add(widget.getComponent(), BorderLayout.CENTER);
        table.add(widget.getButtonBar(), BorderLayout.SOUTH);
View Full Code Here

TOP

Related Classes of org.springframework.richclient.widget.table.PropertyColumnTableDescription

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.