litesoft
@ 948
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
package org.litesoft.GWT.client.ui.inspection; public abstract class NthWidgetSelector implements WidgetSelector { private Integer mNth; private int mFound = -1; protected NthWidgetSelector( Integer pNth ) { mNth = pNth; } protected boolean foundNth( boolean pAcceptable ) { if ( !pAcceptable ) { return false; } mFound++; return (mNth == null) || (mFound == mNth); } } |