Module platform

Class 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:
  • Field Details

    • mimeType

      protected MimeType mimeType
    • editable

      protected boolean editable
    • disabled

      protected boolean disabled
    • deactivationCategory

      protected transient String deactivationCategory
    • activationStamp

      protected transient int activationStamp
    • $TYPE

      public static final Node.NType $TYPE
    • mimeType$FIELD

      public static final Node.NType.Field mimeType$FIELD
    • editable$FIELD

      public static final Node.NType.Field editable$FIELD
    • disabled$FIELD

      public static final Node.NType.Field disabled$FIELD
  • Constructor Details

  • Method Details

    • getActivationStamp

      public int getActivationStamp()
    • setActivationStamp

      public void setActivationStamp(int stamp)
    • toFileSource

      public FileSource toFileSource()
    • getMimeType

      public MimeType getMimeType()
    • getMimeTypeItem

      public MimeTypeItem getMimeTypeItem()
    • activateImpl

      protected void activateImpl()
      Overrides:
      activateImpl in class Item
    • deactivateImpl

      protected void deactivateImpl()
      Overrides:
      deactivateImpl in class Item
    • getDescriptionImpl

      protected Object getDescriptionImpl(String type)
      Overrides:
      getDescriptionImpl in class Item
    • invoke

      public Object invoke(Context ctx, String method, Object arg)
      Specified by:
      invoke in interface UIItem
    • closeShow

      public void closeShow(Context ctx)
    • show

      public void show(Context ctx)
      Specified by:
      show in interface Showable
    • show

      public void show(Context ctx, String ref)
    • showLater

      public void showLater(Context ctx)
    • isAvailable

      public boolean isAvailable(Context ctx)
      Specified by:
      isAvailable in interface UIItem
    • isEnabled

      public boolean isEnabled(Context ctx)
      Specified by:
      isEnabled in interface UIItem
    • getUINodeType

      public int getUINodeType()
      Specified by:
      getUINodeType in interface UIItem
    • evaluateBoolean

      public boolean evaluateBoolean(Object o)
      Description copied from interface: ObjectToBoolean
      Computes the value of this function at x.
      Specified by:
      evaluateBoolean in interface ObjectToBoolean
      Parameters:
      o - where the function is to be evaluated
      Returns:
      function value at x
    • addRequiredFiles

      public void addRequiredFiles(Collection list)
      Overrides:
      addRequiredFiles in class Item
    • get

      public static SourceFile get(RegistryContext ctx, String systemId)
    • treeNodesInserted

      public void treeNodesInserted(TreeModelEvent e)
      Specified by:
      treeNodesInserted in interface TreeModelListener
    • treeNodesRemoved

      public void treeNodesRemoved(TreeModelEvent e)
      Specified by:
      treeNodesRemoved in interface TreeModelListener
    • treeNodesChanged

      public void treeNodesChanged(TreeModelEvent e)
      Specified by:
      treeNodesChanged in interface TreeModelListener
    • treeStructureChanged

      public void treeStructureChanged(TreeModelEvent e)
      Specified by:
      treeStructureChanged in interface TreeModelListener
    • refresh

      public static void refresh(Item dir, SourceFile file, String category, Command afterRefresh)
    • shutdown

      public static void shutdown(Item dir, SourceFile file, String category, boolean force)
    • delete

      public void delete()
      Overrides:
      delete in class Item
    • copy

      public Item copy(Object destDir)
      Overrides:
      copy in class Item
    • refreshAndSave

      public void refreshAndSave()
    • shutdown

      public void shutdown()
    • shutdown

      public void shutdown(boolean force)
    • getNTypeImpl

      protected Node.NType getNTypeImpl()
      Description copied from class: Node
      This method returns the Node.NType which describes the managed fields of the class of this node. This method has to be implemented in every concrete subclass.
      Overrides:
      getNTypeImpl in class Item
      Returns:
      type describing the managed fields of the class of this node
    • newInstance

      protected Node newInstance()
      Description copied from class: Node
      This method returns a new instance of the class of this node. This method has to be implemented in every concrete subclass.
      Overrides:
      newInstance in class Item
      Returns:
      new instance of class of this node
    • isEditable

      public boolean isEditable()
    • isDisabled

      public boolean isDisabled()
    • setDisabled

      public void setDisabled(boolean value)