Class AddButtonTask

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

    public class AddButtonTask
    extends AbstractAddTask
    The task creates a new button and insert in parent
    • Constructor Detail

      • AddButtonTask

        public AddButtonTask​(FormItemContainer parent)
        Creates a new task. Create default button and insert to last position in parent;
        Parameters:
        parent - the parent
      • AddButtonTask

        public AddButtonTask​(FormItemContainer parent,
                             FormNewItemDescriptor itemDescriptor)
        Creates a new task. Create default button and insert to last position in parent;
        Parameters:
        parent - the parent
        itemDescriptor - the item descriptor, can be null
      • AddButtonTask

        public AddButtonTask​(FormItemContainer parent,
                             Command command)
        Creates a new task. Create button with command and insert to last position in parent;
        Parameters:
        parent - the parent
        command - the command set to button command name (Button#getCommandName())
      • AddButtonTask

        public AddButtonTask​(FormItemContainer parent,
                             Command command,
                             FormNewItemDescriptor itemDescriptor)
        Creates a new task. Create button with command and insert to last position in parent;
        Parameters:
        parent - the parent
        command - the command set to button command name (Button#getCommandName())
        itemDescriptor - the item descriptor, can be null
      • AddButtonTask

        public AddButtonTask​(FormItemContainer parent,
                             Command command,
                             AbstractDataPath path)
        Creates a new BM Task. Create button with a command and a data path after insert to last position in parent;
        Parameters:
        parent - the parent
        command - the command set to button command name (Button#getCommandName())
        path - the path set to button data path Button#getDataPath()
      • AddButtonTask

        public AddButtonTask​(FormItemContainer parent,
                             Command command,
                             AbstractDataPath path,
                             FormNewItemDescriptor itemDescriptor)
        Creates a new BM Task. Create button with a command and a data path after insert to last position in parent;
        Parameters:
        parent - the parent
        command - the command set to button command name (Button#getCommandName())
        path - the path set to button data path Button#getDataPath()
        itemDescriptor - the item descriptor, can be null
      • AddButtonTask

        public AddButtonTask​(FormItemContainer parent,
                             int index)
        Creates a new task. Create button insert to index position in parent;
        Parameters:
        parent - the parent
        index - position in parent
      • AddButtonTask

        public AddButtonTask​(FormItemContainer parent,
                             int index,
                             FormNewItemDescriptor itemDescriptor)
        Creates a new task. Create button insert to index position in parent;
        Parameters:
        parent - the parent
        index - position in parent
        itemDescriptor - the item descriptor, can be null
      • AddButtonTask

        public AddButtonTask​(FormItemContainer parent,
                             int index,
                             Command command)
        Creates a new task. Create button with command insert to index position in parent;
        Parameters:
        parent - the parent
        index - position in parent
        command - the command set to button command name (Button#getCommandName())
      • AddButtonTask

        public AddButtonTask​(FormItemContainer parent,
                             int index,
                             Command command,
                             FormNewItemDescriptor itemDescriptor)
        Creates a new task. Create button with command insert to index position in parent;
        Parameters:
        parent - the parent
        index - position in parent
        command - the command set to button command name (Button#getCommandName())
        itemDescriptor - the item descriptor, can be null
      • AddButtonTask

        public AddButtonTask​(FormItemContainer parent,
                             int index,
                             Command command,
                             AbstractDataPath path)
        Creates a new task. Create button with a command and a data path insert to index position in parent;
        Parameters:
        parent - the parent
        index - position in parent
        command - the command set to button command name (Button#getCommandName())
        path - the path set to button data path Button#getDataPath()
      • AddButtonTask

        public AddButtonTask​(FormItemContainer parent,
                             int index,
                             Command command,
                             AbstractDataPath path,
                             FormNewItemDescriptor itemDescriptor)
        Creates a new task. Create button with a command and a data path insert to index position in parent;
        Parameters:
        parent - the parent
        index - position in parent
        command - the command set to button command name (Button#getCommandName())
        path - the path set to button data path Button#getDataPath()
        itemDescriptor - the item descriptor, can be null
    • Method Detail

      • add

        protected org.eclipse.core.runtime.IStatus add​(Form form,
                                                       FormItemContainer parent)
        Description copied from class: AbstractAddTask
        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)
        Description copied from class: AbstractAddTask
        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.