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

          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

        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

        resizeWidget.addListener(Events.Attach, listener);
        resizeWidget.addListener(Events.Detach, listener);
        resizeWidget.addListener(Events.Resize, listener);
        resizeWidget.addListener(Events.Move, listener);

        draggable = new Draggable(this);
        draggable.setUpdateZIndex(false);
        draggable.setStartDragDistance(0);
        draggable.setProxyStyle("x-splitbar-proxy");

        Listener<DragEvent> dragListener = new Listener<DragEvent>() {
    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

       *
       * @return the draggable instance
       */
      public Draggable getDraggable() {
        if (dragger == null && draggable) {
          dragger = new Draggable(this, head);
          dragger.setConstrainClient(getConstrain());
          dragger.setSizeProxyToSource(false);
          dragger.addDragListener(new DragListener() {
            @Override
            public void dragEnd(DragEvent de) {
    View Full Code Here

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

        ghost = ghost();
        if (eventPreview != null && ghost != null) {
          eventPreview.getIgnoreList().add(ghost.dom);
        }
        showWindow(false);
        Draggable d = de.getDraggable();
        d.setProxy(ghost);
      }
    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

        }
      }

      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

       *
       * @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
    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.