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

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

       */
      public void setEnableColumnReorder(boolean enable) {
        this.enableColumnReorder = enable;

        if (enable && reorderer == null) {
          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

            // the panel that will hold the chart

            //panel.setCollapsible(true);
            dbg.debug("seriesSetCount=" + result.size());

            new Draggable(panel, panel.getHeader()).setUseProxy(false);
            final Resizable resize = new Resizable(panel, Dir.E, Dir.SE, Dir.S);
            resize.setMinHeight(400);
            resize.setMinWidth(400);
            panel.setLayoutData(HasHorizontalAlignment.ALIGN_LEFT);
            panel.getElement().getStyle().setMargin(2, Unit.PX);
    View Full Code Here

    Examples of net.mygwt.ui.client.fx.Draggable

            }
          }

        };

        draggable = new Draggable(this, header);
        draggable.useProxy = false;
        draggable.addListener(Events.DragStart, dragListener);
        draggable.addListener(Events.DragEnd, dragListener);

        shadow = new Shadow(shadowPosition);
    View Full Code Here

    Examples of org.olat.core.gui.control.dragdrop.Draggable

          DroppableImpl di = dragAndDropImpl.getDroppableImpl();
          if (di != null) {
            String dropid = ureq.getParameter("v");
            List accDrags = di.getAccepted();
            for (Iterator it_accdrags = accDrags.iterator(); it_accdrags.hasNext();) {
              Draggable dr = (Draggable) it_accdrags.next();
              DragSource ds = dr.find(dropid);
              if (ds != null) {
                // found!
                fireEvent(ureq, new DropEvent(ds, null));
                return;
              }
    View Full Code Here

    Examples of org.olat.core.gui.control.dragdrop.Draggable

      public DragAndDrop getDragAndDrop() {
        // a space saver, since only a few panels will support drag and drop.
        if (dragAndDropImpl == null) {
          dragAndDropImpl = new DragAndDropImpl(new DraggableCreator() {
            public Draggable createDraggable() {
              Draggable drag = new Draggable() {
                public List getContainerIds() {
                  return Panel.this.draggableGetContainerIds();
                }

                public DragSource find(String dragElementId) {
    View Full Code Here

    Examples of org.richfaces.component.Draggable

                  acceptedTypes, dropValue);
           
            context.getViewRoot().invokeOnComponent(context, dragSourceId,
              new ContextCallbackWrapper(draggableDecoderContextCallback));
         
            Draggable draggable = draggableDecoderContextCallback.getDraggable();
            if (draggable != null) {
              if (draggableDecoderContextCallback.isValid()) {
                DropEvent dropEvent = new DropEvent(component);
                dropEvent.setDraggableSource(draggable);
                dropEvent.setDragType(draggableDecoderContextCallback.getDragType());
    View Full Code Here

    Examples of org.richfaces.component.Draggable

          };
      }
     
      public ScriptOptions buildOptions(FacesContext context, UIComponent component) {
        if (component instanceof Draggable) {
          Draggable draggable = (Draggable) component;
         
          DraggableOptions options =  new DraggableOptions(draggable);

          Map eventOptions = AjaxRendererUtils.buildEventOptions(context, component,
            Collections.singletonMap(DRAG_SOURCE_ID, (Object) component.getClientId(context)));
          Map parameters = (Map) eventOptions.get("parameters");

          if (parameters == null) {
            parameters = new HashMap();
          }
         
          options.addOption("parameters", parameters);
         
          String indicatorId = draggable.getResolvedDragIndicator(context);
          if (indicatorId == null) {
            String simpleId = draggable.getDragIndicator();
            if (simpleId != null) {
              UIComponent indicator = RendererUtils.getInstance().findComponentFor(component, simpleId);
              if (indicator != null) {
                indicatorId = indicator.getClientId(context);
              }
    View Full Code Here

    Examples of org.richfaces.component.Draggable

          components.put(targetId, target);
        } else {
          //check queued mail lists for current component
          final EventInfoStructure eventInfo = (EventInfoStructure) queuedMap.get(targetId);
          if (eventInfo != null) {
            Draggable draggable;
            Dropzone dropzone;
           
            final EventInfoStructure dragEventInfo = isDraggable ? eventInfo : new EventInfoStructure(dndEvent, callback, type, value);
            final EventInfoStructure dropEventInfo = isDraggable ? new EventInfoStructure(dndEvent, callback, type, value) : eventInfo;
           
    View Full Code Here

    Examples of org.richfaces.component.Draggable

         
          if (compositeRenderer != null) {
            compositeRenderer.contributorDecodeCallback(component, context, this, dropTargetId);
          }

          Draggable draggable = (Draggable) component;
         
          eventsExchanger.mailEvent(dropTargetId, component,
              context, new DragEvent(component), dragEventsCallback, draggable.getDragType(),
              draggable.getDragValue(), true);
        }
      } 
    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.