tecgraf.javautils.gui.print
Class LargeColumnModel

java.lang.Object
  extended by tecgraf.javautils.gui.print.LargeColumnModel
All Implemented Interfaces:
TableModel

public class LargeColumnModel
extends Object
implements TableModel

Modelo da tabela a ser impressa com uma coluna muito grande. Esta coluna não será impressa como coluna, mas como uma nova linha abaixo da linha original.


Constructor Summary
LargeColumnModel(TableModel model, int largeCol)
          Construtor.
 
Method Summary
 void addTableModelListener(TableModelListener l)
          
 Class<?> getColumnClass(int columnIndex)
          
 int getColumnCount()
          
 String getColumnName(int columnIndex)
          
 BitSet getInsertedRows()
          Obtém as linhas inseridas no modelo.
 int getLargeCol()
          Obtém a coluna muito grande a ser impressa como uma linha.
 int getRowCount()
          
 Object getValueAt(int rowIndex, int columnIndex)
          
 boolean isCellEditable(int rowIndex, int columnIndex)
          
 void removeTableModelListener(TableModelListener l)
          
 void setValueAt(Object aValue, int rowIndex, int columnIndex)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LargeColumnModel

public LargeColumnModel(TableModel model,
                        int largeCol)
Construtor.

Parameters:
model - modelo da tabela a ser impressa.
largeCol - coluna muito grande a ser impressa como uma linha.
Method Detail

addTableModelListener

public void addTableModelListener(TableModelListener l)

Specified by:
addTableModelListener in interface TableModel

getColumnClass

public Class<?> getColumnClass(int columnIndex)

Specified by:
getColumnClass in interface TableModel

getColumnCount

public int getColumnCount()

Specified by:
getColumnCount in interface TableModel

getColumnName

public String getColumnName(int columnIndex)

Specified by:
getColumnName in interface TableModel

getRowCount

public int getRowCount()

Specified by:
getRowCount in interface TableModel

getValueAt

public Object getValueAt(int rowIndex,
                         int columnIndex)

Specified by:
getValueAt in interface TableModel

isCellEditable

public boolean isCellEditable(int rowIndex,
                              int columnIndex)

Specified by:
isCellEditable in interface TableModel

removeTableModelListener

public void removeTableModelListener(TableModelListener l)

Specified by:
removeTableModelListener in interface TableModel

setValueAt

public void setValueAt(Object aValue,
                       int rowIndex,
                       int columnIndex)

Specified by:
setValueAt in interface TableModel

getInsertedRows

public BitSet getInsertedRows()
Obtém as linhas inseridas no modelo.

Returns:
linhas inseridas no modelo.

getLargeCol

public int getLargeCol()
Obtém a coluna muito grande a ser impressa como uma linha.

Returns:
coluna muito grande a ser impressa como uma linha.


Copyright © 2014 Tecgraf/PUC-Rio. All rights reserved.