public class QuicklookProvider extends Object implements DataProvider
Modifier and Type | Class and Description |
---|---|
static class |
QuicklookProvider.QuickLookEditor |
Constructor and Description |
---|
QuicklookProvider(int maxWidth) |
Modifier and Type | Method and Description |
---|---|
void |
cleanUp(RepositoryEntry entry,
Repository repository)
Implementation should delete all stored data.
|
void |
createData(RepositoryEntry entry,
Repository repository)
Implementation should create the data this
DataProvider provides. |
Comparator |
getComparator()
Returns the
Comparator for the data provided by this DataProvider . |
Object |
getData(RepositoryEntry entry,
Repository repository)
Returns the data which is provided by this implementation.
|
TableColumn |
getTableColumn()
Returns a
TableColumn which defines the UI representation of the provided data within a
Table . |
boolean |
mustCreateData(RepositoryEntry entry,
Repository repository)
Implementation should check if the data this
DataProvider provides must be created, or if it is
already stored. |
public boolean mustCreateData(RepositoryEntry entry, Repository repository)
DataProvider
DataProvider
provides must be created, or if it is
already stored.mustCreateData
in interface DataProvider
entry
- the entry for which the data shall be provided.repository
- the repsoitory containing the entry.public void createData(RepositoryEntry entry, Repository repository) throws IOException
DataProvider
DataProvider
provides.
Also the created should be stored for performance reasons.
Created data can be stored into a PropertyMap
retrieved by calling
Repository.getPropertyMap()
or in a directory retrieved from
Repository.getStorageDir()
.createData
in interface DataProvider
entry
- the entry for which the data shall be provided.repository
- the repository containing the entry. // todo - (from nf) for what? entry knows it repository!IOException
- if an error occurs during creating the data.public Object getData(RepositoryEntry entry, Repository repository) throws IOException
DataProvider
getData
in interface DataProvider
entry
- the entry for which the data shall be provided.repository
- the repository containing the entry. // todo - (from nf) for what? entry knows it repository!IOException
- if an error occurs during providing the data.public Comparator getComparator()
Comparator
for the data provided by this DataProvider
.getComparator
in interface DataProvider
public void cleanUp(RepositoryEntry entry, Repository repository)
DataProvider
cleanUp
in interface DataProvider
entry
- the entry for which the data was provided.repository
- the repository contained the entry. // todo - (from nf) for what? entry knows it repository!public TableColumn getTableColumn()
DataProvider
TableColumn
which defines the UI representation of the provided data within a
Table
.getTableColumn
in interface DataProvider
TableColumn
.Copyright © 2002–2014 Brockmann Consult GmbH. All rights reserved.