uic.pjava.widgets.table
Class DefaultTableRow

java.lang.Object
  extended by uic.pjava.widgets.table.DefaultTableRow
All Implemented Interfaces:
TableRow

public class DefaultTableRow
extends Object
implements TableRow

AWT Based Table component, one single row default implementation Warning: Use of this component directly can be dangerous... API is absolutely going to change in the near future


Constructor Summary
DefaultTableRow(Object[] rowData)
           
 
Method Summary
 int compareTo(TableRow other, int column)
           
 boolean editCell(int column, int x, int y)
           
 int getColumnWidth(int column, Font f)
           
 int getHeight()
           
 Object getValueAt(int column)
           
protected  void paintBoolean(Graphics g, Rectangle r, boolean value)
           
 void paintColumn(Graphics g, int column, int width, boolean selected)
           
 void setValueAt(Object value, int column)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultTableRow

public DefaultTableRow(Object[] rowData)
Method Detail

paintColumn

public void paintColumn(Graphics g,
                        int column,
                        int width,
                        boolean selected)
Specified by:
paintColumn in interface TableRow

paintBoolean

protected void paintBoolean(Graphics g,
                            Rectangle r,
                            boolean value)

getHeight

public int getHeight()
Specified by:
getHeight in interface TableRow

getValueAt

public Object getValueAt(int column)
Specified by:
getValueAt in interface TableRow

setValueAt

public void setValueAt(Object value,
                       int column)
Specified by:
setValueAt in interface TableRow

editCell

public boolean editCell(int column,
                        int x,
                        int y)
Specified by:
editCell in interface TableRow

getColumnWidth

public int getColumnWidth(int column,
                          Font f)
Specified by:
getColumnWidth in interface TableRow

compareTo

public int compareTo(TableRow other,
                     int column)
Specified by:
compareTo in interface TableRow

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2004 Thomas Zander Available under the Free Apache licence