Constructor and Description |
---|
IndexedComponentList(ComponentList<T> list,
String propertyName)
Creates a new instance indexed on properties with the specified name.
|
Modifier and Type | Method and Description |
---|---|
T |
getComponent(String propertyValue)
Returns the first component containing a property with the specified
value.
|
ComponentList<T> |
getComponents(String propertyValue)
Returns a list of components containing a property with the
specified value.
|
public IndexedComponentList(ComponentList<T> list, String propertyName)
list
- a list of componentspropertyName
- the name of the properties to index onpublic ComponentList<T> getComponents(String propertyValue)
propertyValue
- the value of the property contained in the
returned componentspublic T getComponent(String propertyValue)
propertyValue
- the value of the property identified in the returned
component