Class JMenuChildrenFinder

java.lang.Object
org.fest.swing.hierarchy.JMenuChildrenFinder
All Implemented Interfaces:
ChildrenFinderStrategy

final class JMenuChildrenFinder extends Object implements ChildrenFinderStrategy
Understands how to find children components in a JMenu.

Note: Methods in this class are not executed in the event dispatch thread (EDT.) Clients are responsible for invoking them in the EDT.

  • Constructor Details

    • JMenuChildrenFinder

      JMenuChildrenFinder()
  • Method Details

    • nonExplicitChildrenOf

      @RunsInCurrentThread public Collection<Component> nonExplicitChildrenOf(Container c)
      Description copied from interface: ChildrenFinderStrategy
      Returns the non-explicit children of a container. Non-explicit children are components considered to be children of the given container but cannot be obtained by calling Container.getComponents().

      Note: Implementations of this method should not use the event dispatch thread (EDT.) Clients are responsible for invoking this method in the EDT.

      Specified by:
      nonExplicitChildrenOf in interface ChildrenFinderStrategy
      Parameters:
      c - the container whose children we are looking for.
      Returns:
      a collection containing the non-explicit children found.