I am making a Droppable using the CreateDroppable class. I now want to add a DroppableDropFilter to that Droppable. It seems the only way to do this is to create the Droppable, find it, then add the filter. Is this right, or is there a way to add the filter while building it?
For example, I think what has to happen currently is:
[java]
DroppableDropFilter filter;
CreateDroppable cd = new CreateDroppable();
cd.setId(“blah”);
cd.create(m_nifty, m_screen, parent);
Droppable d = parent.findNiftyControl(“blah”, Droppable.class);
d.addFilter(filter);
[/java]
What I want to do is something like:
[java]
DroppableDropFilter filter;
CreateDroppable cd = new CreateDroppable();
cd.setId(“blah”);
cd.setFilter(filter);
// or cd.set(“filter”, filter); or something similar
cd.create(m_nifty, m_screen, parent);
[/java]
Am I missing something, or is this functionality not implemented?
Thanks!