Interface IFormItemMovementService

  • All Known Implementing Classes:
    FormItemMovementService

    public interface IFormItemMovementService
    The movement service of form item
    • Method Detail

      • moveToEnd

        boolean moveToEnd​(FormItem item,
                          FormItemContainer parent)
        The method move form item to end position of parent object
        Parameters:
        item - the movable item
        parent - the container in which there is a movement
        Returns:
        returns true if it is moved, false if it not
        Throws:
        NullPointerException - - if item or parent is null
        IllegalStateException - - if parent is not supported the item
      • move

        boolean move​(FormItem item,
                     FormItemContainer parent,
                     int index)
        The method move form item to index position of parent object
        Parameters:
        item - the movable item
        parent - the container in which there is a movement
        index - the index in which item will be move
        Returns:
        returns true if it is moved, false if it not
        Throws:
        NullPointerException - - if item or parent is null
        IllegalStateException - - if parent is not supported the item
        IndexOutOfBoundsException - - if index out of bounds