Generic drop support will take at leat two general forms:
  1. Drop operations that insert data into a ComponentView
  2. Drop operations that create new ComponentViews in an EmbeddedObjectSet

Support in the JDK 1.3 timeframe will likely be primarily limited to operations that move data into a bridge-based application. When JDK 1.4 is available on the Mac (May 2002, according to Apple), movement of data within the application should be much simpler. (See DnD tutorial on Sun's site.)

1. Drop operations that insert data into a ComponentView

It should be possible to write generic drop support for:
  • Inserting plain text into JTextComponents
  • Inserting URLs (as text) into JTextComponents
  • Inserting the content of text specified by urls into JTextComponents

2. Drop operations that create new ComponentViews

It should be possible to implement generic drop support for use by ComponentViews for EmbeddedObjectSets that:
  • Copy an EmbeddedObjectDescriptor into the target's set
  • Create a new SharedFile object and associated EmbeddedObjectDescriptor for:
    • application/x-java-file-list
    • application/x-url


/public/projects/bridge/design/Drag and Drop support Login | Web Editor | Full Editor
Last modified 9/11/03 12:53 PM by isenhour (history)
Site contents