|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object project35.tabletDeployment.FileSpaceRegistry
public class FileSpaceRegistry
Keeps track of which files are currently open. FileSpaceRegistry keeps track of fileSpace name - dialog associations, and helps determine the name of new fileSpaces that haven't been populated with a file.
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.
Constructor Summary | |
---|---|
FileSpaceRegistry()
|
Method Summary | |
---|---|
void |
clearList()
|
void |
deregisterFileSpace(FileSpace fileSpace)
|
boolean |
fileAlreadyOpen(java.io.File targetFile)
determines whether the file is already open. |
FileSpace |
getCurrentFileSpace()
|
FileSpace |
getFileSpace(java.lang.String targetFileName)
|
java.util.ArrayList |
getFileSpaceList()
|
boolean |
isFirstFileSpace()
determines whether the first file space has been used. |
void |
registerFileSpaceWithExistingFile(FileSpace fileSpace)
|
void |
registerFileSpaceWithNewFile(RecordModel currentRecordModel)
creates a name of the format: "Untitled + n" where n is the nth dialog created during the session. |
void |
setCurrentFileName(java.lang.String fileName)
|
void |
setCurrentFileSpace(FileSpace currentFileSpace)
|
void |
setFirstFileSpace(boolean isFirstFileSpace)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileSpaceRegistry()
Method Detail |
---|
public FileSpace getCurrentFileSpace()
public boolean isFirstFileSpace()
public java.util.ArrayList getFileSpaceList()
public boolean fileAlreadyOpen(java.io.File targetFile)
public FileSpace getFileSpace(java.lang.String targetFileName)
public void setCurrentFileName(java.lang.String fileName)
public void setFirstFileSpace(boolean isFirstFileSpace)
public void setCurrentFileSpace(FileSpace currentFileSpace)
public void registerFileSpaceWithExistingFile(FileSpace fileSpace)
public void registerFileSpaceWithNewFile(RecordModel currentRecordModel)
public void deregisterFileSpace(FileSpace fileSpace)
public void clearList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |