Class AddAdditionTask

  • All Implemented Interfaces:
    IBmTask<org.eclipse.core.runtime.IStatus>

    public class AddAdditionTask
    extends AbstractAddTask
    The task adds an new addition item.
    • Constructor Detail

      • AddAdditionTask

        public AddAdditionTask​(FormItemContainer parent,
                               FormNewItemDescriptor itemDescriptor)
        Create a new task which adds an new addition to the end of parent.
        Parameters:
        parent - the parental container for which the new addition will be added. (The parent can not be null).
        itemDescriptor - the item descriptor, can be null.
      • AddAdditionTask

        public AddAdditionTask​(FormItemContainer parent,
                               int index,
                               FormNewItemDescriptor itemDescriptor)
        Create a new task which adds an new addition to the index position of parent.
        Parameters:
        parent - the parental container for which the new addition will be added. (The parent can not be null).
        index - the position index to which will be added an addition.
        itemDescriptor - the item descriptor, can be null.
    • Method Detail

      • add

        protected org.eclipse.core.runtime.IStatus add​(Form form,
                                                       FormItemContainer parent)
        The method add new FormItem
        Specified by:
        add in class AbstractAddTask
        Parameters:
        form - the form in which there are all objects.
        parent - the parental element to which the field will be added.
        Returns:
        the status of operation.
      • add

        protected org.eclipse.core.runtime.IStatus add​(Form form,
                                                       FormItemContainer parent,
                                                       int index)
        The method add new FormItem
        Specified by:
        add in class AbstractAddTask
        Parameters:
        form - the form in which there are all objects.
        parent - the parental element to which the field will be added.
        index - the position index to which will be added an item.
        Returns:
        the status of operation.