JIDE 3.5.15

com.jidesoft.rss
Class FeedItemTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by com.jidesoft.rss.FeedItemTableModel
All Implemented Interfaces:
ContextSensitiveTableModel, StyleModel, Serializable, TableModel

public class FeedItemTableModel
extends AbstractTableModel
implements ContextSensitiveTableModel, StyleModel

The table model that contains the feed items of a channel.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
FeedItemTableModel()
           
FeedItemTableModel(int maxItems)
           
FeedItemTableModel(int maxItems, PersistenceManagerIF persistenceManager)
           
 
Method Summary
 void addItemAt(ItemIF aValue, int rowIndex)
           
 void closeCurrentChannel()
           
 Class<?> getCellClassAt(int row, int column)
          Gets the type at cell (row, column).
 CellStyle getCellStyleAt(int rowIndex, int columnIndex)
          Gets the cell style at the specified row and column.
 ChannelIF getChannel()
           
 Class<?> getColumnClass(int column)
           
 int getColumnCount()
           
 String getColumnName(int column)
           
 ConverterContext getConverterContextAt(int row, int column)
          Gets the converter context at cell (row, column).
 EditorContext getEditorContextAt(int row, int column)
          Gets the editor context at cell (row, column).
 ItemIF getItemAt(int row)
           
 long getItemID(int row)
           
 int getItemIndex(ItemIF item)
           
 int getMaxItems()
           
 PersistenceManagerIF getPersistenceManager()
           
 ResourceBundle getResourceBundle()
           
protected  String getResourceString(String key)
           
 int getRowCount()
           
 Object getValueAt(int row, int column)
           
 boolean isCellEditable(int rowIndex, int columnIndex)
           
 boolean isCellStyleOn()
          Checks if the style is on.
 void openChannel(ChannelIF channel)
           
 void removeAll()
           
 void setAllItemReadStatus(boolean unread)
           
 void setChannel(ChannelIF channel)
           
 void setItemReadStatus(int row, boolean unread)
           
 void setMaxItems(int maxItems)
           
 void setPersistenceManager(PersistenceManagerIF persistenceManager)
           
 void toggleItemReadStatus(int row)
           
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, removeTableModelListener, setValueAt
 

Constructor Detail

FeedItemTableModel

public FeedItemTableModel()

FeedItemTableModel

public FeedItemTableModel(int maxItems)

FeedItemTableModel

public FeedItemTableModel(int maxItems,
                          PersistenceManagerIF persistenceManager)
Method Detail

getColumnCount

public int getColumnCount()
Specified by:
getColumnCount in interface TableModel

getRowCount

public int getRowCount()
Specified by:
getRowCount in interface TableModel

isCellEditable

public boolean isCellEditable(int rowIndex,
                              int columnIndex)
Specified by:
isCellEditable in interface TableModel
Overrides:
isCellEditable in class AbstractTableModel

getConverterContextAt

public ConverterContext getConverterContextAt(int row,
                                              int column)
Description copied from interface: ContextSensitiveTableModel
Gets the converter context at cell (row, column).

For a special row index like -1, please return the default converter context for the entire column if there is any.

Specified by:
getConverterContextAt in interface ContextSensitiveTableModel
Parameters:
row - the row index
column - the column index
Returns:
converter context

getEditorContextAt

public EditorContext getEditorContextAt(int row,
                                        int column)
Description copied from interface: ContextSensitiveTableModel
Gets the editor context at cell (row, column).

For a special row index like -1, please return the default editor context for the entire column if there is any.

Specified by:
getEditorContextAt in interface ContextSensitiveTableModel
Parameters:
row - the row index
column - the column index
Returns:
editor context

getItemID

public long getItemID(int row)

getItemAt

public ItemIF getItemAt(int row)

getItemIndex

public int getItemIndex(ItemIF item)

getCellClassAt

public Class<?> getCellClassAt(int row,
                               int column)
Description copied from interface: ContextSensitiveTableModel
Gets the type at cell (row, column).

For a special row index like -1, please return the default column class for the entire column if there is any.

Specified by:
getCellClassAt in interface ContextSensitiveTableModel
Parameters:
row - the row index
column - the column index
Returns:
type

getColumnClass

public Class<?> getColumnClass(int column)
Specified by:
getColumnClass in interface TableModel
Overrides:
getColumnClass in class AbstractTableModel

getValueAt

public Object getValueAt(int row,
                         int column)
Specified by:
getValueAt in interface TableModel

addItemAt

public void addItemAt(ItemIF aValue,
                      int rowIndex)

setItemReadStatus

public void setItemReadStatus(int row,
                              boolean unread)

toggleItemReadStatus

public void toggleItemReadStatus(int row)

setAllItemReadStatus

public void setAllItemReadStatus(boolean unread)

removeAll

public void removeAll()

getCellStyleAt

public CellStyle getCellStyleAt(int rowIndex,
                                int columnIndex)
Description copied from interface: StyleModel
Gets the cell style at the specified row and column.

Specified by:
getCellStyleAt in interface StyleModel
Parameters:
rowIndex - the row index
columnIndex - the column index
Returns:
CellStyle object.

isCellStyleOn

public boolean isCellStyleOn()
Description copied from interface: StyleModel
Checks if the style is on. The CellStyleTable will ignore all the CellStyles defined in this model if this method returns false.

Specified by:
isCellStyleOn in interface StyleModel
Returns:
true if style is on. Otherwise false.

openChannel

public void openChannel(ChannelIF channel)

closeCurrentChannel

public void closeCurrentChannel()

getResourceString

protected String getResourceString(String key)

getResourceBundle

public ResourceBundle getResourceBundle()

getColumnName

public String getColumnName(int column)
Specified by:
getColumnName in interface TableModel
Overrides:
getColumnName in class AbstractTableModel

getPersistenceManager

public PersistenceManagerIF getPersistenceManager()

setPersistenceManager

public void setPersistenceManager(PersistenceManagerIF persistenceManager)

getMaxItems

public int getMaxItems()

setMaxItems

public void setMaxItems(int maxItems)

getChannel

public ChannelIF getChannel()

setChannel

public void setChannel(ChannelIF channel)

JIDE 3.5.15