BrightSide Workbench Full Report + Source Code
org.turro.zkoss.util.ComponentIterator< T > Class Template Referenceabstract

Public Member Functions

 ComponentIterator (Component component)
 

Protected Member Functions

final void checkComponent (Component comp)
 
abstract void doComponent (T component)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Parameters
<T>

Definition at line 28 of file ComponentIterator.java.

Constructor & Destructor Documentation

◆ ComponentIterator()

Definition at line 32 of file ComponentIterator.java.

32  {
33  this.jclass = (Class<T>) ((ParameterizedType) getClass()
34  .getGenericSuperclass()).getActualTypeArguments()[0];
35  checkComponent(component);
36  }
final void checkComponent(Component comp)
Here is the call graph for this function:

Member Function Documentation

◆ checkComponent()

final void org.turro.zkoss.util.ComponentIterator< T >.checkComponent ( Component  comp)
protected

Definition at line 38 of file ComponentIterator.java.

38  {
39  if(jclass.isAssignableFrom(comp.getClass())) {
40  doComponent((T) comp);
41  }
42  for(Object obj : comp.getChildren()) {
43  if(obj instanceof Component) {
44  checkComponent((Component) obj);
45  }
46  }
47  }
abstract void doComponent(T component)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ doComponent()

abstract void org.turro.zkoss.util.ComponentIterator< T >.doComponent ( component)
abstractprotected
Here is the caller graph for this function:

The documentation for this class was generated from the following file: