|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.table.AbstractTableModel com.alee.extended.filechooser.WebFileTableModel
public class WebFileTableModel
Data model for WebFileTable.
Field Summary |
---|
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Fields inherited from interface com.alee.extended.filechooser.WebFileTableColumns |
---|
COLUMN_PREFIX, CREATION_DATE_COLUMN, DEFAULT_COLUMNS, EXTENSION_COLUMN, MODIFICATION_DATE_COLUMN, NAME_COLUMN, NUMBER_COLUMN, SIZE_COLUMN |
Constructor Summary | |
---|---|
WebFileTableModel()
Constructs empty model with default displayed columns. |
|
WebFileTableModel(java.util.Collection<java.io.File> files,
java.util.List<java.lang.String> columns)
Constructs model with specified displayed columns and files. |
|
WebFileTableModel(java.util.Collection<java.io.File> files,
java.lang.String... columns)
Constructs model with specified displayed columns and files. |
|
WebFileTableModel(java.util.List<java.lang.String> columns)
Constructs empty model with specified displayed columns. |
|
WebFileTableModel(java.lang.String... columns)
Constructs empty model with specified displayed columns. |
Method Summary | |
---|---|
void |
addFiles(java.util.Collection<java.io.File> files)
Adds displayed files. |
java.lang.Class<?> |
getColumnClass(int columnIndex)
|
int |
getColumnCount()
|
java.lang.String |
getColumnId(int column)
Returns column id at the specified index. |
int |
getColumnIndex(java.lang.String column)
Returns index of the specified column. |
java.lang.String |
getColumnName(int column)
|
java.io.File |
getFileAtRow(int row)
Returns file for the specified row. |
int |
getFileRow(java.io.File file)
Returns index of row with the specified file. |
int |
getRowCount()
|
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex)
|
boolean |
isCellEditable(int rowIndex,
int columnIndex)
|
boolean |
isColumnDisplayed(java.lang.String column)
Returns whether the specified column is displayed or not. |
void |
setColumns(java.util.List<java.lang.String> columns)
Sets displayed column ids list. |
void |
setFiles(java.util.Collection<java.io.File> files)
Sets displayed files. |
void |
setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
|
Methods inherited from class javax.swing.table.AbstractTableModel |
---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebFileTableModel()
public WebFileTableModel(java.lang.String... columns)
columns
- columns to displaypublic WebFileTableModel(java.util.List<java.lang.String> columns)
columns
- columns to displaypublic WebFileTableModel(java.util.Collection<java.io.File> files, java.lang.String... columns)
files
- files to displaycolumns
- columns to displaypublic WebFileTableModel(java.util.Collection<java.io.File> files, java.util.List<java.lang.String> columns)
files
- files to displaycolumns
- columns to displayMethod Detail |
---|
public void setFiles(java.util.Collection<java.io.File> files)
files
- files to displaypublic void addFiles(java.util.Collection<java.io.File> files)
files
- files to displaypublic int getFileRow(java.io.File file)
file
- file to find
public java.io.File getFileAtRow(int row)
row
- row to process
public void setColumns(java.util.List<java.lang.String> columns)
columns
- displayed column ids listpublic java.lang.String getColumnId(int column)
column
- column index
public boolean isColumnDisplayed(java.lang.String column)
column
- column to process
public int getColumnIndex(java.lang.String column)
column
- column to process
public java.lang.String getColumnName(int column)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
public int getRowCount()
getRowCount
in interface javax.swing.table.TableModel
public int getColumnCount()
getColumnCount
in interface javax.swing.table.TableModel
public java.lang.Object getValueAt(int rowIndex, int columnIndex)
getValueAt
in interface javax.swing.table.TableModel
public void setValueAt(java.lang.Object aValue, int rowIndex, int columnIndex)
setValueAt
in interface javax.swing.table.TableModel
setValueAt
in class javax.swing.table.AbstractTableModel
public java.lang.Class<?> getColumnClass(int columnIndex)
getColumnClass
in interface javax.swing.table.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |