Package org.jdesktop.binding.swingx.adapter

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


    }
   
    private void configureSelection() {
        Object selectionMeta = metaData.getCustomProperty(DataConstants.SELECTION_MODEL);
        if (selectionMeta instanceof SelectionModel) {
            new ListSelectionBinding((SelectionModel) selectionMeta,
                    table.getSelectionModel(), createIndexMapper(table));
        }
       
    }
View Full Code Here


        super(component, dataModel, "", DirectTableBinding.AUTO_VALIDATE_NONE);
        //construct a TableModel for the table based on the given dataModel.
        TableModel tm = createAdapter(dataModel, fieldNames);
        table.setModel(tm);
        if (selectionModel != null) {
           new ListSelectionBinding(selectionModel,
                   table.getSelectionModel(), createIndexMapper(table));
        }
    }
View Full Code Here


    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 configureSelection() {
        Object selectionMeta = metaData
                .getCustomProperty(DataConstants.SELECTION_MODEL);
        if (selectionMeta instanceof SelectionModel) {
            new ListSelectionBinding((SelectionModel) selectionMeta, list
                    .getSelectionModel());
        }

    }
View Full Code Here

TOP

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

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.