|
JIDE 3.5.15 | ||||||||
| 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.pivot.DataTable
public class DataTable
The table used by the PivotTablePane in the viewport area.
| Nested Class Summary | |
|---|---|
protected class |
DataTable.PopupMenuMouseListener
|
| 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.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 | |
|---|---|
DataTable(PivotTablePane pivotTablePane)
|
|
| Method Summary | |
|---|---|
void |
addColumn(TableColumn column)
Overrides this method to skip the column that is being added when the column was hidden earlier by TableColumnChooser.hideColumn(javax.swing.JTable, int) method. |
protected void |
configureEnclosingScrollPane()
|
protected JPopupMenu |
createContextMenu(int rowIndex,
int columnIndex)
Creates context menu for specific row/column in the data table. |
protected MouseListener |
createPopupMenuMouseListener()
Creates the mouse listener used to handle mouse click on +/- icon. |
PivotTablePane |
getPivotTablePane()
|
Dimension |
getPreferredSize()
|
boolean |
isShowContextMenu()
Gets the flag indicating if context menu should be displayed on right click. |
void |
setPivotTablePane(PivotTablePane pivotTablePane)
|
void |
setShowContextMenu(boolean showContextMenu)
Sets the flag indicating if context menu should be displayed on right click. |
void |
sortBy(int rowIndex,
int columnIndex,
boolean ascending)
Sorts the PivotTablePane by the cell. |
| 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 DataTable(PivotTablePane pivotTablePane)
| Method Detail |
|---|
protected void configureEnclosingScrollPane()
configureEnclosingScrollPane in class JTablepublic PivotTablePane getPivotTablePane()
public void setPivotTablePane(PivotTablePane pivotTablePane)
public void addColumn(TableColumn column)
JideTableTableColumnChooser.hideColumn(javax.swing.JTable, int) method.
addColumn in class JideTablecolumn - the TableColumn to be added.protected MouseListener createPopupMenuMouseListener()
protected JPopupMenu createContextMenu(int rowIndex,
int columnIndex)
rowIndex - the row indexcolumnIndex - the column index
public void sortBy(int rowIndex,
int columnIndex,
boolean ascending)
rowIndex - the row index in the data tablecolumnIndex - the column index in the data tableascending - true to sort ascendingly and false to sort descending.public Dimension getPreferredSize()
getPreferredSize in class JComponentpublic boolean isShowContextMenu()
setShowContextMenu(boolean)public void setShowContextMenu(boolean showContextMenu)
showContextMenu - the flag
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||