protected void addTextMediaItemToList(String fileNameExtension, String absPath) {

        // Create MediaItem by path of the File that the user created
        MediaItem mItem = new Text(fileNameExtension, absPath, 2);

        // Add selected file to list
        if (mItem != null) {
            if (mItem instanceof Video) {
                this.addItem((Video) mItem);
            } else if (mItem instanceof Model.Image) {
                this.addItem((Model.Image) mItem);
                enterDuration(mItem, this.tableModel.getRowCount() - 1);
            } else if (mItem instanceof Text) {
                this.addItem((Text) mItem);
                enterDuration(mItem, this.tableModel.getRowCount() - 1);
            }
        }
    }