Class AddFieldTask

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

    public class AddFieldTask
    extends AbstractAddTask
    The task adds a new field item.
    • Constructor Detail

      • AddFieldTask

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

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

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

        public AddFieldTask​(FormItemContainer parent,
                            AbstractDataPath path,
                            int index)
        Create a new task which adds an new field to the index position of parent.
        Parameters:
        parent - the parental container for which the new field will be added. (The parent can not be null).
        path - the path for sets type to field
        index - the position index to which will be added a field.
      • AddFieldTask

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