NetBeans Forums

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

How to get FilterNode Original??

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users
View previous topic :: View next topic  
Author Message
chensiyu04



Joined: 22 Feb 2012
Posts: 2

PostPosted: Wed Feb 22, 2012 2:29 am    Post subject: How to get FilterNode Original?? Reply with quote

hello all.

how to get filternode original , protected Node getOriginal() is protected... how use cookies instead.?? thanks
Back to top
yoadey



Joined: 16 Dec 2011
Posts: 1

PostPosted: Thu Feb 23, 2012 12:45 pm    Post subject: Reply with quote

Hey,

normally you should never use the original node, as you should never cast a node to a specific type.
Instead you should ask the lookup of the node to search for the ability or data you need. For example if you have a node and want some data which is saved in your implementation of a DataObject you could write:
Code:
MyDataObject data = node.getLookup().lookup(MyDataObject.class);
data.getSpecialData();

So the important question is: what do you want to do and why do you think you need the original node? Without that I can't help you anything further.
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