Package com.portal.app.cc.comp
Class PTableCellRendererUtil
java.lang.Object
com.portal.app.cc.comp.PTableCellRendererUtil
This class takes care of setting a table column's horizontal alignment to
SwingConstants.LEFT, SwingConstants.CENTER, or SwingConstants.RIGHT.
Two convenience functions provided for seting a column or a list of columns
to RIGHT alignment.
These three functions need to be called after setIdxDisplayFieldFormat, since
this function will create a TableCellRenderer internally.
- Version:
- %version: 1 % %date_modified: Thu May 31 18:02:40 2001 %
- Author:
- simonw
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
setAlignment
(JTable table, int col, int alignment) Sets a column's alignment toalighment
supplied.static void
setAlignmentToRight
(JTable table, int col) Sets a column's alignment to SwingConstants.RIGHT.static void
setAlignmentToRight
(JTable table, int[] col) Sets a list of columns' alignment to SwingConstants.RIGHT.
-
Method Details
-
setAlignmentToRight
Sets a column's alignment to SwingConstants.RIGHT.- Parameters:
table
- will be a PIASpecSpreadSheet in most casescol
- the column number
-
setAlignmentToRight
Sets a list of columns' alignment to SwingConstants.RIGHT.- Parameters:
table
- will be a PIASpecSpreadSheet in most casescol
- the column number array
-
setAlignment
Sets a column's alignment toalighment
supplied.- Parameters:
table
- will be a PIASpecSpreadSheet in most casescol
- the column numberalignment
- a SwingConstants, LEFT, RIGHT, or CENTER
-