net.sourceforge.fixagora.basis.client.model.editor
Class SpreadSheetTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by net.sourceforge.fixagora.basis.client.model.editor.SpreadSheetTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class SpreadSheetTableModel
extends javax.swing.table.AbstractTableModel

The Class SpreadSheetTableModel.

See Also:
Serialized Form

Constructor Summary
SpreadSheetTableModel(SpreadSheetEditor spreadSheetEditor)
          Instantiates a new spread sheet table model.
 
Method Summary
 void addDropShadow(java.util.Set<java.lang.String> cellRefs)
          Adds the drop shadow.
 int getColumnCount()
           
 java.lang.String getColumnName(int column)
           
 java.lang.Integer getFractionalOffset(int column)
          Gets the fractional offset.
 int getRowCount()
           
 SpreadSheet getSpreadSheet()
          Gets the spread sheet.
 SpreadSheetCellFormat getSpreadSheetCellFormatAt(int row, int column)
          Gets the spread sheet cell format at.
 SpreadSheetConditionalFormat getSpreadSheetConditionalFormatAt(int row, int column)
          Gets the spread sheet conditional format at.
 java.lang.Object getValueAt(int rowIndex, int columnIndex)
           
 void increaseColumnCount()
          Increase column count.
 void increaseRowCount()
          Increase row count.
 boolean isCellEditable(int rowIndex, int columnIndex)
           
 boolean isDropShadow(int row, int column)
          Checks if is drop shadow.
 boolean isShowingFormula()
          Checks if is showing formula.
 void onUpdateSheetCellFormatResponse(UpdateSheetCellFormatResponse updateSheetCellFormatResponse)
          On update sheet cell format response.
 void onUpdateSheetCellResponse(UpdateSheetCellResponse updateSheetCellResponse)
          On update sheet cell response.
 void onUpdateSheetConditionalFormatResponse(UpdateSheetConditionalFormatResponse updateSheetConditionalFormatResponse)
          On update sheet conditional format response.
 void switchShowingFormula(boolean showingFormula)
          Switch showing formula.
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpreadSheetTableModel

public SpreadSheetTableModel(SpreadSheetEditor spreadSheetEditor)
Instantiates a new spread sheet table model.

Parameters:
spreadSheetEditor - the spread sheet editor
Method Detail

getSpreadSheet

public SpreadSheet getSpreadSheet()
Gets the spread sheet.

Returns:
the spread sheet

getColumnCount

public int getColumnCount()

increaseColumnCount

public void increaseColumnCount()
Increase column count.


increaseRowCount

public void increaseRowCount()
Increase row count.


getColumnName

public java.lang.String getColumnName(int column)
Specified by:
getColumnName in interface javax.swing.table.TableModel
Overrides:
getColumnName in class javax.swing.table.AbstractTableModel

getRowCount

public int getRowCount()

getValueAt

public java.lang.Object getValueAt(int rowIndex,
                                   int columnIndex)

isCellEditable

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

onUpdateSheetCellResponse

public void onUpdateSheetCellResponse(UpdateSheetCellResponse updateSheetCellResponse)
On update sheet cell response.

Parameters:
updateSheetCellResponse - the update sheet cell response

onUpdateSheetCellFormatResponse

public void onUpdateSheetCellFormatResponse(UpdateSheetCellFormatResponse updateSheetCellFormatResponse)
On update sheet cell format response.

Parameters:
updateSheetCellFormatResponse - the update sheet cell format response

getFractionalOffset

public java.lang.Integer getFractionalOffset(int column)
Gets the fractional offset.

Parameters:
column - the column
Returns:
the fractional offset

getSpreadSheetCellFormatAt

public SpreadSheetCellFormat getSpreadSheetCellFormatAt(int row,
                                                        int column)
Gets the spread sheet cell format at.

Parameters:
row - the row
column - the column
Returns:
the spread sheet cell format at

getSpreadSheetConditionalFormatAt

public SpreadSheetConditionalFormat getSpreadSheetConditionalFormatAt(int row,
                                                                      int column)
Gets the spread sheet conditional format at.

Parameters:
row - the row
column - the column
Returns:
the spread sheet conditional format at

onUpdateSheetConditionalFormatResponse

public void onUpdateSheetConditionalFormatResponse(UpdateSheetConditionalFormatResponse updateSheetConditionalFormatResponse)
On update sheet conditional format response.

Parameters:
updateSheetConditionalFormatResponse - the update sheet conditional format response

isShowingFormula

public boolean isShowingFormula()
Checks if is showing formula.

Returns:
true, if is showing formula

switchShowingFormula

public void switchShowingFormula(boolean showingFormula)
Switch showing formula.

Parameters:
showingFormula - the showing formula

addDropShadow

public void addDropShadow(java.util.Set<java.lang.String> cellRefs)
Adds the drop shadow.

Parameters:
cellRefs - the cell refs

isDropShadow

public boolean isDropShadow(int row,
                            int column)
Checks if is drop shadow.

Parameters:
row - the row
column - the column
Returns:
true, if is drop shadow