project35.tabletDeployment
Class FileSpace

java.lang.Object
  extended by project35.tabletDeployment.FileSpace

public class FileSpace
extends java.lang.Object

used to represent a file in TabletProject35Dialog. It was originally developed to help TPD replace Project35's multiple window management with a mechanism that only involved one open window.


Copyright (c) 2008 Kevin Garwood for Project35. The original code was developed by Kevin Garwood for the University of Manchester. Revisions have been made for Project35, a project that is independent of that institution. This code is licensed under the Academic Free License version 3.0. The code attribution for the original code is included here:

Copyright (c) Kevin Garwood and University of Manchester 2007. All rights reserved. Licensed under the Academic Free License version 3.0. For more information on the terms and conditions, please see the file "LICENSE" that is included in this distribution.


Version:
1.0
Author:
Kevin Garwood (kgarwood@users.sourceforge.net)

Constructor Summary
FileSpace(java.io.File file, RecordModel currentRecordModel, boolean isNewFile)
           
 
Method Summary
 RecordModel getCurrentRecordModel()
           
 DocumentMetaData getDocumentMetaData()
           
 java.io.File getFile()
           
 ModelObjectCommentRegistry getModelObjectCommentRegistry()
           
 OntologyContext getOntologyContext()
           
 boolean isNewFile()
          used to help TPD save changes and name new files
 boolean saveChanges()
           
 void setCurrentRecordModel(RecordModel currentRecordModel)
           
 void setDocumentMetaData(DocumentMetaData documentMetaData)
           
 void setFile(java.io.File file)
           
 void setModelObjectCommentRegistry(ModelObjectCommentRegistry modelObjectCommentRegistry)
           
 void setNewFile(boolean isNewFile)
           
 void setOntologyContext(OntologyContext ontologyContext)
           
 void setSaveChanges(boolean saveChanges)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSpace

public FileSpace(java.io.File file,
                 RecordModel currentRecordModel,
                 boolean isNewFile)
Method Detail

getModelObjectCommentRegistry

public ModelObjectCommentRegistry getModelObjectCommentRegistry()
Returns:
a record model comment registry which associates instances of record model with a comment

isNewFile

public boolean isNewFile()
used to help TPD save changes and name new files


getCurrentRecordModel

public RecordModel getCurrentRecordModel()
Returns:
the current record model in the data set

getFile

public java.io.File getFile()
Returns:
the file associated with this file space

getDocumentMetaData

public DocumentMetaData getDocumentMetaData()

saveChanges

public boolean saveChanges()

getOntologyContext

public OntologyContext getOntologyContext()

setModelObjectCommentRegistry

public void setModelObjectCommentRegistry(ModelObjectCommentRegistry modelObjectCommentRegistry)

setOntologyContext

public void setOntologyContext(OntologyContext ontologyContext)

setDocumentMetaData

public void setDocumentMetaData(DocumentMetaData documentMetaData)

setNewFile

public void setNewFile(boolean isNewFile)

setCurrentRecordModel

public void setCurrentRecordModel(RecordModel currentRecordModel)

setFile

public void setFile(java.io.File file)

setSaveChanges

public void setSaveChanges(boolean saveChanges)