org.eggframework2.view.utils
Class ElementSearcher

java.lang.Object
  extended by org.eggframework2.view.utils.ElementSearcher

public class ElementSearcher
extends java.lang.Object

[PL] Użyteczna klasa wyszukująca elementów we wskazanym elemencie.

Author:
Jacek Olszak

Nested Class Summary
static class ElementSearcher.SearchElementByIdResult
          [PL] Klasa zawierająca wyniki wywołania metody searchElementById(String, org.eggframework2.view.elements.Parent)
 
Constructor Summary
ElementSearcher()
           
 
Method Summary
static java.util.List<IElement> lookForElementsOfGivenType(java.lang.Class<? extends IElement> type, Parent in)
          [PL] Wyszukuje elementów podanego typu w przekazanym elemencie
static ElementSearcher.SearchElementByIdResult searchElementById(java.lang.String id, Parent in)
          [PL] Wyszukuje elementu o przekaznym id
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementSearcher

public ElementSearcher()
Method Detail

lookForElementsOfGivenType

public static java.util.List<IElement> lookForElementsOfGivenType(java.lang.Class<? extends IElement> type,
                                                                  Parent in)
[PL] Wyszukuje elementów podanego typu w przekazanym elemencie


searchElementById

public static ElementSearcher.SearchElementByIdResult searchElementById(java.lang.String id,
                                                                        Parent in)
[PL] Wyszukuje elementu o przekaznym id

Returns:
[PL] Instancję SearchElementByIdResult zawierającą znaleziony element i jego rodzica lub null gdy nic nie znalazl elementu o podanym id


Copyright © 2010. All Rights Reserved.