|
JIDE 2.9.5 | ||||||||
| 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.
| 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_FILL_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. |
protected void |
handleMouseEvent(MouseEvent e)
Handles the mouse event. |
| 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
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 event
|
JIDE 2.9.5 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||