|
|||||||||
| 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.CharModelCurator
public abstract class CharModelCurator
This class of modules curates a subclass of character models for use in calculation routines.
| Field Summary |
|---|
| Fields inherited from class mesquite.lib.MesquiteModule |
|---|
author, browserString, checkMethodsAtStartup, hiredAsDefaultInScripting, lastResult, lastResultString, logWindow, mesquiteDirectory, mesquiteDirectoryPath, mesquiteTrunk, moduleInfo, prefsDirectory, proj, textEdgeCompensationHeight, textEdgeCompensationWidth, totalFinalized, userDirectory |
| Fields inherited from class mesquite.lib.EmployerEmployee |
|---|
employees, employer, startupBailOut, stringPos, suppressHireQueries, totalCreated, 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 | |
|---|---|
CharModelCurator()
|
|
| Method Summary | |
|---|---|
abstract boolean |
curatesModelClass(java.lang.Class modelClass)
|
void |
disposeModel(CharacterModel model)
|
void |
disposing(java.lang.Object obj)
passes which object was disposed |
java.lang.Object |
doCommand(java.lang.String commandName,
java.lang.String arguments,
CommandChecker checker)
A request for the MesquiteModule to perform a command. |
MesquiteModule |
editModelNonModal(CharacterModel model,
ObjectContainer window)
Edit model. |
void |
employeeQuit(MesquiteModule m)
Generated by an employee who quit. |
void |
endJob()
endJob is called as a module is quitting; modules should put their clean up code here. |
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. |
protected CharacterModel |
getModel(int i)
|
abstract java.lang.Class |
getModelClass()
|
protected int |
getModelNumber(CharacterModel model)
|
abstract java.lang.String |
getNameOfModelClass()
Edit model. |
abstract java.lang.String |
getNEXUSNameOfModelClass()
|
Snapshot |
getSnapshot(MesquiteFile file)
Return Mesquite commands that will put the module (approximately) back into its current state. |
protected MesquiteWindow |
getWindow(int i)
|
protected MesquiteModule |
getWindowHolder(int i)
|
boolean |
isSubstantive()
returns whether this module does substantive calculations affecting analysis results, or only a graphical/UI/input-output module |
abstract CharacterModel |
makeNewModel(java.lang.String name)
Make new model and return (don't add to file or show to edit) |
boolean |
okToDispose(java.lang.Object obj,
int queryUser)
Asks whether it's ok to delete the object as far as the listener is concerned (e.g., is it in use?) |
abstract CharacterModel |
readCharacterModel(java.lang.String name,
MesquiteInteger stringPos,
java.lang.String description,
int format)
|
boolean |
requestPrimaryChoice()
returns whether this module is requesting to appear as a primary choice |
MesquiteModule |
showEditor(CharacterModel model)
Edit model. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CharModelCurator()
| Method Detail |
|---|
public java.lang.Class getDutyClass()
MesquiteModule
getDutyClass in class MesquiteModulepublic java.lang.String getDutyName()
MesquiteModule
getDutyName in class MesquiteModulepublic abstract java.lang.String getNameOfModelClass()
public abstract java.lang.String getNEXUSNameOfModelClass()
public abstract boolean curatesModelClass(java.lang.Class modelClass)
public abstract java.lang.Class getModelClass()
public abstract CharacterModel makeNewModel(java.lang.String name)
public abstract CharacterModel readCharacterModel(java.lang.String name,
MesquiteInteger stringPos,
java.lang.String description,
int format)
public boolean isSubstantive()
MesquiteModule
isSubstantive in class MesquiteModulepublic void endJob()
MesquiteModule
endJob in class MesquiteModulepublic boolean requestPrimaryChoice()
requestPrimaryChoice in class MesquiteModuleprotected MesquiteWindow getWindow(int i)
protected MesquiteModule getWindowHolder(int i)
protected CharacterModel getModel(int i)
protected int getModelNumber(CharacterModel model)
public void employeeQuit(MesquiteModule m)
MesquiteModule
employeeQuit in class MesquiteModulepublic void disposing(java.lang.Object obj)
disposing in interface MesquiteListenerdisposing in class MesquiteModule
public boolean okToDispose(java.lang.Object obj,
int queryUser)
okToDispose in interface MesquiteListenerokToDispose in class MesquiteModulepublic void disposeModel(CharacterModel model)
public Snapshot getSnapshot(MesquiteFile file)
MesquiteModule
getSnapshot in class MesquiteModule
public java.lang.Object doCommand(java.lang.String commandName,
java.lang.String arguments,
CommandChecker checker)
MesquiteModule
doCommand in interface CommandabledoCommand in class MesquiteModule
public MesquiteModule editModelNonModal(CharacterModel model,
ObjectContainer window)
public MesquiteModule showEditor(CharacterModel model)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||