|
org.openide.loaders 5.9.22 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openide.util.SharedClassObject
org.openide.loaders.DataLoader
org.openide.loaders.MultiFileLoader
public abstract class MultiFileLoader
Loader for any kind of MultiDataObject. It provides
support for recognition of a composite data object and registering
entries into it.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.openide.loaders.DataLoader |
|---|
DataLoader.RecognizedFiles |
| Field Summary |
|---|
| Fields inherited from class org.openide.loaders.DataLoader |
|---|
PROP_ACTIONS, PROP_DISPLAY_NAME |
| Constructor Summary | |
|---|---|
protected |
MultiFileLoader(Class representationClass)
Creates new multi file loader. |
protected |
MultiFileLoader(String representationClassName)
Creates new multi file loader. |
| Method Summary | |
|---|---|
protected abstract MultiDataObject |
createMultiObject(FileObject primaryFile)
Creates the right data object for a given primary file. |
protected abstract MultiDataObject.Entry |
createPrimaryEntry(MultiDataObject obj,
FileObject primaryFile)
Creates the right primary entry for a given primary file. |
protected abstract MultiDataObject.Entry |
createSecondaryEntry(MultiDataObject obj,
FileObject secondaryFile)
Creates a new secondary entry for a given file. |
protected abstract FileObject |
findPrimaryFile(FileObject fo)
For a given file finds the primary file. |
protected DataObject |
handleFindDataObject(FileObject fo,
DataLoader.RecognizedFiles recognized)
Find a data object appropriate to the given file object (as implemented in subclasses). |
| Methods inherited from class org.openide.loaders.DataLoader |
|---|
actionsContext, clearSharedData, defaultActions, defaultDisplayName, findDataObject, getActions, getDisplayName, getLoader, getRepresentationClass, getRepresentationClassName, markFile, readExternal, setActions, setDisplayName, writeExternal |
| Methods inherited from class org.openide.util.SharedClassObject |
|---|
addNotify, addPropertyChangeListener, equals, finalize, findObject, findObject, firePropertyChange, getLock, getProperty, hashCode, initialize, putProperty, putProperty, removeNotify, removePropertyChangeListener, reset, writeReplace |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected MultiFileLoader(Class representationClass)
representationClass - the representation classprotected MultiFileLoader(String representationClassName)
representationClassName - the fully qualified name of the
representation class.| Method Detail |
|---|
protected final DataObject handleFindDataObject(FileObject fo, DataLoader.RecognizedFiles recognized) throws IOException
DataLoader
handleFindDataObject in class DataLoaderfo - file object to recognizerecognized - recognized file buffer
null
DataObjectExistsException - as in #findDataObject
IOException - as in #findDataObjectDataLoader.findDataObject(org.openide.filesystems.FileObject, org.openide.loaders.DataLoader.RecognizedFiles)protected abstract FileObject findPrimaryFile(FileObject fo)
fo - the (secondary) file
null if the file is not
recognized by this loaderprotected abstract MultiDataObject createMultiObject(FileObject primaryFile) throws DataObjectExistsException, IOException
findPrimaryFile(org.openide.filesystems.FileObject).
primaryFile - the primary file
DataObjectExistsException - if the primary file already has a data object
IOExceptionprotected abstract MultiDataObject.Entry createPrimaryEntry(MultiDataObject obj, FileObject primaryFile)
obj - requesting objectprimaryFile - primary file recognized by this loader
protected abstract MultiDataObject.Entry createSecondaryEntry(MultiDataObject obj, FileObject secondaryFile)
obj - requesting objectsecondaryFile - a secondary file
|
org.openide.loaders 5.9.22 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||