src/main/java/com/spinyowl/legui/component/misc/listener/component/TabKeyEventListener.java
private Component findNext(Component component) {
    if (!component.isVisible()) {
      return null;
    }

    Component next = null;
    if (isFF(component)) {
      next = component;
    }
    if (component.isEmpty()) {
      next = findNextInParent(component, component.getParent(), next);
    } else {
      next = findNextInChildComponents(component.getChildComponents(), next);
      if (next == component) {
        next = findNextInParent(component, component.getParent(), next);
      }
    }
    return next;
  }
/**
   * Used to find next component (components sorted by tab index).
   *
   * @param component current component.
   * @return next component.
   */
Used to find next component (components sorted by tab index).
@param component current component.
@return next component.
Used to find next component ( components sorted by tab index ) . @param component current component . @return next component .
private Component findNext(Component component) {
    if (!component.isVisible()) {
      return null;
    }
    Component next = null;
    if (isFF(component)) {
      next = component;
    }
    if (component.isEmpty()) {
      next = findNextInParent(component, component.getParent(), next);
    } else {
      next = findNextInChildComponents(component.getChildComponents(), next);
      if (next == component) {
        next = findNextInParent(component, component.getParent(), next);
      }
    }
    return next;
  }
private Component findNext ( Component component ) { if ( ! component . isVisible ( ) ) { return null ; } Component next = null ; if ( isFF ( component ) ) { next = component ; } if ( component . isEmpty ( ) ) { next = findNextInParent ( component , component . getParent ( ) , next ) ; } else { next = findNextInChildComponents ( component . getChildComponents ( ) , next ) ; if ( next == component ) { next = findNextInParent ( component , component . getParent ( ) , next ) ; } } return next ; }
Used to find next component (components sorted by tab index).
Used to find next component ( components sorted by tab index ) .