Class RowInsertCommand<T>

    • Constructor Detail

      • RowInsertCommand

        @SafeVarargs
        public RowInsertCommand​(ILayer layer,
                                int rowPosition,
                                T... objects)
        Create a command to insert object(s) at the specified row position. The row index will be calculated from the given layer and the corresponding row position.
        Parameters:
        layer - The layer to which the row position matches.
        rowPosition - The row position to insert the object(s).
        objects - The object(s) to add.
      • RowInsertCommand

        public RowInsertCommand​(ILayer layer,
                                int rowPosition,
                                List<T> objects)
        Create a command to insert object(s) at the specified row position. row index will be calculated from the given layer and the corresponding row position.
        Parameters:
        layer - The layer to which the row position matches.
        rowPosition - The row position to insert the object(s).
        objects - The object(s) to add.
      • RowInsertCommand

        public RowInsertCommand​(int rowIndex,
                                T object)
        Create a command to add an object.
        Parameters:
        rowIndex - The index at which the row should be inserted.
        object - The object to add.
      • RowInsertCommand

        public RowInsertCommand​(int rowIndex,
                                List<T> objects)
        Create a command to add object(s).
        Parameters:
        rowIndex - The index at which the rows should be inserted.
        objects - The object(s) to add.
      • RowInsertCommand

        public RowInsertCommand​(T object)
        Create a command to add an object.
        Parameters:
        object - The object to add.
      • RowInsertCommand

        public RowInsertCommand​(List<T> objects)
        Create a command to add object(s).
        Parameters:
        objects - The object(s) to add.
    • Method Detail

      • getRowIndex

        public int getRowIndex()
        Returns:
        The index at which the row should be inserted.
      • getObjects

        public List<T> getObjects()
        Returns:
        The objects that should be inserted.