litesoft
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
package org.litesoft.GWT.forms.client.nonpublic;
import java.util.*;
import org.litesoft.ui.def.*;
import org.litesoft.ui.def.nonpublic.support.*;
public class HorizontalPeerDeterminer implements Iterator
{
protected UiDef[] mChildDefs;
private int mNextIndex = 0;
protected boolean mHorizontalPeers;
public HorizontalPeerDeterminer( UiContainerMarker pUiDef, boolean pHorizontalPeers )
{
mChildDefs = pUiDef.getChildrenHelper().getChildren();
mHorizontalPeers = pHorizontalPeers;
}
public boolean hasNext()
{
return mNextIndex < mChildDefs.length;
}
public Object next()
{
if ( hasNext() )
{
return mChildDefs[mNextIndex++];
}
throw new NoSuchElementException();
}
public void remove()
{
throw new UnsupportedOperationException(
"remove should never have been in the iterator, but then Josh knows better that the GOF" );
}
public boolean hasHorizontalPeer()
{
return mHorizontalPeers;
}
}
|
Revision |
Author |
Commited |
Message |
2
|
GeorgeS
|
Sun 07 Feb, 2010 12:50:58 +0000 |
|