p3j.gui.panels.matrices
Class GridHeaderModel

java.lang.Object
  extended by net.sf.jeppers.grid.AbstractGridModel
      extended by p3j.gui.panels.matrices.GridHeaderModel
All Implemented Interfaces:
net.sf.jeppers.grid.GridModel

public class GridHeaderModel
extends net.sf.jeppers.grid.AbstractGridModel

A model implementation for grid headers. Applies to both row and column headers. Created on January 14, 2007

Author:
Christina Bohk, Roland Ewald

Field Summary
 
Fields inherited from class net.sf.jeppers.grid.AbstractGridModel
listenerList
 
Constructor Summary
GridHeaderModel(net.sf.jeppers.grid.RulerModel columnModel, String pref, boolean sw1, boolean isCol)
          Default constructor.
 
Method Summary
 int getColumnCount()
           
 int getRowCount()
           
 Object getValueAt(int row, int column)
           
 boolean isCellEditable(int row, int column)
           
 void setValueAt(Object value, int row, int column)
           
 
Methods inherited from class net.sf.jeppers.grid.AbstractGridModel
addGridModelListener, fireGridCellUpdated, fireGridChanged, fireGridColumnsDeleted, fireGridColumnsInserted, fireGridColumnsUpdated, fireGridModelChanged, fireGridRowsDeleted, fireGridRowsInserted, fireGridRowsUpdated, getListeners, removeGridModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GridHeaderModel

public GridHeaderModel(net.sf.jeppers.grid.RulerModel columnModel,
                       String pref,
                       boolean sw1,
                       boolean isCol)
Default constructor.

Parameters:
columnModel - column model
pref - prefix
sw1 - flag to indicate whether enumeration starts with 1
isCol - true, if this header model is for a column
Method Detail

getValueAt

public Object getValueAt(int row,
                         int column)

isCellEditable

public boolean isCellEditable(int row,
                              int column)

setValueAt

public void setValueAt(Object value,
                       int row,
                       int column)

getRowCount

public int getRowCount()

getColumnCount

public int getColumnCount()


Copyright © 2012. All Rights Reserved.