org.ceryle.ui.xnode
Interface RevisionTableModel

All Known Implementing Classes:
RevisionTableModelImpl, XNodeRevisionManagerPanel.SubsetRevisionTableModel

public interface RevisionTableModel

Provides an interface for a seven-column table model for tables of XNodes and XNodeRevisions. Most of the methods are undocumented here as they are derived directly from AbstractTableModel.

Author:
MurrayAltheim
See Also:
AbstractTableModel

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)
           
 

Method Detail

addRevision

void addRevision(XNodeRevision revision)
Add XNodeRevision revision to the table.


getFormatOf

String getFormatOf(XNodeRevision xnr)
Returns the MIME-style format string for the given revision.


getSelectedRevisions

List getSelectedRevisions()
Return the list of selected XNodeRevisions. If none are selected, returns an empty Set rather than null.


getColumnCount

int getColumnCount()

getRevision

XNodeRevision getRevision(int i)

clear

void clear()

getRepositorySize

int getRepositorySize()

getRowCount

int getRowCount()

getColumnName

String getColumnName(int col)

getValueAt

Object getValueAt(int row,
                  int col)

getColumnClass

Class getColumnClass(int c)

isCellEditable

boolean isCellEditable(int row,
                       int col)

setSelectAll

void setSelectAll(boolean selected)

setValueAt

void setValueAt(Object value,
                int row,
                int col)


The Ceryle Project. Copyright ©2001-2007 Murray Altheim, All Rights Reserved. See LICENSE included with distribution.