Class AddGroupTask

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

    public class AddGroupTask
    extends AbstractAddTask
    The task adds a new group item.
    • Constructor Detail

      • AddGroupTask

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

        public AddGroupTask​(FormItemContainer parent,
                            ManagedFormGroupType type,
                            int index,
                            FormNewItemDescriptor itemDescriptor)
        Create a new task which adds a new group to the index position of parent.
        Parameters:
        parent - the parental container for which the new group will be added. (The parent can not be null).
        type - the type of group. The type can not be null.
        index - the position index to which will be added a group.
        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.