NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
chensiyu04
Joined: 22 Feb 2012 Posts: 2
|
Posted: Wed Feb 22, 2012 2:29 am Post subject: How to get FilterNode Original?? |
|
|
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
|
Posted: Thu Feb 23, 2012 12:45 pm Post subject: |
|
|
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 |
|
 |
|
|
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
|
|