Revision 7543
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/Project.java | ||
---|---|---|
1240 | 1240 |
} |
1241 | 1241 |
return docuArray; |
1242 | 1242 |
} |
1243 |
/** |
|
1244 |
* Devuelve un arrayList con todos los documentos. |
|
1245 |
* |
|
1246 |
* @return Documentos |
|
1247 |
*/ |
|
1243 | 1248 |
public ArrayList getDocuments() { |
1244 | 1249 |
ArrayList docuArray=new ArrayList(); |
1245 | 1250 |
for (int i=0;i<documents.size();i++) { |
... | ... | |
1248 | 1253 |
} |
1249 | 1254 |
return docuArray; |
1250 | 1255 |
} |
1256 |
/** |
|
1257 |
* Inserta un documento. |
|
1258 |
* |
|
1259 |
* @param doc Documento |
|
1260 |
*/ |
|
1251 | 1261 |
public void addDocument(ProjectDocument doc) { |
1252 | 1262 |
documents.add(doc); |
1253 | 1263 |
doc.addPropertyChangeListener(this); |
... | ... | |
1257 | 1267 |
doc.afterAdd(); |
1258 | 1268 |
|
1259 | 1269 |
} |
1260 |
|
|
1270 |
/** |
|
1271 |
* Borra un documento. |
|
1272 |
* |
|
1273 |
* @param doc Documento |
|
1274 |
*/ |
|
1261 | 1275 |
public void delDocument(ProjectDocument doc) { |
1262 | 1276 |
documents.remove(doc); |
1263 | 1277 |
modified = true; |
Also available in: Unified diff