|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JScrollPane com.jidesoft.swing.JideScrollPane com.jidesoft.grid.TableScrollPane com.jidesoft.pivot.AggregateTablePane
public class AggregateTablePane
A TableScrollPane
which uses AggregateTable as the row header table to implement the freeze column
feature on an AggregateTable.
// After you create the AggregrateTablePane instance, you can add a CachedTableModel wrapper to improve the performance.
_aggregateTablePane.setTableModel(new CachedTableModel(_aggregateTablePane.getTableModel()));
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.jidesoft.grid.TableScrollPane |
---|
TableScrollPane.TablePosition |
Nested classes/interfaces inherited from class javax.swing.JScrollPane |
---|
JScrollPane.AccessibleJScrollPane, JScrollPane.ScrollBar |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JScrollPane |
---|
columnHeader, horizontalScrollBar, horizontalScrollBarPolicy, lowerLeft, lowerRight, rowHeader, upperLeft, upperRight, verticalScrollBar, verticalScrollBarPolicy, viewport |
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 com.jidesoft.swing.JideScrollPaneConstants |
---|
COLUMN_FOOTER, HORIZONTAL_LEADING, HORIZONTAL_LEFT, HORIZONTAL_RIGHT, HORIZONTAL_TRAILING, ROW_FOOTER, SUB_COLUMN_HEADER, SUB_UPPER_LEFT, SUB_UPPER_RIGHT, VERTICAL_BOTTOM, VERTICAL_TOP |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
AggregateTablePane(MultiTableModel model)
|
|
AggregateTablePane(TableModel model,
int[] column)
|
|
AggregateTablePane(TableModel model,
String[] columnNames)
|
Method Summary | |
---|---|
protected TableModel |
createSortableTableModel(MultiTableModel tableModel,
boolean sortable)
Creates a SortableAggregateTableModel or regular SortableTableModel for the MultiTableModel if isSortable() is true. |
protected JTable |
createTable(TableModel model,
boolean sortable,
int type)
Creates the table. |
AggregateTableModel |
getAggregateTableModel()
Gets the underlying AggregateTableModel. |
void |
setTableModel(MultiTableModel tableModel)
Sets the original table model and recreates all child tables. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AggregateTablePane(MultiTableModel model)
public AggregateTablePane(TableModel model, String[] columnNames)
public AggregateTablePane(TableModel model, int[] column)
Method Detail |
---|
public void setTableModel(MultiTableModel tableModel)
setTableModel
in class TableScrollPane
tableModel
- the new MultiTableModelpublic AggregateTableModel getAggregateTableModel()
protected JTable createTable(TableModel model, boolean sortable, int type)
TableScrollPane
TableScrollPane.getTableCustomizer()
.
The default implementation of this method is like below:
return createTable(model, sortable);
As you can see at that method, it will return a SortableTable by default. If you want to use another table such
as TreeTable, you can override this method and use parameters type and table Index to determine it is row header
table, then return a TreeTable instead.
createTable
in class TableScrollPane
model
- the table modelsortable
- true or false.type
- the valid values are MultiTableModel.REGULAR_COLUMN
, MultiTableModel.HEADER_COLUMN
and MultiTableModel.FOOTER_COLUMN
protected TableModel createSortableTableModel(MultiTableModel tableModel, boolean sortable)
createSortableTableModel
in class TableScrollPane
tableModel
- the MultiTableModelsortable
- true or false. If true, the tableModel should be wrapped into a SortableAggregateTableModel or
regular SortableTableModel.
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |