public class ArrayResourceList extends ResourceList
ResourceList
class which manages a list of resources predefined as an array
of Resource
objects.Constructor and Description |
---|
ArrayResourceList(Resource[] resources,
Presentation presentation,
ResourceMetaData[] attributeMetaData)
Deprecated.
Constructs a ArrayResourceList object.
|
Modifier and Type | Method and Description |
---|---|
void |
open()
Deprecated.
Opens the list.
|
Resource |
resourceAt(long index)
Deprecated.
Returns the resource specified by the index.
|
protected void |
setArray(Resource[] resources)
Deprecated.
|
addActiveStatusListener, addPropertyChangeListener, addResourceListListener, addVetoableChangeListener, arePropertiesFrozen, close, establishConnection, fireBusy, fireIdle, fireLengthChanged, fireListClosed, fireListCompleted, fireListInError, fireListOpened, firePropertyChange, fireResourceAdded, fireVetoableChange, freezeProperties, getAttributeMetaData, getAttributeMetaData, getListLength, getPresentation, getSelectionMetaData, getSelectionMetaData, getSelectionValue, getSelectionValue, getSortMetaData, getSortMetaData, getSortOrder, getSortValue, getSystem, isBidiEnabled, isComplete, isConnectionEstablished, isInError, isOpen, isResourceAvailable, refreshContents, refreshStatus, removeActiveStatusListener, removePropertyChangeListener, removeResourceListListener, removeVetoableChangeListener, resources, setAttributeMetaData, setPresentation, setSelectionValue, setSelectionValue, setSortOrder, setSortValue, setSystem, toString, waitForComplete, waitForResource
public ArrayResourceList(Resource[] resources, Presentation presentation, ResourceMetaData[] attributeMetaData)
resources
- The array of Resource objects.presentation
- The presentation.attributeMetaData
- The attribute meta data, or null if not applicable.public void open() throws ResourceException
open
in class ResourceList
ResourceException
- If an error occurs.public Resource resourceAt(long index) throws ResourceException
This will implicitly open the list if needed.
resourceAt
in class ResourceList
index
- The index.ResourceException
- If an error occurs.protected void setArray(Resource[] resources)