|
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.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, PROPERTY_PAINT_CELL_SPAN_AS_SELECTED |
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. |
String |
getTableHeaderToolTipText(MouseEvent event)
Gets the TableHeader's tooltip at the location of mouse event. |
protected void |
handleMouseEvent(MouseEvent e)
Handles the mouse event. |
boolean |
isSpecialColumnsHidable()
Gets the flag indicating if the special columns like count, group columns are hidable or not by TableColumnChooserPopupMenuCustomizer. |
void |
setSpecialColumnsHidable(boolean specialColumnsHidable)
Sets the flag indicating if the special columns like count, group columns are hidable or not by TableColumnChooserPopupMenuCustomizer. |
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)
ContextSensitiveTable
ContextSensitiveTable.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 TreeTable
rowIndex
- 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)
JideTable
TableModel
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 TableModelListener
tableChanged
in class TreeTable
protected void handleMouseEvent(MouseEvent e)
TreeTable
TreeTable.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 TreeTable
e
- the mouse eventpublic String getTableHeaderToolTipText(MouseEvent event)
JideTable
getTableHeaderToolTipText
in class JideTable
event
- the mouse event.
public boolean isSpecialColumnsHidable()
setSpecialColumnsHidable(boolean)
public void setSpecialColumnsHidable(boolean specialColumnsHidable)
specialColumnsHidable
- the flag
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |