NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

[platform-dev] Droppable palette

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users
View previous topic :: View next topic  
Author Message
Dimas Yusuf Danurwenda
Posted via mailing list.





PostPosted: Fri Apr 06, 2012 6:32 pm    Post subject: [platform-dev] Droppable palette Reply with quote

Hello again.

I created a module that provide a children for project's Node in project explorer. This node children will contain images file, let say .jpg and .png files. On the other hand, I love to use this feature when adding files to Java package node on Project's explorer : select the files' icon from your OS's explorer and then drag it to the package node.
1. How can I filter the dropped object, such that it will create new DataObject and FileObject only for images file? A simple answer may sounds like "look at the file extension", but I have no idea where to implement that answer Sad

I read this http://platform.netbeans.org/tutorials/nbm-visual_library.html and this palette concept is really a must-have for my app.
2. Done filtering objects as I mentioned in (1) above, I want these images to be added directly to palette. Is it possible? (to simplify, there'll be only one Category in the palette)
3. Here comes the subject : I wonder if it's possible for user to drag image files' icon from the OS's explorer, drop it on the palette, and it triggers the step (1) and (2) above?

I appreciate any suggestion. Thanks before Smile

--
Dimas Yusuf Danurwenda
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo