Package org.richfaces.component

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


      };
  }
 
  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

      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

     
      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

      };
  }
 
  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);
      Map parameters = (Map) eventOptions.get("parameters");

      if (parameters == null) {
        parameters = new HashMap();
      }
     
      String clientId = component.getClientId(context);
     
      parameters.put(DRAG_SOURCE_ID, clientId);
     
      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

      };
  }
 
  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)), true);
      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

              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

     
      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

      };
  }
 
  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);
      Map parameters = (Map) eventOptions.get("parameters");

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

      if (queue != null) {
        Iterator iterator = queue.iterator();
        if (iterator.hasNext()) {
          EventInfoStructure eventInfo = (EventInfoStructure) iterator.next();
         
          Draggable draggable;
          Dropzone dropzone;
         
          Object acceptedTypes;
          Object dragType;
View Full Code Here

TOP

Related Classes of org.richfaces.component.Draggable

Copyright © 2018 www.massapicom. 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.