|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmesquite.lib.MenuOwner
mesquite.lib.EmployerEmployee
mesquite.lib.MesquiteModule
mesquite.lib.duties.FileCoordinator
public abstract class FileCoordinator
The defining superclass for file coordinating modules. A module of this class is the fundamental module second only to the MesquiteTrunk module itself. MesquiteTrunk hires a file coordinating module for each MesquiteProject. Example module: Basic File Coordinator
| Field Summary | |
|---|---|
static int |
totalCreated
|
static int |
totalFinalized
|
| Fields inherited from class mesquite.lib.MesquiteModule |
|---|
author, browserString, checkMethodsAtStartup, hiredAsDefaultInScripting, lastResult, lastResultString, logWindow, mesquiteDirectory, mesquiteDirectoryPath, mesquiteTrunk, moduleInfo, prefsDirectory, proj, textEdgeCompensationHeight, textEdgeCompensationWidth, userDirectory |
| Fields inherited from class mesquite.lib.EmployerEmployee |
|---|
employees, employer, startupBailOut, stringPos, suppressHireQueries, totalDisposed, useOtherChoices |
| Fields inherited from interface mesquite.lib.MesquiteListener |
|---|
ANNOTATION_ADDED, ANNOTATION_CHANGED, ANNOTATION_DELETED, ASSOCIATED_CHANGED, BRANCHES_REARRANGED, BRANCHLENGTHS_CHANGED, COMMAND_CANCELLED, DATA_CHANGED, ELEMENT_CHANGED, ITEMS_ADDED, NAMES_CHANGED, OBJECT_DESTROYED, PARTS_ADDED, PARTS_CHANGED, PARTS_DELETED, PARTS_MOVED, SELECTION_CHANGED, TAXA_SUBSTITUTED, TEXTFIELD_EDITED, UNKNOWN, VALUE_CHANGED |
| Fields inherited from interface mesquite.lib.HNode |
|---|
MOUSEDOWN, MOUSEEXIT, MOUSEMOVE |
| Constructor Summary | |
|---|---|
FileCoordinator()
|
|
| Method Summary | |
|---|---|
abstract boolean |
closeFile(MesquiteFile file)
closes the given file; returns false if cancelled by user. |
abstract MesquiteFile |
createBlankProject()
make a new blank MesquiteProject without user input. |
abstract MesquiteFile |
createProject(java.lang.String pathname,
boolean createTaxaBlockIfNew)
make a new blank MesquiteProject with user input. |
abstract TextDisplayer |
displayFile(MesquiteFile file,
int maxCharacters)
Displays a given text file, local or not; |
abstract TextDisplayer |
displayFile(java.lang.String pathName,
int maxCharacters)
Displays a given local text file; |
abstract TextDisplayer |
displayText(java.lang.String text,
java.lang.String windowTitle)
Displays a given text string; |
abstract void |
elementAdded(FileElement e)
|
abstract void |
elementDisposed(FileElement e)
|
abstract void |
export(FileInterpreterI exporter,
MesquiteFile file,
java.lang.String arguments)
exports the given file; |
void |
finalize()
|
abstract FileInterpreter |
findImporter(MesquiteFile f,
int fileType,
java.lang.String arguments)
|
abstract FileInterpreter |
findImporter(java.lang.String fileContents,
java.lang.String fileName,
int fileType,
java.lang.String arguments,
boolean mustReadFromString,
java.lang.Class stateClass)
|
abstract ElementManager |
findManager(MesquiteModule m,
java.lang.Class fileElementClass)
Finds the first employee in the m's clade of employees that manages a particular subclass of file element |
java.lang.Class |
getDutyClass()
Returns duty Class the module belongs to; should be defined not by module itself but by abstract class representing duty |
java.lang.String |
getDutyName()
Returns the name of the duty; set by the duty-defining library classes. |
abstract Snapshot |
getIDSnapshot(MesquiteFile file)
|
abstract MesquiteFile |
getNEXUSFileForReading(java.lang.String arguments,
java.lang.String message)
|
boolean |
getSearchableAsModule()
|
abstract MesquiteProject |
initiateProject(java.lang.String pathName,
MesquiteFile homeFile)
|
boolean |
isSubstantive()
returns whether this module does substantive calculations affecting analysis results, or only a graphical/UI/input-output module |
abstract MesquiteFile |
readProject(boolean local,
java.lang.String pathname,
java.lang.String arguments)
make a MesquiteProject, reading the information from the given path of a file (if local, interprets as file on disk; if not, as URL specification). |
abstract MesquiteFile |
readProjectGeneral(java.lang.String arguments)
make a MesquiteProject, using a module. |
abstract void |
refreshProjectWindow()
|
abstract void |
saveAllFiles()
Saves all files in the project. |
abstract void |
saveFile(MesquiteFile file)
Saves file. |
abstract void |
writeFile(MesquiteFile file)
write the given file; |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static int totalCreated
public static int totalFinalized
| Constructor Detail |
|---|
public FileCoordinator()
| Method Detail |
|---|
public boolean getSearchableAsModule()
getSearchableAsModule in class EmployerEmployee
public void finalize()
throws java.lang.Throwable
finalize in class MesquiteModulejava.lang.Throwablepublic java.lang.Class getDutyClass()
MesquiteModule
getDutyClass in class MesquiteModulepublic java.lang.String getDutyName()
MesquiteModule
getDutyName in class MesquiteModulepublic abstract void elementAdded(FileElement e)
public abstract void elementDisposed(FileElement e)
public abstract MesquiteFile createProject(java.lang.String pathname,
boolean createTaxaBlockIfNew)
public abstract MesquiteFile createBlankProject()
public abstract void refreshProjectWindow()
public abstract MesquiteFile readProject(boolean local,
java.lang.String pathname,
java.lang.String arguments)
public abstract MesquiteFile readProjectGeneral(java.lang.String arguments)
public abstract MesquiteFile getNEXUSFileForReading(java.lang.String arguments,
java.lang.String message)
public abstract FileInterpreter findImporter(MesquiteFile f,
int fileType,
java.lang.String arguments)
public abstract FileInterpreter findImporter(java.lang.String fileContents,
java.lang.String fileName,
int fileType,
java.lang.String arguments,
boolean mustReadFromString,
java.lang.Class stateClass)
public abstract MesquiteProject initiateProject(java.lang.String pathName,
MesquiteFile homeFile)
public abstract void writeFile(MesquiteFile file)
public abstract void export(FileInterpreterI exporter,
MesquiteFile file,
java.lang.String arguments)
public abstract boolean closeFile(MesquiteFile file)
public abstract void saveFile(MesquiteFile file)
public abstract void saveAllFiles()
public abstract ElementManager findManager(MesquiteModule m,
java.lang.Class fileElementClass)
public abstract TextDisplayer displayFile(java.lang.String pathName,
int maxCharacters)
public abstract TextDisplayer displayFile(MesquiteFile file,
int maxCharacters)
public abstract TextDisplayer displayText(java.lang.String text,
java.lang.String windowTitle)
public boolean isSubstantive()
MesquiteModule
isSubstantive in class MesquiteModulepublic abstract Snapshot getIDSnapshot(MesquiteFile file)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||