Package com.extjs.gxt.ui.client.dnd

Examples of com.extjs.gxt.ui.client.dnd.ListViewDropTarget


    if (rendered) {
      if (enableDND && !this.enableDND) {
        sourceFromField = new ListViewDragSource(fromField.getListView());
        sourceToField = new ListViewDragSource(toField.getListView());

        targetFromField = new ListViewDropTarget(fromField.getListView());
        targetFromField.setAutoSelect(true);
        targetToField = new ListViewDropTarget(toField.getListView());
        targetToField.setAutoSelect(true);

        if (mode == Mode.INSERT) {
          targetToField.setAllowSelfAsSource(true);
          targetFromField.setFeedback(Feedback.INSERT);
View Full Code Here


    ListViewDragSource source2 = new ListViewDragSource(toField.getListView());

    source1.setGroup(dndGroup);
    source2.setGroup(dndGroup);

    ListViewDropTarget target1 = new ListViewDropTarget(fromField.getListView());
    target1.setAutoSelect(true);
    ListViewDropTarget target2 = new ListViewDropTarget(toField.getListView());
    target2.setAutoSelect(true);

    target1.setGroup(dndGroup);
    target2.setGroup(dndGroup);

    if (mode == Mode.INSERT) {
      target1.setFeedback(Feedback.INSERT);
      target2.setFeedback(Feedback.INSERT);
    }
  }
View Full Code Here

TOP

Related Classes of com.extjs.gxt.ui.client.dnd.ListViewDropTarget

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.