Class AddDecorationTask

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

    public class AddDecorationTask
    extends AbstractAddTask
    The task adds an new Decoration item.
    • Constructor Detail

      • AddDecorationTask

        public AddDecorationTask​(FormItemContainer parent,
                                 ManagedFormDecorationType type)
        Create a new task which adds an new decoration to the end of parent.
        Parameters:
        parent - the parental container for which the new decoration will be added. (The parent can not be null).
        type - the type of decoration. The type can not be null.
      • AddDecorationTask

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