Search in sources :

Example 1 with InputPanel

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;
}
Also used : InputPanel(limelight.ui.model.inputs.InputPanel) Panel(limelight.ui.Panel) InputPanel(limelight.ui.model.inputs.InputPanel)

Aggregations

Panel (limelight.ui.Panel)1 InputPanel (limelight.ui.model.inputs.InputPanel)1