Class NewBusinessObjectFromTemplateVisualAction

  • All Implemented Interfaces:
    Comparable

    @Component
    public class NewBusinessObjectFromTemplateVisualAction
    extends AbstractVisualInventoryAction
    Visual wrapper of a new business object from template action.
    Author:
    Adrian Martinez <adrian.martinez@kuwaiba.org>
    • Field Detail

      • PARAM_BUSINESS_OBJECT

        public static String PARAM_BUSINESS_OBJECT
        business object parameter, used to retrieve the parent as a parameter.
    • Constructor Detail

      • NewBusinessObjectFromTemplateVisualAction

        public NewBusinessObjectFromTemplateVisualAction()
    • Method Detail

      • getVisualComponent

        public com.vaadin.flow.component.dialog.Dialog getVisualComponent​(ModuleActionParameterSet parameters)
        Creates the visual component for new object visual action Label H4 with the title Label with info about the Parent radio buttons with the possible options (single new object, multiple objects, new object from template) For single object List of possible children Mandatory Fields For multiple objects quantity(a mandatory field) optional command field For new object from template available templates
        Specified by:
        getVisualComponent in class AbstractVisualAction
        Parameters:
        parameters - need it parameters
        Returns:
        a dialog
      • getRequiredSelectedObjects

        public int getRequiredSelectedObjects()
        Description copied from class: AbstractVisualInventoryAction
        How many objects have to be selected so this action is enabled. Use -1 for any (-1), 0 if no objects have to be selected (0), or a number greater than 0 for a fixed number.
        Specified by:
        getRequiredSelectedObjects in class AbstractVisualInventoryAction
        Returns:
        The number of objects that have to be selected so the action is enabled.