Class NewBusinessObjectVisualAction

  • All Implemented Interfaces:
    Comparable

    @Component
    public class NewBusinessObjectVisualAction
    extends AbstractVisualInventoryAction
    Visual wrapper of a new business object action.
    Author:
    Johny Andres Ortega Ruiz <johny.ortega@kuwaiba.org>
    • Field Detail

      • PARAM_BUSINESS_OBJECT

        public static String PARAM_BUSINESS_OBJECT
        New business object visual action parameter business object.
    • Constructor Detail

      • NewBusinessObjectVisualAction

        public NewBusinessObjectVisualAction()
    • 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.