Class AbstractAddTask

    • Constructor Detail

      • AbstractAddTask

        protected AbstractAddTask​(String taskName,
                                  FormItemContainer parent,
                                  FormNewItemDescriptor itemDescriptor)
        Constructor for initialize abstract task fields. By a call of this constructor the new form item will be added to the end of the parent.
        Parameters:
        taskName - the task name. (The name can not be null).
        parent - the parental container for which the new item will be added. (The parent can not be null).
        itemDescriptor - the item descriptor, can be null.
      • AbstractAddTask

        protected AbstractAddTask​(String taskName,
                                  FormItemContainer parent,
                                  int index,
                                  FormNewItemDescriptor itemDescriptor)
        Constructor for initialize abstract task fields.
        Parameters:
        taskName - the task name. (The name can not be null).
        parent - parent the parental container for which the new item will be added. (The parent can not be null).
        index - the position index to which will be added an item.
        itemDescriptor - the item descriptor, can be null.
    • Method Detail

      • add

        protected abstract org.eclipse.core.runtime.IStatus add​(Form form,
                                                                FormItemContainer parent)
        The method add new FormItem
        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 abstract org.eclipse.core.runtime.IStatus add​(Form form,
                                                                FormItemContainer parent,
                                                                int index)
        The method add new FormItem
        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.
      • getItemDescriptor

        protected FormNewItemDescriptor getItemDescriptor()
        Provides the item name
        Returns:
        the item descriptor, can be null.
      • createTaskName

        protected static String createTaskName​(String itemName)
        Creates a new task name.
        Parameters:
        itemName - the new item name, cannot be null
        Returns:
        a new name, never null