use of limelight.ui.model.inputs.InputPanel in project limelight by slagyr.
the class StageKeyListener method nextInputPanel.
public static InputPanel nextInputPanel(Panel start) {
InputPanel next = null;
InputPanel first = null;
boolean foundMe = false;
for (Panel panel : start.getRoot()) {
if (panel instanceof InputPanel) {
if (foundMe) {
next = (InputPanel) panel;
break;
} else if (panel == start)
foundMe = true;
if (first == null)
first = (InputPanel) panel;
}
}
if (next != null)
return next;
else
return first;
}
Aggregations