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