Package com.vaadin.event.dd.acceptcriteria

Examples of com.vaadin.event.dd.acceptcriteria.SourceIs


        source2.setDragMode(TableDragMode.ROW);

        target.setDropHandler(new DropHandler() {
            @Override
            public AcceptCriterion getAcceptCriterion() {
                return new SourceIs(source1, source2);
            }

            @Override
            public void drop(DragAndDropEvent event) {
                TableTransferable transferable = (TableTransferable) event
View Full Code Here


        source2.setDragMode(TableDragMode.ROW);

        target.setDropHandler(new DropHandler() {
            @Override
            public AcceptCriterion getAcceptCriterion() {
                return new SourceIs(source1, source2);
            }

            @Override
            public void drop(DragAndDropEvent event) {
                TableTransferable transferable = (TableTransferable) event
View Full Code Here

         * Make table rows draggable
         */
        table.setDragMode(Table.TableDragMode.ROW);

        TargetItemAllowsChildren onNode = TargetItemAllowsChildren.get();
        SourceIs fromTable = new SourceIs(table);

        SourceIs fromTree = new SourceIs(tree1);
        final Or fromTree1OrTable = new Or(fromTable, fromTree);
        // Or could in the case be replaced with, keeping here as an example and
        // test
        @SuppressWarnings("unused")
        SourceIs treeOrTable = new SourceIs(table, tree1);

        final And and = new And(fromTree1OrTable, onNode);

        DropHandler dropHandler = new DropHandler() {

View Full Code Here

         */
        table.setDragMode(Table.TableDragMode.ROW);

        table.setDropHandler(new DropHandler() {
            // accept only drags from this table
            AcceptCriterion crit = new SourceIs(table);

            @Override
            public AcceptCriterion getAcceptCriterion() {
                return crit;
            }
View Full Code Here

         */
        table.setDragMode(Table.TableDragMode.ROW);

        table.setDropHandler(new DropHandler() {
            // accept only drags from this table
            AcceptCriterion crit = new SourceIs(table);

            @Override
            public AcceptCriterion getAcceptCriterion() {
                return crit;
            }
View Full Code Here

    stepEditorWindow.deleteTreeItem(sourceItemId);
  }

  public AcceptCriterion getAcceptCriterion() {
    return new And(new SourceIs(stepTree), AcceptItem.ALL);
  }
View Full Code Here

TOP

Related Classes of com.vaadin.event.dd.acceptcriteria.SourceIs

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.