Lines 47-52
Link Here
|
47 |
import java.util.Arrays; |
47 |
import java.util.Arrays; |
48 |
import java.util.Collections; |
48 |
import java.util.Collections; |
49 |
import java.util.HashMap; |
49 |
import java.util.HashMap; |
|
|
50 |
import java.util.List; |
50 |
import java.util.Map; |
51 |
import java.util.Map; |
51 |
import java.util.ResourceBundle; |
52 |
import java.util.ResourceBundle; |
52 |
import java.util.Set; |
53 |
import java.util.Set; |
Lines 1708-1713
Link Here
|
1708 |
index = 0; |
1709 |
index = 0; |
1709 |
} |
1710 |
} |
1710 |
|
1711 |
|
|
|
1712 |
/** |
1713 |
* Construct an iterator. |
1714 |
* @param panels the list of panels to use |
1715 |
* @since XXX |
1716 |
*/ |
1717 |
@SuppressWarnings("unchecked") // exists so that other code does not have to do it |
1718 |
public ArrayIterator(List<Panel<Data>> panels) { |
1719 |
this.panels = panels.toArray(new Panel[panels.size()]); |
1720 |
index = 0; |
1721 |
} |
1722 |
|
1711 |
/** Allows subclasses to initialize their arrays of panels when |
1723 |
/** Allows subclasses to initialize their arrays of panels when |
1712 |
* constructed using default constructor. |
1724 |
* constructed using default constructor. |
1713 |
* (for example during deserialization. |
1725 |
* (for example during deserialization. |
Lines 2733-2739
Link Here
|
2733 |
return new SettingsAndIterator<WizardDescriptor>(iterator, null, true); |
2745 |
return new SettingsAndIterator<WizardDescriptor>(iterator, null, true); |
2734 |
} |
2746 |
} |
2735 |
public static SettingsAndIterator<Void> empty() { |
2747 |
public static SettingsAndIterator<Void> empty() { |
2736 |
return new SettingsAndIterator(new EmptyPanel(), (Void)null); |
2748 |
return new SettingsAndIterator<Void>(new EmptyPanel(), (Void)null); |
2737 |
} |
2749 |
} |
2738 |
|
2750 |
|
2739 |
public Iterator<Data> getIterator(WizardDescriptor caller) { |
2751 |
public Iterator<Data> getIterator(WizardDescriptor caller) { |