public class FileListTableModel
extends javax.swing.table.AbstractTableModel
| Constructor and Description |
|---|
FileListTableModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
addEntry(int index,
FileListEntry entry)
Add an entry to the table model, and fire a change event.
|
java.lang.Class<java.lang.String> |
getColumnClass(int columnIndex) |
int |
getColumnCount() |
FileListEntry |
getEntry(int index) |
static javax.swing.JLabel |
getFirstLabel(java.lang.String content)
Convenience method for finding a label corresponding to the type of the
first file link in the given field content.
|
int |
getRowCount() |
java.lang.String |
getStringRepresentation()
Transform the file list shown in the table into a flat string representable
as a BibTeX field:
|
java.lang.String |
getToolTipHTMLRepresentation()
Transform the file list shown in the table into a HTML string representation
suitable for displaying the contents in a tooltip.
|
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex) |
void |
print() |
void |
removeEntry(int index) |
void |
setContent(java.lang.String value)
Set up the table contents based on the flat string representation of the file list
|
void |
setContentDontGuessTypes(java.lang.String value) |
void |
setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnName, getListeners, getTableModelListeners, isCellEditable, removeTableModelListenerpublic int getRowCount()
public int getColumnCount()
public java.lang.Class<java.lang.String> getColumnClass(int columnIndex)
getColumnClass in interface javax.swing.table.TableModelgetColumnClass in class javax.swing.table.AbstractTableModelpublic java.lang.Object getValueAt(int rowIndex,
int columnIndex)
public FileListEntry getEntry(int index)
public void removeEntry(int index)
public void addEntry(int index,
FileListEntry entry)
index - The row index to insert the entry at.entry - The entry to insert.public void setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
setValueAt in interface javax.swing.table.TableModelsetValueAt in class javax.swing.table.AbstractTableModelpublic void setContent(java.lang.String value)
value - The string representationpublic void setContentDontGuessTypes(java.lang.String value)
public static javax.swing.JLabel getFirstLabel(java.lang.String content)
content - The file field content, as fed to this class' setContent() method.public java.lang.String getStringRepresentation()
public java.lang.String getToolTipHTMLRepresentation()
public void print()