com.objexcel.gui
Class ObjexcelTableCellRenderer
java.lang.Object
|
+--com.objexcel.gui.ObjexcelTableCellRenderer
- public final class ObjexcelTableCellRenderer
- extends java.lang.Object
- implements javax.swing.table.TableCellRenderer
supports rendering of dates, integers, ircolortext and progress bars
Field Summary |
static int |
LABEL
this type renders labels |
static javax.swing.border.Border |
NOFOCUSBORDER
|
static int |
PROGRESSBAR
this type renders progress bars |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
NOFOCUSBORDER
public static final javax.swing.border.Border NOFOCUSBORDER
PROGRESSBAR
public static int PROGRESSBAR
- this type renders progress bars
LABEL
public static int LABEL
- this type renders labels
getInstance
public static ObjexcelTableCellRenderer getInstance(int type)
- use this singleton method so we can share the renderer between tables.
setForeground
public void setForeground(java.awt.Color c)
setBackground
public void setBackground(java.awt.Color c)
updateUI
public void updateUI()
getTableCellRendererComponent
public java.awt.Component getTableCellRendererComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
- Specified by:
- getTableCellRendererComponent in interface javax.swing.table.TableCellRenderer