Package org.richfaces.component

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


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

      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.