Difference: DpMenusToolbarsDragDrop (8 vs. 9)

Revision 92013-10-18 - JaimeSaiz

Line: 1 to 1
 
META TOPICPARENT name="DpHipe"
<-- ANALYTICS CODE - DO NOT EDIT -->
<-- Google Analytics script BEGIN -->
<-- Google Analytics script END -->
Line: 15 to 15
 
Line: 138 to 138
 

Drag & drop

Changed:
<
<
HIPE uses a simplified support for drag & drop, whose main target is to be able to pass references from the Jython namespace.
>
>
HIPE supports drag & drop of selections.
 
Changed:
<
<
A class that wants to implement the HIPE protocol must implement the DnDSelection interface and declare it to the Java TransferHandler system by registering it:
>
>
A component that wants to enable it must implement the DnDSelection interface and register itself:
 

Changed:
<
<
setTransferHandler(new TransferHandler("variableSelection"));
>
>
SelectionTransferHandler.register(this); // this is the Component being built
 
Deleted:
<
<
This simple mechanism allows for receiving VariableSelection.
 
Changed:
<
<
Legacy user comments

* It would be nice to put a concrete example that works by copying and pasting the code for each functionality -- JeanMichelGlorian - 05 Jan 2012 - 10:58

<--/commentPlugin-->
>
>
The selection type returned by getSelectionType() specifies the kind of selections that can be handled: variables, files...
 
 
This site is powered by the TWiki collaboration platform Powered by Perl