Package at.bestsolution.efxclipse.runtime.emf.edit.ui.dnd

Examples of at.bestsolution.efxclipse.runtime.emf.edit.ui.dnd.CellDragAdapter


    listView.setItems(new AdapterFactoryObservableList<Object>(adapterFactory, contactsManager.getRootGroup()));
    listView.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);
   
    AdapterFactoryListCellFactory listCellFactory = new AdapterFactoryListCellFactory(adapterFactory);
    listCellFactory.addCellCreationListener(new CellDragAdapter());
    EditingDomainCellDropAdapter dropAdapter = new EditingDomainCellDropAdapter(editingDomain);
    dropAdapter.setFeedbackHandler(new CustomFeedbackHandler());
    listCellFactory.addCellCreationListener(dropAdapter);
    listView.setCellFactory(listCellFactory);
   
View Full Code Here


    // add edit support
    treeCellFactory.addCellEditHandler(new EAttributeCellEditHandler(ContactsPackage.eINSTANCE.getGroup_Name(), editingDomain));

    // adds drag support
    treeCellFactory.addCellCreationListener(new CellDragAdapter());

    // adds drop support
    EditingDomainCellDropAdapter dropAdapter = new EditingDomainCellDropAdapter(editingDomain);
    dropAdapter.setFeedbackHandler(new CustomFeedbackHandler());
    treeCellFactory.addCellCreationListener(dropAdapter);
View Full Code Here

    tableView.getColumns().addAll(firstNameColumn, lastNameColumn);

    firstNameColumn.setCellValueFactory(new ProxyCellValueFactory<Object, Object>());
    AdapterFactoryTableCellFactory<Object, Object> firstNameCellFactory = new AdapterFactoryTableCellFactory<>(adapterFactory, 0);
    firstNameCellFactory.addCellCreationListener(new CellDragAdapter());
    firstNameCellFactory.addCellCreationListener(new EditingDomainCellDropAdapter(editingDomain));
    firstNameColumn.setCellFactory(firstNameCellFactory);
    firstNameColumn.setSortable(false);

    lastNameColumn.setCellValueFactory(new ProxyCellValueFactory<Object, Object>());
    AdapterFactoryTableCellFactory<Object, Object> lastNameCellFactory = new AdapterFactoryTableCellFactory<Object, Object>(
        adapterFactory, 1);
    lastNameCellFactory.addCellCreationListener(new CellDragAdapter());
    lastNameCellFactory.addCellCreationListener(new EditingDomainCellDropAdapter(editingDomain));
    lastNameColumn.setCellFactory(lastNameCellFactory);
    lastNameColumn.setSortable(false);

    tableView.setItems(new AdapterFactoryObservableList<Object>(adapterFactory, contactsManager.getRootGroup()));
View Full Code Here

TOP

Related Classes of at.bestsolution.efxclipse.runtime.emf.edit.ui.dnd.CellDragAdapter

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.