on 01-09-2006 8:49 PM
I got a collection of nodes. I'm parsing the elements in a loop like this:
for(int i=0;i<wdContext.nodePersons().size();i++) {
elmt = wdContext.nodePersons().getPersonsElementAt(i);
if(elmt.getPersonID().equals(ID)) {
If the IF statement is true, i want that element to be put at det first index. Can someone please helpe me out fixing this?
wdContext.nodePersons().moveElement(i, 0);
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.