Class AttachmentWindowComponent

  • All Implemented Interfaces:
    Component

    public class AttachmentWindowComponent
    extends BaseTemplateComponent
    The component which takes care of creating a class for a tab's Attachment popup.
    • Constructor Detail

      • AttachmentWindowComponent

        public AttachmentWindowComponent()
    • Method Detail

      • getWindowClientClassName

        public String getWindowClientClassName()
        Gets a String composed by the tabId, attachmentId and if is in development, an unique sequence
        Returns:
        String sequence generated for this attach
      • initialize

        public void initialize​(Tab _tab,
                               AttachmentMethod _attMethod)
        Sets the Attachment Method and Tab. Actualizes metadata depending on this tab an attachment method
        Parameters:
        _tab - Tab to set.
        _attMethod - Method to set.
      • getAttachmentMethodId

        public String getAttachmentMethodId()
        Gets the Attachment Method
        Returns:
        Attachment Method
      • getParamHandler

        public OBViewParameterHandler getParamHandler()
        Gets the OBViewParameterHandler for this class
        Returns:
        OBViewParameterHandler injected on this class
      • getParentWindow

        public Window getParentWindow()
        Gets the Parent Window of the Attachment component.
      • getDynamicColumns

        public String getDynamicColumns()
        Return a JSONObject with all dynamic columns parsed to String. Dynamic columns is a list of columns that cause others to be modified, it includes the ones causing the modification as well as the affected ones. Columns are identified as strings surrounded by quotes (" or ') matching one of the names of the parameters.
        Returns:
        Dynamic columns parsed to string