Tree View Drag'n'Drop with an indicator
Hi,
I'm implementing the drag & drop layer in a plugin containing a Tree View.
Does any one knows how can i add a splitter indicating the place the drop will be while dragging.
Could you please clarify what exactly are you trying to achieve.
Similar Messages
-
Error in drag and drop with a Tree component
Hello, everybody.
I'm doing a drag and drop with two trees.
But, when I drag from a tree to another show this error:
"oracle.job.RowNotFoundException:JBO25020: View line of oracle.jbo.Key[4.4] key not found in ViewTreeNodeRepository13_71."
Besides that, in my property SelectionListerner, when I have this line: "#{bindings.TreeNodeRepository.treeModel.makeCurrent}" there is a warning that says: "Reference makeCurrent not found".
Anyone can help me?
Thanks!Hi,
+Besides that, in my property SelectionListerner, when I have this line: "#{bindings.TreeNodeRepository.treeModel.makeCurrent}" there is a warning that says: "Reference makeCurrent not found".+
Don't worry, its a designtime warning because the EL cannot be resolved. MakeCurrent is a method on the FacesCtrl binding equivalent to ADF, which is applied at runtime and not available at design time
+But, when I drag from a tree to another show this error: "oracle.job.RowNotFoundException:JBO25020: View line of oracle.jbo.Key[4.4] key not found in ViewTreeNodeRepository13_71."+
In drag and drop, ADF Faces performs the drag. However, the rest of the drop handling is up to the developer. Without any more information of what yur drop handler is doing, this question cannot be answered
Frank -
[SOLVED] Thunar 1.6 doesn't drag-and-drop with the right mouse button
Hallo all.
It might be something I've done (though I did delete my ~/.config/Thunar directory before upgrading), but Thunar doesn't let me drag-and-drop with the right mouse button, thus stopping me from copying something instead of moving it, etc. Has anyone else had that too?
Last edited by GordonGR (2012-12-28 14:34:20)Joel wrote:
anonymous_user wrote:Is it supposed to be with the right-mouse button? I always thought drag and drop was done with the left button?
Could be right-hand user
Come on! Read what GordonGR wrote!
Microsoft Windows, Nautilus, the Haiku Tracker, and probably many other file managers have a feature where, when you right-click or middle-click and drag an icon to a new location, a pop-up menu appears and asks what you'd like to do (Move, Copy, Link). I thought I used to use this feature in Thunar too but it seems to have stopped working in recent versions. Has anyone else had any experience with it?
EDIT: Here's random blogger talking about the feature in an older version of Thunar: http://jeromeg.blog.free.fr/index.php?p … and-tricks So that's good, I wasn't just imagining the feature.
Last edited by drcouzelis (2012-12-12 03:45:05) -
Can't Drag and Drop with a Double Tap using Single Finger in Lion?
I installed the Mac OS X Lion two days. But I can't drag and drop with a Double tap using Single Finger, which I used to do in Snow Leopard.
If I choose Three Finger Move, then Swap Between Pages goes back to "Scroll left or right with Two Fingers" that only works with Safari, but doesn't work with Chrome or Firefox.
I tried literally every setting in Trackpad and also checked if there was a override settings and there is no overrride setting.
Would be thankful, if you guys could suggest me what to do?
======================================
My Machine Configuration:
Macbook Pro 13" (mid 2010)
Intel Core 2 Duo 2.4GHz
4GB Ram
Nvidia Geforce 320m
Mac OS X Lion (Installe on a updated Snow Leopard 10.6.8)Hey Serge many thanks for telling me how to do. now its working like previously
I just cheked the Dragging under Trackpad option and unchecked Three Finger Moves. now I can drag and drop with a double tap using single finger.
Thank you guys. You are the best -
Hi, I've been playing around with a trail version of flex and
was interested to know if anybody had tried to implement the drag
and drop functionality of the Tree component to a TileList? After
much messing about I noticed the format of the Tree data in the
DragSource was different to that of other lists. I've tried
overriding the addDragData method to see if I can change the format
of the data although this seems to cause problems when the Drag
complete event is triggered. Any ideas or help would be
appreciated.Hey, Thanks for the reply. Yes this appears to work although
it took a bit of messing around and I still had to override the
dragCompleteHandler method of the Tree component to get the tree
view to update. One issue I do have (This appears to be an issue
with the tree component) is as you drag and drop files across from
one tree to another, when you remove the last child node the parent
node which has a folder icon changes to a document icon. Is there a
way around this? -
File drag and drop with Labview 7 and Mac OS X Tiger?
Hi folks,
I've lost the ability to drag and drop files into front panel file path
controls, since I upgraded to a new OS X version. Specifically:
What used to work:
- Labview 7.0
- Mac OS X 10.3.x
- drag file icon from desktop and drop onto file path control (file path control shows path to dropped file)
New action taken:
- lost old Mac (Titanium) with OS X 10.3.x
- bought new Mac (Aluminum) with OS X 10.4
- installed OS X 10.4 "over" 10.3 disk (did not build from scratch)
What happens now (three days after birth of new system):
- all my past Labview apps still seem to run
- but, if I drag a file from the desktop and drop it onto the file path control I see:
- file path control
"outlines" indicating that it understands the intended drag and drop
action
- when the file is dropped the file path control does not report the new value
- And the file path control still has it's old value
Anyone else seeing this? Am I missing something obvious (Labview or OS X preferences)?
Thanks in advance,
RMPHello,
I don't know how seriously Apple sees the problem, but it doesn't seem plausible that they would rev the OS on account of just this problem with LabVIEW, particularly since we worked around it for the latest version of LabVIEW. I understand you are working with another engineer at NI via direct email regarding this issue, and that is going to be a better forum for discussing the possibility of obtaining the Apple bug report number. In the event R&D is willing to reveal it, I presume they will be more comfortable doing so on a case by case basis, as opposed to posting it on the external discussion forum.
Thank you, and sorry for the inconvenience you have encountered due to this issue.
Best Regards,
JLS
Best,
JLS
Sixclear -
I have a HTML page with an IFrame. Inside the Iframe there is a table with a tree view
<iframe>
<table>
<tr>
<td>
<treeview id="tv1"></treeview>
</td>
</tr>
</table>
</iframe>
In UIA, i am able to traverse till the tree view but not able to see it.
I have used the TreeWalker.RawViewWalker Field to traverse the node from the desktop Automation.RootElement.
I tried to use AutomationElement.FromPoint method to check whether i am able to get that element. Fortunately i was able to get the automation element.
i tried to get the path to root element from the node element using the TreeWalker.RawViewWalker. I was able to get the parent path to the root element.
But trying the reverse way like navigating from root element to tree node, was not getting the element for me.
Please help me with suggestions or inputs to resolve this issue.Thanks Bernard,
It works fine with JInitiator but not working with
the JPI. For JPI what settings I need to do ??hi TKARIM and Bernard, i am having similar problem even with the Bernard's recommended setup. could you post the webutiljini.htm (i presume you are using config=test) ?
i am actually using jinitiator 1.3.1.28 with Oracle HTTP Server of OAS 10gR2) calling Forms Server 6i (f60cgi). After setting up according to Bernard's recommended setup steps, the java console showed that it loaded the icon jar file when it could not read the form, but it skipped the loading of the icon jar file once it read and started the form. How do we specify in the form to pick up the icon from the jar file instead from a directory ? Or do we need to specify ? Any ideas ?
Thx and Regards
dkklau -
Old Drag and Drop With Toast Issue:
I found this link to an old discussion, but it does not resolve my issue:
http://discussions.apple.com/message.jspa?messageID=9282890#9282890
I burnt two nice LightScribe labels, (nice because I cooked 'em twice for extra darkness, which takes time,) and then, after assuming that if I dragged and dropped my iTunes files to the desk top and then to Toast, as the above thread recommended, that since the files were accepted by toast doing things that way, that things were back to normal. I finished two beautiful CD's (I had a lot of work into the design of the labels,) by burning the music on to the disks. Well, my car cd player wouldn't play them, that is not normal, and I have two beautifully useless CD's which were the product of a lot of time and labor not to mention the cost of the disks... I've always been able to play back using the old process, (without the desktop drag and drop step,) - I'm running an iTunes version way beyond when this bug was supposed to be fixed. What do I do? How do I get back to being able to go directly from iTunes to Toast with successful playback? Thanks for your help with this!
Message was edited by: probassistTo anselmo Stiffan:
Which problem did you solve: the double click with one tap or three finger drag? I too have aluminum 2008 MacBook, and I found the preferences and accessibility section but seem to fail in finding the right combo of preferences I'm used to or like. Ok, so the three finger drag is good, but click or tab... drives me bonkers!!! Everything was fine for me even after updating to Mountin Lion back in July 2012, but then all of a sudden in October 'my trackpad doesn't work the same. I don't even want to get on the computer anymore, because I'm annoyed and I cannot click on my user account to login with plugging in a mouse or using keyboard shortcut functions. It's hit or miss with my trackpad working, it freezes after awhile, then I have to plug in the darn mouse. I checked my trackpad firmware, it said up to date....I may have to actually start a new discussion??? But to continue venting... Some menu's need one tap, some require double tap... I cannot use one click unless its set to left or right for alternate menu's. Its just bad in my carpel tunnel and frustrating... I've been searching discussions for similar issues and I saw this. I saw you had an older Mac? It's funny how I switched over 4 years to Mac and mine is almost obsolete? I'm afraid to take it in only to pay more money. I guess my real question besides double clicking option would be if other folks with "the older Aluminum" 2008 MacBook models are having similar problems? -
Re-create Tree control drag and drop move
Hello,
Ive got a tree control where dragEnabled=true and I have
custom handlers for dragEnter, dragOver, and dragDrop so that I can
drag/drop from datagrid's to the tree and it works fine.
The issue is now the built in tree functionality for moving
nodes around within the tree is gone. When I set dropEnabled=true
it breaks the ability to drop from the datagrid to the tree.
How can i keep the ability to move tree nodes within the tree
and also be able to drag and drop from a datagrid onto the tree?
Thanks for any help!While doing more testing I found the solution.. seriously...
dont know how I should have known this one...
on Tree dragOver handler:
if( from.id == 'data_grid' ) event.preventDefault(); -
Drag and Drop with a response in Flash..please help
Hi
I have just started with flash and actionscript3 about 5 weeks ago. I'm in my first year uni and I have a drag and drop assignment (for a kindergarten class). Its "little Red Hen" and they have place the correct picture in right holder.
I have gotten the drag and drop working but I can't seem to figure out how to display a tick when they have place it in the correct holder.
Please help....
This is my script (it may seem messy...still new)
import flash.events.MouseEvent;
/*Mouse Event that ensures the function of hen movieclip to start dragging
when mouse is pressed*/
hen1_mc.addEventListener(MouseEvent.MOUSE_DOWN, dragStart);
hen2_mc.addEventListener(MouseEvent.MOUSE_DOWN, dragStart);
hen3_mc.addEventListener(MouseEvent.MOUSE_DOWN, dragStart);
hen4_mc.addEventListener(MouseEvent.MOUSE_DOWN, dragStart);
hen5_mc.addEventListener(MouseEvent.MOUSE_DOWN, dragStart);
hen6_mc.addEventListener(MouseEvent.MOUSE_DOWN, dragStart);
function dragStart (event: MouseEvent):void
event.target.startDrag();
/*Mouse Event that ensures the function of hen movieclip to drop
when the mouse button is realeased with Condition statement, if
hen = holder, hen snaps into place*/
hen1_mc.addEventListener(MouseEvent.MOUSE_UP, dragStop1);
function dragStop1 (event:MouseEvent):void
hen1_mc.stopDrag();
if (hen1_mc.hitTestObject (holder1_mc)==true)
hen1_mc.x=holder1_mc.x;
hen1_mc.y=holder1_mc.y;
hen2_mc.addEventListener(MouseEvent.MOUSE_UP, dragStop2);
function dragStop2 (event:MouseEvent):void
hen2_mc.stopDrag();
if(hen2_mc.hitTestObject (holder2_mc)==true)
hen2_mc.x=holder2_mc.x;
hen2_mc.y=holder2_mc.y;
hen3_mc.addEventListener(MouseEvent.MOUSE_UP, dragStop3);
function dragStop3 (event:MouseEvent):void
hen3_mc.stopDrag();
if(hen3_mc.hitTestObject (holder3_mc)==true)
hen3_mc.x=holder3_mc.x;
hen3_mc.y=holder3_mc.y;
hen4_mc.addEventListener(MouseEvent.MOUSE_UP, dragStop4);
function dragStop4 (event:MouseEvent):void
hen4_mc.stopDrag();
if(hen4_mc,hitTestObject (holder4_mc)==true)
hen4_mc.x=holder4_mc.x;
hen4_mc.y=holder4_mc.y;
hen5_mc.addEventListener(MouseEvent.MOUSE_UP, dragStop5);
function dragStop5 (event:MouseEvent):void
hen5_mc.stopDrag();
if(hen5_mc.hitTestObject (holder5_mc)==true)
hen5_mc.x=holder5_mc.x;
hen5_mc.y=holder5_mc.y;
hen6_mc.addEventListener(MouseEvent.MOUSE_UP, dragStop6);
function dragStop6 (event:MouseEvent):void
hen6_mc.stopDrag();
if(hen6_mc.hitTestObject (holder6_mc)==true)
hen6_mc.x=holder6_mc.x;
hen6_mc.y=holder6_mc.y;Ok so I figured it out, thank you Ned.
I have made the tick_mc alpha 0 in the beginning of the script and then in my conditional I have made the alpha = 100
So it works...yay!
Now all I have left, if the piece is placed in the wrong holder then it needs to go back into its orignal position.
I have tried
Written above the script
var startX:Number;
var startY:Number;
then just below my dragStart code
startX = event.target.x = startX;
startY = event.target.y = startY;
then after each if statement I placed an else statement
else
hen1_mc.x = startX;
hen1_mc.y = startY;
Its clearly not working, please could you tell me what I am doing wrong?
thank you -
Hi there,
I have JPanel which contains label and image icon and i want to drag them out to another panel and droped there.
Is this really doable with swing.
Please share your thoughts with me
Thanks,
- PrashantThanks Daya,
but I want something which gives me the feel of drag and drop, Dragging is good with your code but when i do drop and that doesn't fall in desired area, i am expecting that to go back on that's previous locaton.
- Prashant -
Drag and Drop with JDK1.4
Hi There,
I want to write an application with an toolbar with a few icons on it. when I drag a icon and drop on a panel it should create a new component[may be a label or a textfield] and place it on the panel. I should be able to drag and drop n number of components onto the panel and move that component in the panel and place them in the position required. Is this possible with java? In the example programs that I have worked with I can just drag and drop text from a textfield or label onto a label or a textfield or drag an image on a label and drop it onto another label.
can anybody give some suggestions or help me with some information
Thanks in advanceHi,
Out of curiosity, have you implement it.
Is it possible to send me the codes...
cheers -
Drag and Drop with snap and response
Ok, first of all I'm new to all of this as I'm just doing some parttime work. I'm trying to make a drag and drop game where the images (imported and made into movie clips with instance names "peg1 - peg7") are to be dragged onto targets (images, made into movie clips with instance names "targetpeg1-targetpet7").
Here's my code and it comes up with two errors -
ReferenceError: Error #1069: Property parent not found on builtin.as$0.MethodClosure and there is no default value.
at Gametake1_fla::MainTimeline/fl_ReleaseToDrop()
Please help!!! Thanks a bunch!
Amy
peg1.buttonMode = true;
peg2.buttonMode = true;
peg3.buttonMode = true;
peg3.buttonMode = true;
peg4.buttonMode = true;
peg5.buttonMode = true;
peg6.buttonMode = true;
peg7.buttonMode = true;
peg1.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
peg2.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
peg3.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
peg4.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
peg5.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
peg6.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
peg7.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
function fl_ClickToDrag(event:MouseEvent):void
event.currentTarget.startDrag();
reply_txt.text = "Drag the image to its correct location"
peg1.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);
peg2.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);
peg3.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);
peg4.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);
peg5.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);
peg6.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);
peg7.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);
function fl_ReleaseToDrop(event:MouseEvent):void
event.currentTarget.stopDrag();
var myTargetName:String = "target" + event.target.name;
var myTarget:DisplayObject = getChildByName("myTargetName");
if (event.target.stopDrag != null && event.target.stopDrag.parent == myTarget){
reply_txt.text = "Good Job!";
} else {
reply_txt.text = "Try Again!";
function checkTarget(drag){
if (drag.hitTest(targetpeg1)) {
trace(drag+" has been dropped on greyCircle");
} else {
trace("you missed the target");use:
peg1.buttonMode = true;
peg2.buttonMode = true;
peg3.buttonMode = true;
peg3.buttonMode = true;
peg4.buttonMode = true;
peg5.buttonMode = true;
peg6.buttonMode = true;
peg7.buttonMode = true;
peg1.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
peg2.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
peg3.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
peg4.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
peg5.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
peg6.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
peg7.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
function fl_ClickToDrag(event:MouseEvent):void
event.currentTarget.startDrag();
reply_txt.text = "Drag the image to its correct location"
peg1.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);
peg2.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);
peg3.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);
peg4.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);
peg5.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);
peg6.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);
peg7.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);
function fl_ReleaseToDrop(event:MouseEvent):void
event.currentTarget.stopDrag();
var myTargetName:String = "target" + event.currentTarget.name;
var myTarget:DisplayObject = getChildByName("myTargetName");
if (event.currentTarget.dropTarget){
if(event.currentTarget.dropTarget.parent == myTarget){
reply_txt.text = "Good Job!";
} else {
reply_txt.text = "Try Again!"; -
Drag and Drop with mx.effects.SoundEffect
I am trying to get a soundeffect to play after a successful
drag and drop operation. Unfortunately, there is no dragDropEffect,
so I cannot use mxml for adding sound when a drop is completed.
(However a sound effect can be used when the user first clicks on
something before drag occurs by using mouseDownEffect.)
Below is my code which attempts doing this from one tile to
another with an image. For debugging purposes I have added an Alert
to show where the sound effect fails to play. Can anyone see what
is wrong with my code?
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
creationComplete="createSoundEffects();" layout="horizontal">
<mx:Script>
<![CDATA[
import mx.managers.DragManager;
import mx.core.DragSource;
import mx.events.DragEvent;
import mx.effects.SoundEffect;
import mx.controls.Alert;
[Embed(source="C:/FLEX_PROJECTS/photos/bin/openWind-Mark_E_B-8076_hifi.mp3")]
private var soundFxOpenSwoosh:Class;
[Embed(source="C:/FLEX_PROJECTS/photos/bin/closeWin-Mark_E_B-8077_hifi.mp3")]
private var soundFxCloseSwoosh:Class;
private var dropSound:SoundEffect;
//create the sound effect when first loaded (see
mx:Application tag) for the creationComplete attribute
private function createSoundEffects():void {
dropSound = new SoundEffect();
dropSound.useDuration = false;
dropSound.loops = 0;
dropSound.source = soundFxCloseSwoosh;
// Drag initiator event handler, called by
// the image's mouseMove event.
private function dragMe(event:MouseEvent, img1:Image,
format:String):void {
var dragInitiator:Image=Image(event.currentTarget);
var ds:DragSource = new DragSource();
ds.addData(img1, format);
var imageProxy:Image = new Image();
imageProxy.source = img1.source;
imageProxy.height = img1.height;
imageProxy.width = img1.width;
imageProxy.alpha=.8;
//Call the drag method from the manager
DragManager.doDrag(dragInitiator, ds, event, imageProxy, 0,
0, 1.00);
private function doDragEnter(event:DragEvent):void {
DragManager.acceptDragDrop(Tile(event.target));
private function doDragDrop():void {
dropSound.end(); //see page 569 in flex2_devguide.pdf for
why .end() is called here
dropSound.play();
Alert.show("dropSound.source is:" + dropSound.source);
]]>
</mx:Script>
<mx:SoundEffect id="dragStartSound" useDuration="false"
loops="0" source="{soundFxOpenSwoosh}"/>
<mx:HDividedBox width="100%" height="100%">
<mx:Tile width="100%" height="100%"
backgroundColor="#999999">
<mx:Image id="myimg" mouseDownEffect="{dragStartSound}"
source=".\2.png" mouseMove="dragMe(event, myimg, 'img');" />
</mx:Tile>
<mx:Tile width="100%" height="100%"
dragEnter="doDragEnter(event)" dragDrop="doDragDrop()"
backgroundColor="#999999">
</mx:Tile>
</mx:HDividedBox>
</mx:Application>Merci beaucoup!!
it is also posible in AWT ?
Message was edited by: roshca181
[email protected] -
Drag and Drop with Capture feature
I would like to set up a drag and drop interaction. The user
will drag several icons and place them on a map. They do not have
to use all the icons provided to them. The map is a rectangle and I
need to capture the icons placed on the map and there locations.
Several pages later I would like the final layout of the map and
icons to appear automatically for them to continue with the
exercise. I’ve set up target interactions before but each
icon had a specific place to complete the drag and drop. Please
advise. The best example I can think of is you have a lot of
players on the side line of a football field. You drag out the
players you want to use. Then in the future in order to make the
next move you need to reference how u set up the field. Does anyone
have an example i can look at?You need to switch previews on for that. More info:
http://docs.info.apple.com/article.html?artnum=304499
Maybe you are looking for
-
Hi Folks, I have triggered the Idoc from R/3 to XI. For the statue 30: I can see the text as: Receiver exists , No filters , No conversion , No version change Please let me know the meaning of this. can we use any code page conversion parameter in AL
-
Using an abstract method to assign an annotion property
Hi Guys I have an annotation for specifiying that a method requires a transation. It's very simple, and looks like this: @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) public @interface TransationRequired PersistenceUnitDescripto
-
Dynamic column in dashboard prompt
Hi all, I have to dispay 'TOP' & 'BOTTOM' dynamic value in the dropdown of dashboard prompt how to create a dynamic column value in dropdown of dashboard prompt?I m trying to create it by writing case in show sql result but not getting correctly acco
-
HI , Using jdev 11.6 . I have requirement to show the table row/column in different color based on the some conditions . i have achieved by overriding the postQuery method and setting the color in transient attribute in voimple. My questions related
-
Hello there, I am going to make process to create Lun on NetApp Simulator. I had NetApp simulator, NetApp SDK server up n running on my server ...i made web target as my SDK API server and my TEO also on same server..http://172.21.***.**:8088 << thi