|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JTable
org.jdesktop.swing.JXTable
JXTable
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JTable |
JTable.AccessibleJTable |
| Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
protected FilterPipeline |
filters
|
protected HighlighterPipeline |
highlighters
|
static int |
PRINT_MODE_FIT_WIDTH
Printing mode that scales the output smaller, if necessary, to fit the table's entire width (and thereby all columns) on each page; Rows are spread across multiple pages as necessary |
static int |
PRINT_MODE_NORMAL
Printing mode that prints the table at its current size, spreading both columns and rows across multiple pages if necessary. |
protected Sorter |
sorter
|
static boolean |
TRACE
|
| Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
JXTable()
|
|
JXTable(int numRows,
int numColumns)
|
|
JXTable(Object[][] rowData,
Object[] columnNames)
|
|
JXTable(TableModel dm)
|
|
JXTable(TableModel dm,
TableColumnModel cm)
|
|
JXTable(TableModel dm,
TableColumnModel cm,
ListSelectionModel sm)
|
|
JXTable(Vector rowData,
Vector columnNames)
|
|
| Method Summary | |
void |
contentsChanged(PipelineEvent e)
Sent when the pipeline has changed in any way. |
int |
convertRowIndexToModel(int row)
Convert row index from view coordinates to model coordinates accounting for the presence of sorters and filters. |
int |
convertRowIndexToView(int row)
Convert row index from model coordinates to view coordinates accounting for the presence of sorters and filters. |
void |
createDefaultColumnsFromModel()
|
protected TableModel |
createDefaultDataModel()
Returns the default table model object, which is a DefaultTableModel. |
TableColumnExt |
getColumnExt(int viewColumnIndex)
|
TableColumnExt |
getColumnExt(Object identifier)
|
int |
getColumnMargin()
Returns the margin between columns. |
List |
getColumns()
|
protected ComponentAdapter |
getComponentAdapter()
|
FilterPipeline |
getFilters()
|
HighlighterPipeline |
getHighlighters()
|
Dimension |
getPreferredScrollableViewportSize()
|
Printable |
getPrintable(int printMode,
MessageFormat headerFormat,
MessageFormat footerFormat)
Return a Printable for use in printing this JTable. |
int |
getRowCount()
|
int |
getSelectionMode()
Returns the selection mode used by this table's selection model. |
Sorter |
getSorter(int columnIndex)
|
Object |
getValueAt(int row,
int column)
|
int |
getVisibleRowCount()
|
protected void |
init()
|
boolean |
isCellEditable(int row,
int column)
|
boolean |
isPrinting()
|
Component |
prepareRenderer(TableCellRenderer renderer,
int row,
int column)
Returns the decorated Component used as a stamp to render
the specified cell. |
boolean |
print()
A convenience method that displays a printing dialog, and then prints this JTable in mode PRINT_MODE_FIT_WIDTH,
with no header or footer text. |
boolean |
print(int printMode)
A convenience method that displays a printing dialog, and then prints this JTable in the given printing mode,
with no header or footer text. |
boolean |
print(int printMode,
MessageFormat headerFormat,
MessageFormat footerFormat)
A convenience method that displays a printing dialog, and then prints this JTable in the given printing mode,
with the specified header and footer text. |
boolean |
print(int printMode,
MessageFormat headerFormat,
MessageFormat footerFormat,
boolean showPrintDialog,
PrintRequestAttributeSet attr)
Print this JTable. |
protected void |
removeColumns()
Remove all columns |
protected void |
resetSorter()
|
int |
search(Pattern pattern)
|
int |
search(Pattern pattern,
int startIndex)
Search for the pattern from the start index. |
int |
search(Pattern pattern,
int startIndex,
boolean backwards)
Search for the pattern from the start index. |
int |
search(String searchString)
Search from the beginning of a document |
int |
search(String searchString,
int columnIndex)
|
void |
setColumnMargin(int value)
Sets the margin between columns. |
void |
setFilters(FilterPipeline pipeline)
|
void |
setHighlighters(HighlighterPipeline pipeline)
|
void |
setModel(TableModel newModel)
|
protected void |
setSorter(int columnIndex)
|
void |
setTableHeader(JTableHeader tableHeader)
Adds private mouse listener to the table header (for sorting support) before handing it off to the super class for processing. |
void |
setValueAt(Object aValue,
int row,
int column)
|
void |
setVisibleRowCount(int visibleRowCount)
|
void |
tableChanged(TableModelEvent e)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static boolean TRACE
public static final int PRINT_MODE_NORMAL
public static final int PRINT_MODE_FIT_WIDTH
protected Sorter sorter
protected FilterPipeline filters
protected HighlighterPipeline highlighters
| Constructor Detail |
public JXTable()
public JXTable(TableModel dm)
public JXTable(TableModel dm,
TableColumnModel cm)
public JXTable(TableModel dm,
TableColumnModel cm,
ListSelectionModel sm)
public JXTable(int numRows,
int numColumns)