<?xml version="1.0" encoding="UTF-8"?>
<response>
  <status>success</status>
  <result>
    <project>
      <id>388091</id>
      <name>wicket-dnd</name>
      <created_at>2009-08-18T04:46:27Z</created_at>
      <updated_at>2009-10-23T19:08:26Z</updated_at>
      <description>A generic Drag&amp;Drop framework for Wicket: 

operate on any markup element via selectors drag and drop between any Wicket components vertical, horizontal and hierarchical structured markup (i.e. trees) drag initiators (a.k.a. handles) common desktop metaphors with 'MOVE', 'COPY' and 'LINK' operations transfer types themeable works in Firefox, Safari, Chrome, IE and Opera See our live examples on http://wicket-dnd.appspot.com/ (beware - very slow!). 

Theme your DnDAdd a theme to your pages to be used for DnD, e.g. the WindowsTheme: 

add(CSSPackageResource.getHeaderContribution(new WindowsTheme()));Drag sourceAdd a DragSource behavior to enable a container for drags: 

container.add(new DragSource(Operation.MOVE) {
  public void onAfterDrop(AjaxRequestTarget target, Transfer transfer) {
    // remove transfer data
  }
}.drag(&quot;tr&quot;));In this example only a MOVE operation is allowed. Drags are initiated on  tags. 

Drop targetAdd a DropTarget behavior to enable a container for drops: 

container.add(new DropTarget(Operation.MOVE, Operation.COPY) {
  public void onDrop(AjaxRequestTarget target, Transfer transfer, Location location) {
    // add transfer data
  }
}.dropCenter(&quot;tr&quot;));In this example MOVE and COPY operations are allowed. Drops are performed on center of  tags, the Location holds a reference to the actual component the transfer was dropped on.</description>
      <homepage_url>http://code.google.com/p/wicket-dnd/</homepage_url>
      <download_url></download_url>
      <url_name>wicket-dnd</url_name>
      <user_count>0</user_count>
      <average_rating></average_rating>
      <rating_count>0</rating_count>
      <analysis_id></analysis_id>
      <licenses>
        <license>
          <name>apache_2</name>
          <nice_name>Apache License 2.0</nice_name>
        </license>
      </licenses>
    </project>
  </result>
</response>
