All Packages Class Hierarchy This Package Previous Next Index
Class mesquite.lib.FileElement
java.lang.Object
|
+----mesquite.lib.Listened
|
+----mesquite.lib.Associable
|
+----mesquite.lib.AssociableWithSpecs
|
+----mesquite.lib.FileElement
- public class FileElement
- extends mesquite.lib.AssociableWithSpecs
- implements mesquite.lib.Identifiable, mesquite.lib.Listable, mesquite.lib.Renamable, mesquite.lib.FileDirtier, mesquite.lib.HNode, mesquite.lib.Commandable, mesquite.lib.Explainable, mesquite.lib.Annotatable
A class for file elements. It must remember the file to which it is associated.
-
assignedIDNumber
-
-
DIRTY
- Element is dirty (returned by close()).
-
disposed
-
-
doomed
-
-
IN_USE
- Element is in use (returned by close()).
-
name
-
-
OK
- Element was disposed (returned by close()).
-
totalCreated
-
-
FileElement()
-
-
FileElement(int)
-
-
addToBrowserPopup(MesquitePopup)
-
-
addToFile(MesquiteFile, MesquiteProject, ElementManager)
- Adds the element to the given file and project, and assigns it the given manager.
-
deleteMe(boolean)
-
-
dispose()
- Deletes the file element.
-
doCommand(String, String, CommandRecord, CommandChecker)
- Performs command (for Commandable interface)
-
doom()
-
-
fileDirtiedByCommand(MesquiteCommand)
- for FileDirtier interface
-
getExplanation()
- Returns the explanation (e.g., footnote with additional information) of this element
-
getFile()
- Gets file to which the FileElement belongs
-
getFileName()
- Gets name of the file to which the element belongs
-
getHColor()
-
-
getHDaughters()
-
-
getHImage()
-
-
getHMother()
-
-
getHShow()
-
-
getID()
-
-
getManager()
- Returns the FileElement's managing module
-
getName()
- Returns name of this element
-
getNexusBlock()
- Gets the associated NexusBlock of the FileElement
-
getNumSupplements()
-
-
getProject()
- Gets project to which the FileElement belongs
-
getSupplementName(int)
-
-
getTypeName()
- Returns the type of this element (e.g., "Continuous Data Matrix")
-
hNodeAction(Container, int, int, int)
-
-
hSupplementTouched(int)
-
-
isDoomed()
-
-
okToClose(int)
- NOT YET FUNCTIONING If queryUser is true, then
if there is a problem with deletion the user will be queried.
-
setFile(MesquiteFile)
- Sets the file to which the FileElement belongs
-
setManager(ElementManager)
- Sets the FileElement's managing module
-
setName(String)
- Sets the name of this element
-
setProject(MesquiteProject)
- Sets project to which the FileElement belongs
OK
public static final int OK
- Element was disposed (returned by close()).
IN_USE
public static final int IN_USE
- Element is in use (returned by close()).
DIRTY
public static final int DIRTY
- Element is dirty (returned by close()).
totalCreated
public static long totalCreated
assignedIDNumber
public long assignedIDNumber
name
protected java.lang.String name
disposed
protected boolean disposed
doomed
protected boolean doomed
FileElement
public FileElement(int numParts)
FileElement
public FileElement()
getID
public long getID()
getTypeName
public java.lang.String getTypeName()
- Returns the type of this element (e.g., "Continuous Data Matrix")
getName
public java.lang.String getName()
- Returns name of this element
setName
public void setName(java.lang.String name)
- Sets the name of this element
getExplanation
public java.lang.String getExplanation()
- Returns the explanation (e.g., footnote with additional information) of this element
doCommand
public java.lang.Object doCommand(java.lang.String commandName,
java.lang.String arguments,
mesquite.lib.CommandRecord commandRec,
mesquite.lib.CommandChecker checker)
- Performs command (for Commandable interface)
- Overrides:
- doCommand in class mesquite.lib.Associable
deleteMe
public void deleteMe(boolean queryUser)
addToFile
public mesquite.lib.NexusBlock addToFile(mesquite.lib.MesquiteFile f,
mesquite.lib.MesquiteProject proj,
mesquite.lib.duties.ElementManager manager)
- Adds the element to the given file and project, and assigns it the given manager. Also takes care of
notifying the manager that it has been added using elementAdded().
getNexusBlock
public mesquite.lib.NexusBlock getNexusBlock()
- Gets the associated NexusBlock of the FileElement
fileDirtiedByCommand
public void fileDirtiedByCommand(mesquite.lib.MesquiteCommand command)
- for FileDirtier interface
getProject
public mesquite.lib.MesquiteProject getProject()
- Gets project to which the FileElement belongs
setProject
public void setProject(mesquite.lib.MesquiteProject project)
- Sets project to which the FileElement belongs
getFile
public mesquite.lib.MesquiteFile getFile()
- Gets file to which the FileElement belongs
setFile
public void setFile(mesquite.lib.MesquiteFile f)
- Sets the file to which the FileElement belongs
getFileName
public java.lang.String getFileName()
- Gets name of the file to which the element belongs
setManager
public void setManager(mesquite.lib.duties.ElementManager e)
- Sets the FileElement's managing module
getManager
public mesquite.lib.duties.ElementManager getManager()
- Returns the FileElement's managing module
isDoomed
public boolean isDoomed()
doom
public void doom()
dispose
public void dispose()
- Deletes the file element. Should typically be called via close() to make sure that the file element is not in use etc.
- Overrides:
- dispose in class mesquite.lib.AssociableWithSpecs
okToClose
public int okToClose(int queryUser)
- NOT YET FUNCTIONING If queryUser is true, then
if there is a problem with deletion the user will be queried. Otherwise, the deletion is done or not
according to whether there are problems with deletion, and the method returns whether the deletion
was successful
getHDaughters
public mesquite.lib.HNode[] getHDaughters()
getHMother
public mesquite.lib.HNode getHMother()
getNumSupplements
public int getNumSupplements()
getSupplementName
public java.lang.String getSupplementName(int index)
hNodeAction
public void hNodeAction(java.awt.Container c,
int x,
int y,
int action)
addToBrowserPopup
public void addToBrowserPopup(mesquite.lib.MesquitePopup popup)
hSupplementTouched
public void hSupplementTouched(int index)
getHImage
public java.awt.Image getHImage()
getHColor
public java.awt.Color getHColor()
getHShow
public boolean getHShow()
All Packages Class Hierarchy This Package Previous Next Index