|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
org.ceryle.ui.xnode.XNodeRevisionManagerPanel.SubsetRevisionTableModel
protected class XNodeRevisionManagerPanel.SubsetRevisionTableModel
Provides a seven-column table model for tables of XNodes and XNodeRevisions. Columns for this table implementation are as follows:
| number | reference | name |
|---|---|---|
| 0 | COL_CHCK | checkbox |
| 1 | COL_REVN | revision number |
| 2 | COL_DATE | date |
| 3 | COL_CREA | creator/author |
| 4 | COL_FRMT | format |
| 5 | COL_DIFF | diff button |
| 6 | COL_SIZE | size |
| Field Summary | |
|---|---|
static int |
COL_CHCK
Constant column reference. |
static int |
COL_CREA
Constant column reference. |
static int |
COL_DATE
Constant column reference. |
static int |
COL_DIFF
Constant column reference. |
static int |
COL_FRMT
Constant column reference. |
static int |
COL_REVN
Constant column reference. |
static int |
COL_SIZE
Constant column reference. |
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
XNodeRevisionManagerPanel.SubsetRevisionTableModel()
|
|
| Method Summary | |
|---|---|
void |
addRevision(XNodeRevision revision)
Add XNodeRevision revision to the table. |
void |
clear()
|
Class |
getColumnClass(int c)
|
int |
getColumnCount()
|
String |
getColumnName(int col)
|
String |
getFormatOf(XNodeRevision xnr)
Returns the MIME-style format string for the given revision. |
int |
getRepositorySize()
|
XNodeRevision |
getRevision(int i)
|
int |
getRowCount()
|
List |
getSelectedRevisions()
Return the list of selected XNodeRevisions. |
Object |
getValueAt(int row,
int col)
|
boolean |
isCellEditable(int row,
int col)
|
void |
setSelectAll(boolean selected)
|
void |
setValueAt(Object value,
int row,
int col)
|
| 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 |
| Field Detail |
|---|
public static final int COL_CHCK
public static final int COL_REVN
public static final int COL_DATE
public static final int COL_CREA
public static final int COL_FRMT
public static final int COL_DIFF
public static final int COL_SIZE
| Constructor Detail |
|---|
public XNodeRevisionManagerPanel.SubsetRevisionTableModel()
| Method Detail |
|---|
public int getColumnCount()
getColumnCount in interface TableModelgetColumnCount in interface RevisionTableModelpublic void addRevision(XNodeRevision revision)
RevisionTableModel
addRevision in interface RevisionTableModelpublic XNodeRevision getRevision(int i)
getRevision in interface RevisionTableModelpublic void clear()
clear in interface RevisionTableModelpublic List getSelectedRevisions()
RevisionTableModel
getSelectedRevisions in interface RevisionTableModelpublic int getRepositorySize()
getRepositorySize in interface RevisionTableModelpublic int getRowCount()
getRowCount in interface TableModelgetRowCount in interface RevisionTableModelpublic String getColumnName(int col)
getColumnName in interface TableModelgetColumnName in interface RevisionTableModelgetColumnName in class AbstractTableModel
public Object getValueAt(int row,
int col)
getValueAt in interface TableModelgetValueAt in interface RevisionTableModelpublic String getFormatOf(XNodeRevision xnr)
RevisionTableModel
getFormatOf in interface RevisionTableModelpublic Class getColumnClass(int c)
getColumnClass in interface TableModelgetColumnClass in interface RevisionTableModelgetColumnClass in class AbstractTableModel
public boolean isCellEditable(int row,
int col)
isCellEditable in interface TableModelisCellEditable in interface RevisionTableModelisCellEditable in class AbstractTableModelpublic void setSelectAll(boolean selected)
setSelectAll in interface RevisionTableModel
public void setValueAt(Object value,
int row,
int col)
setValueAt in interface TableModelsetValueAt in interface RevisionTableModelsetValueAt in class AbstractTableModel
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||