E
- Model component type found in this listpublic interface ComponentListView<E extends ModelComponent> extends ListView<E>, java.util.Collection<E>
Modifier and Type | Method and Description |
---|---|
boolean |
contains(E comp)
Returns true if a particular component is contained in this list.
|
E |
get(int idx)
Get the component at a particular index, or null if there is no such
component.
|
E |
get(java.lang.String name)
Get the component with particular name, or null if there is no such
component.
|
E |
getByNumber(int num)
Get the component with the specified number, or null if there is no such
component.
|
java.lang.String |
getName()
Gets the name of this component list.
|
java.lang.String |
getShortName()
Gets the short name of this component list.
|
int |
indexOf(ModelComponent comp)
Get the index of a particular component in this list, or -1 if the
specified component is not present.
|
java.util.Iterator<E> |
iterator()
Return an iterator over all components in this list.
|
int |
nextComponentNumber()
Returns the number that will be assigned to the next component added to
this list.
|
int |
size()
Get the number of components in this list.
|
java.util.Iterator<E> iterator()
iterator
in interface java.util.Collection<E extends ModelComponent>
iterator
in interface java.lang.Iterable<E extends ModelComponent>
iterator
in interface ListView<E extends ModelComponent>
E get(int idx)
get
in interface ListView<E extends ModelComponent>
idx
- index of the componentE getByNumber(int num)
num
- number of the componentE get(java.lang.String name)
name
- name of the componentint size()
size
in interface java.util.Collection<E extends ModelComponent>
size
in interface ListView<E extends ModelComponent>
int indexOf(ModelComponent comp)
comp
- component to search forboolean contains(E comp)
comp
- component to search forint nextComponentNumber()
java.lang.String getName()
java.lang.String getShortName()