Class AttachmentExplorer


  • @Component
    public class AttachmentExplorer
    extends AbstractExplorerWidget<com.vaadin.flow.component.orderedlayout.VerticalLayout>
    An explorer that allows the user to see the file attachments related to an inventory object.
    Author:
    Charles Edward Bedon Cortazar
    • Constructor Detail

      • AttachmentExplorer

        public AttachmentExplorer()
    • Method Detail

      • getName

        public String getName()
        Description copied from class: AbstractExplorerWidget
        Obtains the name of the explorer. This name will be used as label in lists and context menus.
        Specified by:
        getName in class AbstractExplorerWidget<com.vaadin.flow.component.orderedlayout.VerticalLayout>
        Returns:
        The explorer name.
      • getDescription

        public String getDescription()
        Description copied from class: AbstractExplorerWidget
        Obtains the description of the explorer. This will be used in help texts and tool tip texts.
        Specified by:
        getDescription in class AbstractExplorerWidget<com.vaadin.flow.component.orderedlayout.VerticalLayout>
        Returns:
        The description of what the explorer does.
      • appliesTo

        public String appliesTo()
        Description copied from class: AbstractExplorerWidget
        Tells the consumer what type of objects the explorer is suitable for. For example, a explorer of physical connection would be apply to GenericPhysicalConnection and so on.
        Specified by:
        appliesTo in class AbstractExplorerWidget<com.vaadin.flow.component.orderedlayout.VerticalLayout>
        Returns:
        The type of object the explorer is intended to.
      • build

        public com.vaadin.flow.component.orderedlayout.VerticalLayout build​(BusinessObjectLight selectedObject)
        Description copied from class: AbstractExplorerWidget
        Creates an embeddable visual component withe the explorer.
        Specified by:
        build in class AbstractExplorerWidget<com.vaadin.flow.component.orderedlayout.VerticalLayout>
        Parameters:
        selectedObject - The object from which the explorer will be built.
        Returns:
        The embeddable component.