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.sencha.gxt.fx.client.Draggable

       *
       * @return the draggable instance
       */
      public Draggable getDraggable() {
        if (dragger == null && draggable) {
          dragger = new Draggable(this, header);
          dragger.setConstrainClient(getConstrain());
          dragger.setSizeProxyToSource(false);
          dragger.addDragHandler(dragHandler);
        }
        return dragger;
    View Full Code Here

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

        ghost = ghost();
        if (eventPreview != null && ghost != null) {
          eventPreview.getIgnoreList().add(ghost.getElement());
        }
        showWindow(false);
        Draggable d = de.getSource();
        d.setProxy(ghost.getElement());
      }
    View Full Code Here

    Examples of com.sencha.gxt.fx.client.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());
          d.setConstrainClient(false);
          portlet.setData("gxt.draggable", d);
        }
        d.setUseProxy(true);

        HandlerRegistration reg = handlerRegistrations.get(portlet.getId());
        if (reg != null) {
          reg.removeHandler();
        }
        d.addDragHandler(handler);

        d.setMoveAfterProxyDrag(false);
        d.setSizeProxyToSource(true);
        d.setEnabled(!portlet.isPinned());

        getWidget(column).insert(portlet, index, new VerticalLayoutData(1, -1, new Margins(0, 0, 10, 0)));
        getWidget(column).forceLayout();
      }
    View Full Code Here

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

       *
       * @param portlet the portlet 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);

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

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

          getElement().setVisibility(false);
          getElement().getStyle().setProperty("backgroundColor", "white");
          getElement().setOpacity(0);

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

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

       *
       * @return the draggable instance
       */
      public Draggable getDraggable() {
        if (dragger == null && draggable) {
          dragger = new Draggable(this, header);
          dragger.setConstrainClient(getConstrain());
          dragger.setSizeProxyToSource(false);
          dragger.addDragHandler(dragHandler);
        }
        return dragger;
    View Full Code Here

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

        ghost = ghost();
        if (eventPreview != null && ghost != null) {
          eventPreview.getIgnoreList().add(ghost.getElement());
        }
        showWindow(false);
        Draggable d = de.getSource();
        d.setProxy(ghost.getElement());
      }
    View Full Code Here

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

        assert columnToHead != null && column < columnToHead.length;
        return columnToHead[column];
      }

      protected Draggable newColumnReorderingDraggable() {
        reorderer = new Draggable(this);
        reorderer.setUseProxy(true);
        reorderer.setSizeProxyToSource(false);
        reorderer.setProxy(StatusProxy.get().getElement());
        reorderer.setMoveAfterProxyDrag(false);
    View Full Code Here

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

          getElement().setVisibility(false);
          getElement().getStyle().setProperty("backgroundColor", "white");
          getElement().setOpacity(0);

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

    Examples of com.sencha.gxt.fx.client.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());
          d.setConstrainClient(false);
          portlet.setData("gxt.draggable", d);
        }
        d.setUseProxy(true);

        HandlerRegistration reg = handlerRegistrations.get(portlet.getId());
        if (reg != null) {
          reg.removeHandler();
        }
        d.addDragHandler(handler);

        d.setMoveAfterProxyDrag(false);
        d.setSizeProxyToSource(true);
        d.setEnabled(!portlet.isPinned());

        getWidget(column).insert(portlet, index, new VerticalLayoutData(1, -1, new Margins(0, 0, 10, 0)));
        getWidget(column).forceLayout();
      }
    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.