com.openindex.openestate.tool.calendar
Class CalendarEntryTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by javax.swing.table.DefaultTableModel
          extended by com.openindex.openestate.tool.calendar.CalendarEntryTableModel
All Implemented Interfaces:
Serializable, TableModel

public class CalendarEntryTableModel
extends DefaultTableModel

CalendarEntryTableModel.
$Id: CalendarEntryTableModel.java 856 2011-04-29 22:30:40Z andy $

Author:
Andreas Rudolph
See Also:
Serialized Form

Nested Class Summary
static class CalendarEntryTableModel.BeginDateRenderer
           
static class CalendarEntryTableModel.EndDateRenderer
           
static class CalendarEntryTableModel.StatusRenderer
           
 
Field Summary
static int COLUMN_CALENDAR
           
static int COLUMN_DATE_BEGIN
           
static int COLUMN_DATE_FINISH
           
static int COLUMN_ID
           
static int COLUMN_STATUS
           
static int COLUMN_SUMMARY
           
static int COLUMN_TYPE
           
 
Fields inherited from class javax.swing.table.DefaultTableModel
columnIdentifiers, dataVector
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
CalendarEntryTableModel()
           
 
Method Summary
 void addCalendarEntry(CalendarEntry entry, String calendarName)
           
 void clear()
           
 Class getColumnClass(int col)
           
 String getColumnName(int col)
           
 CalendarEntry getEntry(int row)
           
 long getEntryCalId(int row)
           
 String getEntryUId(int row)
           
 boolean isCellEditable(int row, int column)
           
 boolean isJournalEntry(int row)
           
 void setCalendarEntry(int row, CalendarEntry entry, String calendarName)
           
 
Methods inherited from class javax.swing.table.DefaultTableModel
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getColumnCount, getDataVector, getRowCount, getValueAt, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount, setValueAt
 
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

COLUMN_ID

public static final int COLUMN_ID
See Also:
Constant Field Values

COLUMN_DATE_BEGIN

public static final int COLUMN_DATE_BEGIN
See Also:
Constant Field Values

COLUMN_DATE_FINISH

public static final int COLUMN_DATE_FINISH
See Also:
Constant Field Values

COLUMN_SUMMARY

public static final int COLUMN_SUMMARY
See Also:
Constant Field Values

COLUMN_CALENDAR

public static final int COLUMN_CALENDAR
See Also:
Constant Field Values

COLUMN_TYPE

public static final int COLUMN_TYPE
See Also:
Constant Field Values

COLUMN_STATUS

public static final int COLUMN_STATUS
See Also:
Constant Field Values
Constructor Detail

CalendarEntryTableModel

public CalendarEntryTableModel()
Method Detail

addCalendarEntry

public void addCalendarEntry(CalendarEntry entry,
                             String calendarName)

clear

public void clear()

getColumnClass

public Class getColumnClass(int col)
Specified by:
getColumnClass in interface TableModel
Overrides:
getColumnClass in class AbstractTableModel

getColumnName

public String getColumnName(int col)
Specified by:
getColumnName in interface TableModel
Overrides:
getColumnName in class DefaultTableModel

getEntry

public CalendarEntry getEntry(int row)

getEntryCalId

public long getEntryCalId(int row)

getEntryUId

public String getEntryUId(int row)

isCellEditable

public boolean isCellEditable(int row,
                              int column)
Specified by:
isCellEditable in interface TableModel
Overrides:
isCellEditable in class DefaultTableModel

isJournalEntry

public boolean isJournalEntry(int row)

setCalendarEntry

public void setCalendarEntry(int row,
                             CalendarEntry entry,
                             String calendarName)


Copyright © 2012 OpenEstate. All Rights Reserved.