Example usage for Java javax.swing.table TableColumn fields, constructors, methods, implement or subclass
The text is from its open source code.
TableColumn(int modelIndex) Cover method, using a default width of 75, a null renderer and a null editor. | |
TableColumn(int modelIndex, int width, TableCellRenderer cellRenderer, TableCellEditor cellEditor) Creates and initializes an instance of TableColumn with the specified model index, width, cell renderer, and cell editor; all TableColumn constructors delegate to this one. | |
TableColumn() Cover method, using a default model index of 0, default width of 75, a null renderer and a null editor. | |
TableColumn(int modelIndex, int width) Cover method, using a null renderer and a null editor. |
void | addPropertyChangeListener(PropertyChangeListener listener) Adds a PropertyChangeListener to the listener list. |
TableCellEditor | getCellEditor() Returns the TableCellEditor used by the JTable to edit values for this column. |
TableCellRenderer | getCellRenderer() Returns the TableCellRenderer used by the JTable to draw values for this column. |
TableCellRenderer | getHeaderRenderer() Returns the TableCellRenderer used to draw the header of the TableColumn . |
Object | getHeaderValue() Returns the Object used as the value for the header renderer. |
Object | getIdentifier() Returns the identifier object for this column. |
int | getModelIndex() Returns the model index for this column. |
int | getPreferredWidth() Returns the preferred width of the TableColumn . |
int | getWidth() Returns the width of the TableColumn . |
void | setCellEditor(TableCellEditor cellEditor) Sets the editor to used by when a cell in this column is edited. |
void | setCellRenderer(TableCellRenderer cellRenderer) Sets the TableCellRenderer used by JTable to draw individual values for this column. |
void | setHeaderRenderer(TableCellRenderer headerRenderer) Sets the TableCellRenderer used to draw the TableColumn 's header to headerRenderer . |
void | setHeaderValue(Object headerValue) Sets the Object whose string representation will be used as the value for the headerRenderer . |
void | setIdentifier(Object identifier) Sets the TableColumn 's identifier to anIdentifier . |
void | setMaxWidth(int maxWidth) Sets the TableColumn 's maximum width to maxWidth or, if maxWidth is less than the minimum width, to the minimum width. |
void | setMinWidth(int minWidth) Sets the TableColumn 's minimum width to minWidth , adjusting the new minimum width if necessary to ensure that 0 <= minWidth <= maxWidth . |
void | setModelIndex(int modelIndex) Sets the model index for this column. |
void | setPreferredWidth(int preferredWidth) Sets this column's preferred width to preferredWidth . |
void | setResizable(boolean isResizable) Sets whether this column can be resized. |
void | setWidth(int width) This method should not be used to set the widths of columns in the JTable , use setPreferredWidth instead. |
void | sizeWidthToFit() Resizes the TableColumn to fit the width of its header cell. |