Package org.jdesktop.binding.swingx.adapter

Examples of org.jdesktop.binding.swingx.adapter.DataModelToListModelAdapter


    public DirectListBinding(JList list, TabularDataModel model, String displayFieldName, SelectionModel sm) {
        super(list, model, displayFieldName, AbstractBinding.AUTO_VALIDATE_NONE);
        //create a selection binding
        new ListSelectionBinding(sm, list.getSelectionModel());
        //create a custom ListModel bound to the entire TabularDataModel
        list.setModel(new DataModelToListModelAdapter(model, displayFieldName));
    }
View Full Code Here


    }

    private void setComponentValueFromTabularDataModel(TabularDataModel model) {
        //create a custom ListModel bound to the entire TabularDataModel
        ListMetaData listMeta = (ListMetaData) metaData;
        list.setModel(new DataModelToListModelAdapter(model, listMeta.getRendererFieldName()));
       
       
    }
View Full Code Here

TOP

Related Classes of org.jdesktop.binding.swingx.adapter.DataModelToListModelAdapter

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.