|
JIDE 3.3.1 | ||||||||
| 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
com.jidesoft.grid.JideTable
com.jidesoft.grid.ContextSensitiveTable
com.jidesoft.grid.NavigableTable
com.jidesoft.grid.CellStyleTable
com.jidesoft.grid.CellSpanTable
com.jidesoft.grid.CategorizedTable
com.jidesoft.grid.SortableTable
com.jidesoft.grid.TreeTable
com.jidesoft.grid.GroupTable
public class GroupTable
GroupTable is a special TreeTable that can group rows who has the same value in certain
column into a group. It is an implementation that is very similar to the table used in Microsoft Outlook Inbox
table.
JTable.getAutoCreateColumnsFromModel() has to be true to make the grouping/ungrouping procedure
work correctly.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.jidesoft.grid.TreeTable |
|---|
TreeTable.DelegateExpandMouseInputListener, TreeTable.ExpandMouseListener, TreeTable.TreeTableAction |
| Nested classes/interfaces inherited from class com.jidesoft.grid.CellSpanTable |
|---|
CellSpanTable.DelegateAction |
| Nested classes/interfaces inherited from class com.jidesoft.grid.JideTable |
|---|
JideTable.NonContiguousTransferHandler |
| Nested classes/interfaces inherited from class javax.swing.JTable |
|---|
JTable.AccessibleJTable, JTable.DropLocation, JTable.PrintMode |
| 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 com.jidesoft.grid.TreeTable |
|---|
CLIENT_PROPERTY_DO_NOT_PAINT_CELL_CONTENT_BACKGROUND, PROPERTY_DOUBLE_CLICK_ENABLED, PROPERTY_EXPANDABLE_COLUMN, PROPERTY_SELECT_ROW_WHEN_TOGGLING, PROPERTY_SHOW_LEAF_NODE_TREE_LINES, PROPERTY_SHOW_TREE_LINES, PROPERTY_TREE_LINE_COLOR |
| Fields inherited from class com.jidesoft.grid.SortableTable |
|---|
MULTICOLUMN_SORTABLE_PROPERTY, PROPERTY_SHOW_SORT_ORDER_NUMBER, SORTABLE_PROPERTY |
| Fields inherited from class com.jidesoft.grid.CategorizedTable |
|---|
DEFAULT_ASCENDING_ICON, DEFAULT_DESCENDING_ICON, PROPERTY_EXPAND_ICON_VISIBLE |
| Fields inherited from class com.jidesoft.grid.CellSpanTable |
|---|
AUTO_CELL_MERGE_COLUMNS, AUTO_CELL_MERGE_COLUMNS_LIMITED, AUTO_CELL_MERGE_OFF, AUTO_CELL_MERGE_ROWS, AUTO_CELL_MERGE_ROWS_LIMITED, PROPERTY_AUTO_CONVERT_CELL_SPAN |
| Fields inherited from class com.jidesoft.grid.CellStyleTable |
|---|
_cellStyleList, PROPERTY_FILLS_SELECTION, PROPERTY_FILLS_VIEWPORT_WITH_STRIPE |
| 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 | |
|---|---|
GroupTable()
|
|
GroupTable(int numRows,
int numColumns)
|
|
GroupTable(Object[][] rowData,
Object[] columnNames)
|
|
GroupTable(TableModel dm)
|
|
GroupTable(TableModel dm,
TableColumnModel cm)
|
|
GroupTable(TableModel dm,
TableColumnModel cm,
ListSelectionModel sm)
|
|
GroupTable(Vector rowData,
Vector columnNames)
|
|
| Method Summary | |
|---|---|
TableCellRenderer |
getCellRenderer(int rowIndex,
int columnIndex)
Returns an appropriate renderer for the cell specified by this row and column. |
CellSpan |
getCellSpanAt(SpanModel spanModel,
int row,
int column)
Gets the cell span at the specified cells. |
String |
getTableHeaderToolTipText(MouseEvent event)
Gets the TableHeader's tooltip at the location of mouse event. |
protected void |
handleMouseEvent(MouseEvent e)
Handles the mouse event. |
void |
tableChanged(TableModelEvent e)
Invoked when this table's TableModel generates a TableModelEvent. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.jidesoft.grid.TableAdapter |
|---|
getCellSelectionEnabled, getColumnClass, getColumnCount, getColumnName, getColumnSelectionAllowed, getRowCount, getRowSelectionAllowed, isCellEditable, setCellSelectionEnabled, setValueAt |
| Constructor Detail |
|---|
public GroupTable()
public GroupTable(int numRows,
int numColumns)
public GroupTable(TableModel dm)
public GroupTable(Object[][] rowData,
Object[] columnNames)
public GroupTable(Vector rowData,
Vector columnNames)
public GroupTable(TableModel dm,
TableColumnModel cm)
public GroupTable(TableModel dm,
TableColumnModel cm,
ListSelectionModel sm)
| Method Detail |
|---|
public TableCellRenderer getCellRenderer(int rowIndex,
int columnIndex)
ContextSensitiveTableContextSensitiveTable.getDefaultCellRenderer() method. If null, it will check is ContextSensitiveTable.isCellRendererManagerEnabled() is true. If true, it will look for the cell renderer that assigned to the
specific column. Only if the renderer is still null, it will use the EditorContext information from
ContextSensitiveTableModel and get the correct CellRedenerer from the CellRendererManager. In any case, if we
can't determine a cell renderer, we will call super.getCellRenderer(row, column) just like regular JTable.
getCellRenderer in class TreeTablerowIndex - the row of the cell to render, where 0 is the first rowcolumnIndex - the column of the cell to render, where 0 is the first column
public void tableChanged(TableModelEvent e)
JideTableTableModel generates a TableModelEvent. The
TableModelEvent should be constructed in the coordinate system of the model; the appropriate mapping
to the view coordinate system is performed by this JTable when it receives the event.
Application code will not use these methods explicitly, they are used internally by JTable.
tableChanged in interface TableModelListenertableChanged in class TreeTable
public CellSpan getCellSpanAt(SpanModel spanModel,
int row,
int column)
CellSpanTableCellSpanTable.convertModelCellSpanToView(CellSpan) to do auto conversion from model to view if CellSpanTable.isAutoConvertCellSpan() is true. If CellSpanTable.isAutoConvertCellSpan() is false, this method is the same as
tableModel.getCellSpanAt(row, column).
Please note, you should use CellSpanTable.getCellSpanAt(int, int) method instead of using this method directly in most
cases because this method will not look at CellSpanTable.isCellSpanOn() value when returning the cell span. In the
other word, even if CellSpanTable.isCellSpanOn() returns false, this method could still return a valid cell span. In
comparison, CellSpanTable.getCellSpanAt(int, int) will always return null if CellSpanTable.isCellSpanOn() returns false.
getCellSpanAt in class CellSpanTablespanModel - the SpanModelrow - the row indexcolumn - the column index
protected void handleMouseEvent(MouseEvent e)
TreeTableTreeTable.isDoubleClickEnabled() is true, double click on the row any place other than +/- icon will
expand/collapse the row as well.
Please note, since 1.9.4.10 release, we change the signature of this method to return boolean. If you override
this method before, you will get a compile error. Simply change the overridden method to return boolean will fix
it.
handleMouseEvent in class TreeTablee - the mouse eventpublic String getTableHeaderToolTipText(MouseEvent event)
JideTable
getTableHeaderToolTipText in class JideTableevent - the mouse event.
|
JIDE 3.3.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||