java.lang.Object
de.grogra.graph.impl.Edge
de.grogra.graph.impl.Node
de.grogra.pf.registry.Item
de.grogra.pf.ui.registry.SourceFile
- All Implemented Interfaces:
Manageable,PersistenceCapable,Shareable,RegistryContext,UIItem,Showable,UserFields,XObject,Described,Map,ObjectToBoolean,Serializable,EventListener,TreeModelListener
- Direct Known Subclasses:
SourceMTG
public class SourceFile
extends Item
implements UIItem, ObjectToBoolean, TreeModelListener, Showable
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class de.grogra.graph.impl.Node
Node.AccessorBridge, Node.FieldAttributeAccessor, Node.NType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Node.NTypeprotected intprotected Stringprotected booleanstatic final Node.NType.Fieldprotected booleanstatic final Node.NType.Fieldprotected MimeTypestatic final Node.NType.FieldFields inherited from class de.grogra.pf.registry.Item
systemId, systemId$FIELDFields inherited from class de.grogra.graph.impl.Node
ADDITIONAL_FIELDS, bits, DELETED, EXTENT_BIT, EXTENT_MASK, extentIndex$FIELD, extentTail$FIELD, HAS_OBSERVERS, IS_INTERPRETIVE, isInterpretive$FIELD, LAST_EXTENT_INDEX, layer$FIELD, MARK, mark$FIELD, MAX_RESOLUTION, MIME_TYPE, MIN_RESOLUTION, MIN_UNUSED_SPECIAL_OF_SOURCE, MIN_UNUSED_SPECIAL_OF_TARGET, name$FIELD, RESOLUTION_BIT, RESOLUTION_MASK, resolution$FIELD, USED_BITSFields inherited from interface de.grogra.util.Described
ACCELERATOR_KEY, ICON, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, TITLEFields inherited from interface de.grogra.util.Map
DEFAULT_VALUE, EMPTY_MAP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidaddRequiredFiles(Collection list) voidCopy the sourcefile to a File destination (using the associated filesystem) return a SourceFile with the same data, but on the location of dest the new SourceFile isn't added to the graph yet.protected voidvoiddelete()Delete the associated File of the SourceFile - Can be a memory entrybooleanComputes the value of this function atx.static SourceFileget(RegistryContext ctx, String systemId) intprotected ObjectgetDescriptionImpl(String type) protected Node.NTypeThis method returns theNode.NTypewhich describes the managed fields of the class of this node.intbooleanisAvailable(Context ctx) booleanbooleanbooleanprotected NodeThis method returns a new instance of the class of this node.static voidrefresh(Item dir, SourceFile file, String category, Command afterRefresh) voidvoidThis test if the new name is available, if so it copy the file to the new name.voidsetActivationStamp(int stamp) voidsetDisabled(boolean value) voidvoidvoidvoidshutdown()voidshutdown(boolean force) static voidshutdown(Item dir, SourceFile file, String category, boolean force) voidvoidvoidvoidMethods inherited from class de.grogra.pf.registry.Item
activate, add, add, addPluginPrerequisite, addPluginPrerequisites, addUserItem, addUserItemWithUniqueName, addWithUniqueName, beginXA, classForName, commitXA, createItem, deactivate, deriveItems, dupUnmanagedFields, equals, findAll, findAll, findAll, findFirst, findFirst, findFirst, findMax, findMax, findMax, forAll, forAll, forAll, get, getAbsoluteName, getAccessor, getAccessor, getAttributes, getAttributes, getClassLoader, getDefaultDescription, getDefaultValue, getDerivedDescription, getDescription, getFromResource, getI18NBundle, getItem, getLock, getParentMap, getPath, getPluginDescriptor, getRegistry, getRoot, getSystemId, getTransaction, getUniqueName, getWriteLock, hasEditableOptions, initPluginDescriptor, isActivated, isDirectory, isEditable, isOptionCategory, isPluginItem, isUserItem, makeUserItem, paramString, readAttribute, remove, removeDerivedItems, resolveItem, resolveLink, set, setDefaultDescription, setDescription, setDescription, setDirectory, setName, setNameIfNull, setOption, substitute, validateMethods inherited from class de.grogra.graph.impl.Node
addEdgeBitsTo, addReference, appendBranchNode, appendBranchNode, appendReferencesTo, clone, clone, cloneGraph, dump, dumpTree, dup, dupFrom, dupnew, edgeChanged, fieldModified, findAdjacent, findRefinementType, getAxisParent, getBoolean, getBranch, getBranchLength, getBranchNode, getBranchTail, getByte, getChar, getCommonAncestor, getCurrentGraphState, getDirectChildCount, getDouble, getEdgeAttributeAccessor, getEdgeAttributes, getEdgeBitsTo, getEdgeTo, getExtentIndex, getFirst, getFirstEdge, getFloat, getGraph, getId, getIgnored, getIndex, getInstantiator, getInt, getLayer, getLong, getManageableType, getName, getNeighbor, getNext, getNType, getObject, getOrCreateEdgeTo, getOrNull, getPersistenceManager, getPredecessor, getProvider, getResolution, getShort, getSource, getStamp, getSuccessor, getSymbol, getSymbolColor, getTarget, getTransaction, getUserField, getUserFieldCount, getXClass, getXData, hasName, initProvider, initXClass, insertBranchNode, insertBranchNode, instantiateGraph, isAncestorOf, isDirection, isEncoarseOf, isManagingInstance, isMarked, isRoot, isSource, isTarget, manageableReadResolve, manageableWriteReplace, removeAll, removeEdgeBitsTo, removeFromChain, removeFromChain, removeReference, setBranch, setBranch, setExtentIndex, setGraphForDeserialization, setIgnored, setLayer, setMark, setResolution, setSuccessor, setSuccessor, specialEdgeAdded, specialEdgeRefModified, specialEdgeRemoved, toString, writeReplaceMethods inherited from class de.grogra.graph.impl.Edge
addEdgeBits, getBitMark, getEdgeBits, getEdgeKeys, getObjectMark, getSpecialEdgeDescriptor, parseEdgeKeys, remove, removeEdgeBits, setBitMark, setEdgeBits, setObjectMark, testEdgeBitsMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface de.grogra.persistence.PersistenceCapable
getBitMark, getObjectMark, setBitMark, setObjectMark
-
Field Details
-
mimeType
-
editable
protected boolean editable -
disabled
protected boolean disabled -
deactivationCategory
-
activationStamp
protected transient int activationStamp -
$TYPE
-
mimeType$FIELD
-
editable$FIELD
-
disabled$FIELD
-
-
Constructor Details
-
SourceFile
-
-
Method Details
-
getActivationStamp
public int getActivationStamp() -
setActivationStamp
public void setActivationStamp(int stamp) -
toFileSource
-
getMimeType
-
getMimeTypeItem
-
activateImpl
protected void activateImpl()- Overrides:
activateImplin classItem
-
deactivateImpl
protected void deactivateImpl()- Overrides:
deactivateImplin classItem
-
getDescriptionImpl
- Overrides:
getDescriptionImplin classItem
-
invoke
-
closeShow
-
show
-
show
-
showLater
-
isAvailable
- Specified by:
isAvailablein interfaceUIItem
-
isEnabled
-
getUINodeType
public int getUINodeType()- Specified by:
getUINodeTypein interfaceUIItem
-
evaluateBoolean
Description copied from interface:ObjectToBooleanComputes the value of this function atx.- Specified by:
evaluateBooleanin interfaceObjectToBoolean- Parameters:
o- where the function is to be evaluated- Returns:
- function value at
x
-
addRequiredFiles
- Overrides:
addRequiredFilesin classItem
-
get
-
treeNodesInserted
- Specified by:
treeNodesInsertedin interfaceTreeModelListener
-
treeNodesRemoved
- Specified by:
treeNodesRemovedin interfaceTreeModelListener
-
treeNodesChanged
- Specified by:
treeNodesChangedin interfaceTreeModelListener
-
treeStructureChanged
- Specified by:
treeStructureChangedin interfaceTreeModelListener
-
refresh
-
shutdown
-
delete
public void delete()Delete the associated File of the SourceFile - Can be a memory entry -
rename
This test if the new name is available, if so it copy the file to the new name. then it delete the file. -
copy
Copy the sourcefile to a File destination (using the associated filesystem) return a SourceFile with the same data, but on the location of dest the new SourceFile isn't added to the graph yet. -
refreshAndSave
public void refreshAndSave() -
shutdown
public void shutdown() -
shutdown
public void shutdown(boolean force) -
getNTypeImpl
Description copied from class:NodeThis method returns theNode.NTypewhich describes the managed fields of the class of this node. This method has to be implemented in every concrete subclass.- Overrides:
getNTypeImplin classItem- Returns:
- type describing the managed fields of the class of this node
-
newInstance
Description copied from class:NodeThis method returns a new instance of the class of this node. This method has to be implemented in every concrete subclass.- Overrides:
newInstancein classItem- Returns:
- new instance of class of this node
-
isEditable
public boolean isEditable() -
isDisabled
public boolean isDisabled() -
setDisabled
public void setDisabled(boolean value)
-