Package org.gvsig.app.project
Interface DocumentsContainer
- All Known Subinterfaces:
Project
- All Known Implementing Classes:
DefaultProject
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddDocument(Document document) Adds a document to the projectcreateDocument(String type) getActiveDocument(Class<? extends Document> documentClass) getActiveDocument(String documentTypeName) org.gvsig.andami.ui.mdiManager.IWindowgetActiveWindow(Class<? extends Document> documentClass) getDocument(String name) Returns the document with the name specified by name.getDocument(String name, String type) Returns the document of the type indicated and the name specified by name.getDocument(Predicate<Document> condition) Returns the first document that fit the condition specified.Utility method that call getDocuments(Predicatefilter). getDocuments(Class<? extends Document> documentClass) Utility method that call getDocuments(Predicatefilter). getDocuments(String type) Utility method that call getDocuments(Predicatefilter). getDocuments(Predicate<Document> filter) Return a list of all the documents of the project that meet the specified filter.The list of documents will be ordered alphabetically by the name of the document.getFirstDocument(Class<? extends Document> documentClass) getOpenDocuments(Class<? extends Document> documentClass) Utility method that call getOpenDocuments(Predicatefilter). getOpenDocuments(String type) Utility method that call getOpenDocuments(Predicatefilter). getOpenDocuments(Predicate<Document> filter) Return a list of all open documents of the project that meet the specified filter.The document list follows the same order as the windows of these, being the first in case of complying with the filter, the corresponding to the active window.booleanisEmpty()iterator()voidremoveDocument(Document document) Remove a document of the projectMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.gvsig.tools.observer.Observable
addObserver, deleteObserver, deleteObservers
-
Method Details
-
getDocuments
Return a list of all the documents of the project that meet the specified filter.The list of documents will be ordered alphabetically by the name of the document. If filter is null return all documents.- Parameters:
filter- that determines what documents should be returned.- Returns:
- List of project document that meet the filter.
-
getDocuments
Utility method that call getDocuments(Predicatefilter). - Returns:
- List of project documents.
-
getDocuments
Utility method that call getDocuments(Predicatefilter). - Parameters:
type- of the documents that should return.- Returns:
- List of project documents of this document class.
-
getDocuments
Utility method that call getDocuments(Predicatefilter). - Parameters:
documentClass- of the documents that should return.- Returns:
- List of project documents of this document class.
-
addDocument
Adds a document to the project- Parameters:
document- as Document
-
removeDocument
Remove a document of the project- Parameters:
document- as Document
-
iterator
-
isEmpty
boolean isEmpty() -
getDocument
Returns the document of the type indicated and the name specified by name. If documnt don't exists return null- Parameters:
name- name of the document to retrievetype- name of the type of document to retrieve- Returns:
- Documento
-
getDocument
Returns the document with the name specified by name. If documnt don't exists return null- Parameters:
name-- Returns:
- Document with the name specified by name
-
getDocument
Returns the first document that fit the condition specified. If documnt don't exists return null- Parameters:
condition-- Returns:
- Document that fit the condition specified.
-
getActiveDocument
Document getActiveDocument() -
getActiveDocument
-
getFirstDocument
-
getActiveDocument
-
getActiveWindow
-
createDocument
-
getOpenDocuments
Return a list of all open documents of the project that meet the specified filter.The document list follows the same order as the windows of these, being the first in case of complying with the filter, the corresponding to the active window.- Parameters:
filter- that determines what documents should be returned.- Returns:
- List of project document that meet the filter.
-
getOpenDocuments
Utility method that call getOpenDocuments(Predicatefilter). - Parameters:
documentClass- of the documents that should return.- Returns:
- List of project document of this document class.
-
getOpenDocuments
Utility method that call getOpenDocuments(Predicatefilter). - Parameters:
type- of the documents that should return.- Returns:
- List of project document of this document class.
-