Interface DocumentAction

All Superinterfaces:
org.gvsig.tools.extensionpoint.ExtensionSingleton
All Known Implementing Classes:
AbstractDocumentAction, CopyDocumentAction, CutDocumentAction, PasteDocumentAction

public interface DocumentAction extends org.gvsig.tools.extensionpoint.ExtensionSingleton
Interface que deben den cumplir las acciones asociadas a un documento
Las acciones de un documento se registraran a traves del metodo registerDocumentAction del ProjectFactory

Por lo general extender de la clase AbstractDocumentAction
  • Method Details

    • getId

      String getId()
      Gets the unique identifier for this action.
      Returns:
      id as String
    • isVisible

      boolean isVisible(Document document, List<Document> documents)
    • isAvailable

      boolean isAvailable(Document document, List<Document> documents)
    • execute

      void execute(Document document, List<Document> documents)
      Parameters:
      document - Optionally a document with a special role or null if there is not a document with a special role
      documents - Documents to manage
    • getGroup

      Gets the group name for this action.
      Returns:
      group name as String
    • getOrder

      int getOrder()
      Representa el orden en el que se presentara la accion entre elresto de acciones de este tipo documento alla donde estas se presenten.
      Returns:
      title as String
    • getTitle

      String getTitle()
      Returns a phrase with the action title for this document.type.
      Returns:
      description as String
    • getDescription

      String getDescription()
      Returns a paragraph with the action description for this document type.
      Returns:
      description as String