Examples of Draggable

DragCancel : DragEvent(draggable, component, event)
Fires after a drag has been cancelled.
DragEnd : DragEvent(draggable, component, event)
Fires after a drag has ended.
  • com.sencha.gxt.fx.client.Draggable
    Adds drag behavior to any widget. Drag operations can be initiated from the widget itself, or another widget, such as the header in a dialog.

    It is possible to specify event targets that will be ignored. If the target element has the {@link Styles#nodrag()} style (as returned by{@link CommonStyles#get()}) it will not trigger a drag operation.

  • net.mygwt.ui.client.fx.Draggable
    Adds drag behavior to any widget. Drag operations can be initiated from the widget itself, or another widget, such as the header in a dialog.

    It is possible to specify event targets that will be ignored. If the target element has a 'my-nodrag' style it will not trigger a drag operation.

    Events:
    DragStart : (source this, widget this, event)
    Fires after a drag has started.
    • source : this
    • widget : this
    • event : the dom event
    DragEnd : (source this, widget this, event)
    Fires after a drag has ended.
    • source : this
    • widget : this
    • event : the dom event
  • org.olat.core.gui.control.dragdrop.Draggable
    Description:
    TODO: Felix Jost Class Description for Dragabble

    Initial Date: 07.04.2006
    @author Felix Jost

  • org.richfaces.component.Draggable
    Interface for all draggable components. Describe bean properties, implemented by component. @author shura
  • org.springmodules.xt.ajax.action.prototype.scriptaculous.Draggable
    script.aculo.us/scriptaculous/show/Draggable).
    This action uses the Prototype Javascript library and the Scriptaculous Drag and Drop Javascript library, so you need to include them in your web pages. @author Sergio Bossa

  • Examples of com.extjs.gxt.ui.client.fx.Draggable

          cp.addText(TestData.DUMMY_TEXT_SHORT);

          cp.setSize(200, 125);
          cp.setPosition(10, 10  + (i == 1 ? 20 : 0));

          Draggable d = new Draggable(cp);
          if (getParent() instanceof Component) {
            d.setContainer((Component) getParent());
          }
          Resizable r = new Resizable(cp);
          r.setDynamic(i == 1);

          add(cp);
    View Full Code Here

    Examples of com.extjs.gxt.ui.client.fx.Draggable

        cp.setBodyStyleName("pad-text");
        cp.setHeading("Proxy Drag");
        cp.addText(TestData.DUMMY_TEXT_SHORT);
        cp.setWidth(200);

        Draggable d = new Draggable(cp);

        vp.add(cp);

        cp = new ContentPanel();
        cp.setCollapsible(true);
        cp.setBodyStyleName("pad-text");
        cp.setHeading("Direct Drag");
        cp.setIcon(Resources.ICONS.text());
        cp.addText("Drags can only be started from the header.");
        cp.setWidth(200);
        vp.add(cp);

        d = new Draggable(cp, cp.getHeader());
        d.setContainer(this);
        d.setUseProxy(false);

        cp = new ContentPanel();
        cp.setBodyStyleName("pad-text");
        cp.setHeading("Constrain");
        cp.setIcon(Resources.ICONS.text());
        cp.addText("Can only be dragged vertically.");
        cp.setWidth(200);
        vp.add(cp);

        d = new Draggable(cp, cp.getHeader());
        d.setContainer(this);
        d.setConstrainHorizontal(true);

        add(vp);
        setScrollMode(Scroll.AUTO);
      }
    View Full Code Here

    Examples of com.extjs.gxt.ui.client.fx.Draggable

        }
      }

      public void setEnableColumnReorder(boolean enable) {
        if (enable && reorderer == null) {
          reorderer = new Draggable(this);
          reorderer.setUseProxy(true);
          reorderer.setSizeProxyToSource(false);
          reorderer.setMoveAfterProxyDrag(false);
          reorderer.setProxy(StatusProxy.get().el());
          reorderer.addDragListener(new DragListener() {
    View Full Code Here

    Examples of com.extjs.gxt.ui.client.fx.Draggable

          el().setVisibility(false);
          el().setStyleAttribute("backgroundColor", "white");
          el().setStyleAttribute("opacity", "0");

          d = new Draggable(this);
          d.setUseProxy(false);
          d.setConstrainVertical(true);
          d.setStartDragDistance(0);
          d.addDragListener(listener);
        }
    View Full Code Here

    Examples of com.extjs.gxt.ui.client.fx.Draggable

            onDraggableDragStart(de);
          }

        };

        draggable = new Draggable(component);
        draggable.setUseProxy(true);
        draggable.setSizeProxyToSource(false);
        draggable.setMoveAfterProxyDrag(false);
        draggable.addDragListener(listener);
        draggable.setProxy(statusProxy.el());
    View Full Code Here

    Examples of com.extjs.gxt.ui.client.fx.Draggable

      public void setPinned(boolean pinned) {
        this.pinned = pinned;
        String c = pinned ? "default" : "move";
        getHeader().setStyleAttribute("cursor", c);
        if (getData("gxt.draggable") != null) {
          Draggable d = (Draggable) getData("gxt.draggable");
          d.setEnabled(!pinned);
        }
      }
    View Full Code Here

    Examples of com.extjs.gxt.ui.client.fx.Draggable

       * @param portlet the portlet to add
       * @param index the insert index
       * @param column the column to insert into
       */
      public void insert(Portlet portlet, int index, int column) {
        Draggable d = portlet.getData("gxt.draggable");
        if (d == null) {
          d = new Draggable(portlet, portlet.getHeader());
          portlet.setData("gxt.draggable", d);
        }
        d.setUseProxy(true);
        d.removeDragListener(listener);
        d.addDragListener(listener);
        d.setMoveAfterProxyDrag(false);
        d.setSizeProxyToSource(true);
        d.setEnabled(!portlet.isPinned());
        getItem(column).insert(portlet, index, new RowData(1, -1));
        getItem(column).layout();
      }
    View Full Code Here

    Examples of com.extjs.gxt.ui.client.fx.Draggable

       *
       * @param portlet the porlet to remove
       * @param column the column
       */
      public void remove(Portlet portlet, int column) {
        Draggable d = portlet.getData("gxt.draggable");
        if (d != null) {
          d.release();
        }
        portlet.setData("gxt.draggable", null);

        getItem(column).remove(portlet);
      }
    View Full Code Here

    Examples of com.extjs.gxt.ui.client.fx.Draggable

        if (getAriaSupport().getLabelledBy() != null) {
          targetEl.dom.setAttribute("aria-labelledby", getAriaSupport().getLabelledBy());
        }

        if (isDraggable()) {
          drag = new Draggable(thumb);
          drag.setConstrainVertical(!vertical);
          drag.setConstrainHorizontal(vertical);
          drag.setMoveAfterProxyDrag(false);
          drag.setProxy(new El(DOM.createDiv()));
          drag.setStartDragDistance(0);
    View Full Code Here

    Examples of com.extjs.gxt.ui.client.fx.Draggable

            onDraggableDragStart(de);
          }

        };

        draggable = new Draggable(component);
        draggable.setUseProxy(true);
        draggable.setSizeProxyToSource(false);
        draggable.setMoveAfterProxyDrag(false);
        draggable.addDragListener(listener);
        draggable.setProxy(statusProxy.el());
    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.