Examples of DragHandler

NOTE: Fundamentally, the active action is determined by the drop handler in {@link DropTargetDragEvent#acceptDrag}, but often client code simply relies on {@link DropTargetDragEvent#getDropAction}.

Examples of com.sencha.gxt.fx.client.DragHandler

    draggable = new Draggable(this);
    draggable.setUpdateZIndex(false);
    draggable.setStartDragDistance(0);
    draggable.setProxyStyle(appearance.proxyClass());

    DragHandler dragHandler = new DragHandler() {
      @Override
      public void onDragCancel(DragCancelEvent event) {
        onCancelDrag(event);
      }
View Full Code Here

Examples of com.sencha.gxt.fx.client.DragHandler

   * @param widget the widget to serve as the starting point of a drag operation
   */
  public DragSource(Widget widget) {
    this.widget = widget;

    handler = new DragHandler() {

      public void onDragCancel(DragCancelEvent event) {
        onDraggableDragCancel(event);
      };

View Full Code Here

Examples of com.sencha.gxt.fx.client.DragHandler

    draggable = new Draggable(this);
    draggable.setUpdateZIndex(false);
    draggable.setStartDragDistance(0);
    draggable.setProxyStyle(appearance.proxyClass());

    DragHandler dragHandler = new DragHandler() {
      @Override
      public void onDragCancel(DragCancelEvent event) {
        onCancelDrag(event);
      }
View Full Code Here

Examples of com.sencha.gxt.fx.client.DragHandler

      con.getElement().getStyle().setProperty("padding", spacing + "px 0 0 " + spacing + "px");
    }
  }

  protected DragHandler createHandler() {
    return new DragHandler() {

      @Override
      public void onDragCancel(DragCancelEvent event) {
        onPortletDragCancel(event);
      }
View Full Code Here

Examples of com.sencha.gxt.fx.client.DragHandler

      con.getElement().getStyle().setProperty("padding", spacing + "px 0 0 " + spacing + "px");
    }
  }

  protected DragHandler createHandler() {
    return new DragHandler() {

      @Override
      public void onDragCancel(DragCancelEvent event) {
        onPortletDragCancel(event);
      }
View Full Code Here

Examples of com.sencha.gxt.fx.client.DragHandler

      reorderer.setUseProxy(true);
      reorderer.setSizeProxyToSource(false);
      reorderer.setProxy(StatusProxy.get().getElement());
      reorderer.setMoveAfterProxyDrag(false);

      reorderer.addDragHandler(new DragHandler() {
        private Head active;
        private int newIndex = -1;
        private Head start;
        private XElement statusIndicatorBottom;
        private XElement statusIndicatorTop;
View Full Code Here

Examples of com.sun.jna.platform.dnd.DragHandler

    public static class DragLabel extends JLabel {
    private static final long serialVersionUID = 1L;
    private boolean dragging;
        public DragLabel(Icon icon) {
            super(icon);
            new DragHandler(this, DnDConstants.ACTION_COPY_OR_MOVE) {
                protected Icon getDragIcon(DragGestureEvent e, Point imageOffset) {
                    dragging = true;
                    return getIcon();
                }
                public void dragDropEnd(DragSourceDropEvent e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.