Class ISelectors


  • public class ISelectors
    extends java.lang.Object
    A util API to seek IComponent by a selector, by its id, or by a path.
    Author:
    jumperchen
    • Constructor Summary

      Constructors 
      Constructor Description
      ISelectors()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T extends IComponent>
      T
      findById​(IComponent root, java.lang.String id)
      Returns the icomponent that seeking from the root icomponent to match its id.
      static ISelector select​(IComponent root)
      Returns the iselector fot the given root context.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ISelectors

        public ISelectors()
    • Method Detail

      • findById

        public static <T extends IComponent> T findById​(IComponent root,
                                                        java.lang.String id)
        Returns the icomponent that seeking from the root icomponent to match its id.
        Parameters:
        root - The root icomponent for seeking
        id - The id of the icomponent to match
      • select

        public static ISelector select​(IComponent root)
        Returns the iselector fot the given root context.
        Parameters:
        root - The root icomponent for seeking