public class TTable extends ResizableTable
TTableModel
as the table model.
Note: In TWaver, if developers need a table component to work
with network component or tree component, or like to use
TDataBox
as the model for tree component to benefit from
the MVC architecture of TWaver framework, we recommend
you use TElementTable
instead of this TTable.
javax.swing.JTable.AccessibleJTable, javax.swing.JTable.DropLocation, javax.swing.JTable.PrintMode
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CHECK_COLUMN
Indicate the CheckBox table column
|
static java.lang.String |
OID_COLUMN
Indicate OID table column
|
protected TTableModel |
tableModel |
static java.lang.String |
TREE_COLUMN
Indicate the tree-column for tree table.
|
AUTO_RESIZE_ALL_COLUMNS, AUTO_RESIZE_LAST_COLUMN, AUTO_RESIZE_NEXT_COLUMN, AUTO_RESIZE_OFF, AUTO_RESIZE_SUBSEQUENT_COLUMNS, autoCreateColumnsFromModel, autoResizeMode, cellEditor, cellSelectionEnabled, columnModel, dataModel, defaultEditorsByColumnClass, defaultRenderersByColumnClass, editingColumn, editingRow, editorComp, gridColor, preferredViewportSize, rowHeight, rowMargin, rowSelectionAllowed, selectionBackground, selectionForeground, selectionModel, showHorizontalLines, showVerticalLines, tableHeader
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
TTable()
Default constructor.
|
TTable(java.lang.String tableName)
Construct a TWaver table by the given table name which is defined in TWaver.xml.
|
Modifier and Type | Method and Description |
---|---|
void |
addColumns(java.util.List columnList)
Add specified table columns into this table.
|
void |
addRowFilter(TTableRowFilter rowFilter)
Add a row filter on this table.
|
void |
addTableListener(TTableListener l)
Add a TWaver table listener on this table.
|
void |
cleanDirtyState()
Calls this method to force this table model to publish data.
|
protected javax.swing.table.TableColumnModel |
createDefaultColumnModel() |
protected TTableModel |
createTTableModel()
Create a TWaver table model according to this table.
|
void |
ensureVisible(java.util.Vector rowData)
Scrolls the table to make the specified
table row becomes visible, as far as possible.
|
void |
ensureVisibleAtCurrentPage(java.util.Vector rowData)
Scrolls the table to make the specified
table row of current page becomes visible, as far as possible.
|
java.util.List |
filterBottomRows(java.util.List publishedData) |
java.util.List |
filterTopRows(java.util.List publishedData) |
javax.swing.table.TableCellEditor |
getCellEditor(int row,
int column)
Get cell editor at given location
|
CellEditorManager |
getCellEditorManager()
Get table cell editor manager.
|
javax.swing.table.TableCellRenderer |
getCellRenderer(int row,
int column)
Get cell renderer at given location.
|
CellRendererManager |
getCellRendererManager()
Get table cell renderer manager.
|
TTableColumn |
getCheckColumn()
Gets the internal "checkbox" column.
|
TTableColumn |
getColumnByIndex(int columnIndex)
Get column by the specified column index.
|
TTableColumn |
getColumnByName(java.lang.String name)
Get table column by the specified column name
|
ColumnVisibleFilter |
getColumnVisibleFilter()
Gets the column visible filter.
|
java.awt.event.MouseEvent |
getCurrentMouseEvent() |
TTableColumn |
getOIDColumn()
Gets the internal OID column.
|
java.util.Vector |
getRowDataByRowIndex(int rowIndex)
Gets row data of the specified row.
|
boolean |
getScrollableTracksViewportHeight()
If there are no rows in JTable, the height of the JTable is zero.
|
boolean |
getScrollableTracksViewportWidth()
If there are no rows in JTable, the width of the JTable is zero.
|
java.util.List |
getSortColumnList()
Get all sorted columns with a list.
|
TTablePopupMenuFactory |
getTableBodyPopupMenuFactory()
Get popup menu factory for this table body.
|
TTablePopupMenuFactory |
getTableHeaderPopupMenuFactory()
Get popup menu factory for this table header.
|
int |
getTableHeadHorizontalAlignment()
Returns the alignment of the label's contents along the X axis.
|
TTableModel |
getTableModel()
Get connected TWaver table model for this table component.
|
protected void |
initInputHandler()
Initialize table input handler
|
boolean |
isClearSelectionOnMarginClicked()
Checks whether mouse click table margin (blank area) will clear
current table selection.
|
boolean |
isDistinctSortableHeader() |
protected boolean |
isEditable(int rowIndex)
Checks whether the specified row is editable.
|
boolean |
isEnableRightClickEvent() |
boolean |
isEnableTristateSorting()
Checks whether to enable tristate sorting for table column.
|
boolean |
isLazyPublishMode()
Determines whether this table uses lazy publish mode.
|
boolean |
isLocalSortable()
Determines whether this table is local sortable.
|
boolean |
isMultiColumnSortable()
Check whether support multiple-column-sorting.
|
boolean |
isPredefinedColumn(TTableColumn column)
Checks whether the given table column is predefined column.
|
boolean |
isPublishable() |
boolean |
isSelectableOnRightClick()
Check whether a mouse right click can make table row selected.
|
boolean |
isShowPredefinedColumnsInPopupMenu()
Checks whether to show predefined columns in popup menu.
|
boolean |
isShowTableHeaderIcon()
Determines whether to show icon on table header.
|
boolean |
isSortable()
Check whether this table is able to sort on table
column header clicked.
|
boolean |
isVisible(TTableColumn column)
Checks whether the table column is visible on this table.
|
void |
packColumn(java.lang.String columnName,
boolean considerHeader)
Pack given table column to its preferred width.
|
void |
paint(java.awt.Graphics g) |
void |
prepareTableHeaderRenderer(javax.swing.JLabel renderer,
TTableColumn tableColumn) |
void |
removeColumn(javax.swing.table.TableColumn column)
Remove a table column from this table component.
|
void |
removeColumnByName(java.lang.String columnName)
Remove a table column from table component by column name.
|
void |
removeRowFilter(TTableRowFilter rowFilter)
Remove a row filter on this table.
|
void |
removeTableListener(TTableListener l)
Remove a TWaver table from this table.
|
void |
selectRowDatas(java.util.Collection selectedRowDatas) |
void |
setClearSelectionOnMarginClicked(boolean isClearSelectionOnMarginClicked)
Set whether mouse click table margin (blank area) will clear
current table selection.
|
void |
setColumnVisibleFilter(ColumnVisibleFilter columnVisibleFilter)
Sets the column visible filter.
|
void |
setCurrentMouseEvent(java.awt.event.MouseEvent currentMouseEvent) |
void |
setDistinctSortableHeader(boolean distinctSortableHeader) |
void |
setEnableRightClickEvent(boolean isEnableRightClickEvent) |
void |
setEnableTristateSorting(boolean enableTristateSorting)
Sets whether to enable tristate sorting for table column.
|
void |
setLazyPublishMode(boolean lazyPublishMode)
Sets whether the table should use the lazy publish mode.
|
void |
setLocalSortable(boolean isLocalSortable)
Sets whether this table is local sortable.
|
void |
setMultiColumnSortable(boolean isMultiColumnSortable)
Set whether support multiple-column-sorting.
|
void |
setSelectableOnRightClick(boolean isSelectableOnRightClick)
Set whether a mouse right click can make table row selected.
|
void |
setShowPredefinedColumnsInPopupMenu(boolean showPredefinedColumnsInPopupMenu)
Sets whether to show predefined columns in popup menu.
|
void |
setShowTableHeaderIcon(boolean showTableHeaderIcon)
Sets whether to show icon on table header.
|
void |
setSortable(boolean isSortable)
Set value to determine whether table column is sort
when column header is clicked.
|
void |
setTableBodyPopupMenuFactory(TTablePopupMenuFactory tableBodyPopupMenuFactory)
Set popup menu factory for this table body.
|
void |
setTableHeaderPopupMenuFactory(TTablePopupMenuFactory tableHeadPopupMenuFactory)
Set popup menu factory for this table header.
|
void |
setTableHeadHorizontalAlignment(int alignment)
Sets the alignment of the label's contents along the X axis.
|
void |
sortNoneColumn()
Calls this method to cancel columns sorting.
|
void |
updateUI() |
changeSelection, editCellAt, getResizingColumn, isColumnAutoResizable, isColumnResizable, isHeadAutoResizable, isRowResizable, packAllColumns, packAllColumns, packAllRows, packColumn, packColumn, setColumnAutoResizable, setColumnResizable, setHeadAutoResizable, setRowResizable
addColumn, addColumnSelectionInterval, addNotify, addRowSelectionInterval, clearSelection, columnAdded, columnAtPoint, columnMarginChanged, columnMoved, columnRemoved, columnSelectionChanged, configureEnclosingScrollPane, convertColumnIndexToModel, convertColumnIndexToView, convertRowIndexToModel, convertRowIndexToView, createDefaultColumnsFromModel, createDefaultDataModel, createDefaultEditors, createDefaultRenderers, createDefaultSelectionModel, createDefaultTableHeader, createScrollPaneForTable, doLayout, editCellAt, editingCanceled, editingStopped, getAccessibleContext, getAutoCreateColumnsFromModel, getAutoCreateRowSorter, getAutoResizeMode, getCellEditor, getCellRect, getCellSelectionEnabled, getColumn, getColumnClass, getColumnCount, getColumnModel, getColumnName, getColumnSelectionAllowed, getDefaultEditor, getDefaultRenderer, getDragEnabled, getDropLocation, getDropMode, getEditingColumn, getEditingRow, getEditorComponent, getFillsViewportHeight, getGridColor, getIntercellSpacing, getModel, getPreferredScrollableViewportSize, getPrintable, getRowCount, getRowHeight, getRowHeight, getRowMargin, getRowSelectionAllowed, getRowSorter, getScrollableBlockIncrement, getScrollableUnitIncrement, getSelectedColumn, getSelectedColumnCount, getSelectedColumns, getSelectedRow, getSelectedRowCount, getSelectedRows, getSelectionBackground, getSelectionForeground, getSelectionModel, getShowHorizontalLines, getShowVerticalLines, getSurrendersFocusOnKeystroke, getTableHeader, getToolTipText, getUI, getUIClassID, getUpdateSelectionOnSort, getValueAt, initializeLocalVars, isCellEditable, isCellSelected, isColumnSelected, isEditing, isRowSelected, moveColumn, paramString, prepareEditor, prepareRenderer, print, print, print, print, print, processKeyBinding, removeColumnSelectionInterval, removeEditor, removeNotify, removeRowSelectionInterval, resizeAndRepaint, rowAtPoint, selectAll, setAutoCreateColumnsFromModel, setAutoCreateRowSorter, setAutoResizeMode, setCellEditor, setCellSelectionEnabled, setColumnModel, setColumnSelectionAllowed, setColumnSelectionInterval, setDefaultEditor, setDefaultRenderer, setDragEnabled, setDropMode, setEditingColumn, setEditingRow, setFillsViewportHeight, setGridColor, setIntercellSpacing, setModel, setPreferredScrollableViewportSize, setRowHeight, setRowHeight, setRowMargin, setRowSelectionAllowed, setRowSelectionInterval, setRowSorter, setSelectionBackground, setSelectionForeground, setSelectionMode, setSelectionModel, setShowGrid, setShowHorizontalLines, setShowVerticalLines, setSurrendersFocusOnKeystroke, setTableHeader, setUI, setUpdateSelectionOnSort, setValueAt, sizeColumnsToFit, sizeColumnsToFit, sorterChanged, tableChanged, unconfigureEnclosingScrollPane, valueChanged
addAncestorListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final java.lang.String OID_COLUMN
public static final java.lang.String CHECK_COLUMN
public static final java.lang.String TREE_COLUMN
protected TTableModel tableModel
public TTable()
public TTable(java.lang.String tableName)
tableName
- String table name that defined in TWaver.xmlpublic void paint(java.awt.Graphics g)
paint
in class javax.swing.JComponent
public void cleanDirtyState()
setLazyPublishMode(boolean)
public boolean isPublishable()
protected TTableModel createTTableModel()
protected javax.swing.table.TableColumnModel createDefaultColumnModel()
createDefaultColumnModel
in class javax.swing.JTable
protected void initInputHandler()
initInputHandler
in class ResizableTable
public TTableModel getTableModel()
protected boolean isEditable(int rowIndex)
rowIndex
- the row index to be checked.public CellRendererManager getCellRendererManager()
getCellEditorManager()
public CellEditorManager getCellEditorManager()
getCellRendererManager()
public void packColumn(java.lang.String columnName, boolean considerHeader)
columnName
- String the column name to be packed.considerHeader
- boolean true if consider column header
preferred width, false otherwise.ResizableTable.packAllColumns(boolean)
public javax.swing.table.TableCellRenderer getCellRenderer(int row, int column)
getCellRenderer
in class javax.swing.JTable
row
- int table row indexcolumn
- int table column indexgetCellEditor(int, int)
public javax.swing.table.TableCellEditor getCellEditor(int row, int column)
getCellEditor
in class javax.swing.JTable
row
- int table row indexcolumn
- int table column indexgetCellRenderer(int, int)
public boolean getScrollableTracksViewportHeight()
getScrollableTracksViewportHeight
in interface javax.swing.Scrollable
getScrollableTracksViewportHeight
in class javax.swing.JTable
public boolean getScrollableTracksViewportWidth()
getScrollableTracksViewportWidth
in interface javax.swing.Scrollable
getScrollableTracksViewportWidth
in class javax.swing.JTable
public TTablePopupMenuFactory getTableBodyPopupMenuFactory()
setTableBodyPopupMenuFactory(twaver.table.TTablePopupMenuFactory)
,
#getTableHeadPopupMenuFactory
public void setTableBodyPopupMenuFactory(TTablePopupMenuFactory tableBodyPopupMenuFactory)
tableBodyPopupMenuFactory
- TTablePopupMenuFactory the
table body popup menu factory to be usedgetTableBodyPopupMenuFactory()
,
#setTableHeadPopupMenuFactory
public TTablePopupMenuFactory getTableHeaderPopupMenuFactory()
getTableBodyPopupMenuFactory()
,
setTableHeaderPopupMenuFactory(twaver.table.TTablePopupMenuFactory)
public void setTableHeaderPopupMenuFactory(TTablePopupMenuFactory tableHeadPopupMenuFactory)
tableHeadPopupMenuFactory
- TTablePopupMenuFactory the
table header popup menu factory to be usedgetTableHeaderPopupMenuFactory()
,
setTableBodyPopupMenuFactory(twaver.table.TTablePopupMenuFactory)
public boolean isSortable()
setSortable(boolean)
public void setSortable(boolean isSortable)
isSortable
- boolean true if table is sortable
when column header is clicked, false otherwise.isSortable
public void addColumns(java.util.List columnList)
columnList
- List a list of table columns to be added.removeColumn(javax.swing.table.TableColumn)
public void removeColumn(javax.swing.table.TableColumn column)
removeColumn
in class javax.swing.JTable
column
- TableColumn the table column to be removed
from this tableaddColumns(java.util.List)
public void removeColumnByName(java.lang.String columnName)
columnName
- String the to be removed column's nameremoveColumn(javax.swing.table.TableColumn)
public TTableColumn getColumnByName(java.lang.String name)
name
- String column namepublic TTableColumn getOIDColumn()
getCheckColumn()
public TTableColumn getCheckColumn()
getOIDColumn()
public TTableColumn getColumnByIndex(int columnIndex)
columnIndex
- int column indexpublic java.util.Vector getRowDataByRowIndex(int rowIndex)
rowIndex
- int the row indexpublic boolean isMultiColumnSortable()
setMultiColumnSortable(boolean)
public void setMultiColumnSortable(boolean isMultiColumnSortable)
isMultiColumnSortable
- boolean true if support multiple-column-sorting,
false otherwise.isMultiColumnSortable
public void addRowFilter(TTableRowFilter rowFilter)
rowFilter
- TTableRowFilter table row filter to be addedremoveRowFilter(twaver.table.TTableRowFilter)
public void removeRowFilter(TTableRowFilter rowFilter)
rowFilter
- TTableRowFilter table row filter to be removedaddRowFilter(twaver.table.TTableRowFilter)
public void addTableListener(TTableListener l)
l
- TTableListener the table listener to be addedremoveTableListener(twaver.table.TTableListener)
public void removeTableListener(TTableListener l)
l
- TTableListener the table listener to be removedaddTableListener(twaver.table.TTableListener)
public boolean isSelectableOnRightClick()
setSelectableOnRightClick(boolean)
public void setSelectableOnRightClick(boolean isSelectableOnRightClick)
isSelectableOnRightClick
- boolean true if
a mouse right click can make table row selected,
false otherwise.isSelectableOnRightClick
public boolean isClearSelectionOnMarginClicked()
setClearSelectionOnMarginClicked(boolean)
public void setClearSelectionOnMarginClicked(boolean isClearSelectionOnMarginClicked)
isClearSelectionOnMarginClicked
- boolean true if
mouse click table margin (blank area) will clear
current table selection, false otherwise.isClearSelectionOnMarginClicked
public void ensureVisible(java.util.Vector rowData)
Please note that this method is works even the specified table row is not located in current page. Use #ensureVisibleAtCurrentPage if you want ensure column visible only in current page.
rowData
- Vector the row's data to be ensured visibleensureVisibleAtCurrentPage(java.util.Vector)
public void ensureVisibleAtCurrentPage(java.util.Vector rowData)
Please note that this method is works only if the specified table row is located in current page. Use #ensureVisible if you want ensure column visible no matter which page it located.
rowData
- Vector the data of row to be ensure visibleensureVisible(java.util.Vector)
public boolean isShowPredefinedColumnsInPopupMenu()
public void setShowPredefinedColumnsInPopupMenu(boolean showPredefinedColumnsInPopupMenu)
showPredefinedColumnsInPopupMenu
- True to show predefined columns in popup menu, false otherwise.public boolean isPredefinedColumn(TTableColumn column)
column
- the given table column to be checked.public void updateUI()
updateUI
in class javax.swing.JTable
public boolean isLocalSortable()
setLocalSortable(boolean)
public void setLocalSortable(boolean isLocalSortable)
Local sorting means sort the table column data inside the data box. But when you need to sort data from data base in server side, you can set this value as false, then the table header still can be clicked and represent sorting icon on header, but internally table model will not sort the row data. so user can fill the data box with server side sorted data.
isLocalSortable
- True to enable local sorting, false otherwise.public void setTableHeadHorizontalAlignment(int alignment)
alignment
- One of the following constants
defined in SwingConstants
:
LEFT
,
CENTER
(the default for image-only labels),
RIGHT
,
LEADING
(the default for text-only labels) or
TRAILING
.public int getTableHeadHorizontalAlignment()
SwingConstants
:
LEFT
,
CENTER
,
RIGHT
,
LEADING
or
TRAILING
.public boolean isEnableTristateSorting()
public void setEnableTristateSorting(boolean enableTristateSorting)
enableTristateSorting
- True to enable tristate sorting for table column, false otherwise.public boolean isShowTableHeaderIcon()
public void setShowTableHeaderIcon(boolean showTableHeaderIcon)
showTableHeaderIcon
- True to show icon on table header, false otherwise.public boolean isLazyPublishMode()
setLazyPublishMode(boolean)
public void setLazyPublishMode(boolean lazyPublishMode)
lazyPublishMode
- If true the table should use the lazy publish mode, false otherwise.isLazyPublishMode()
public boolean isVisible(TTableColumn column)
column
- the table column to be checked.setColumnVisibleFilter(ColumnVisibleFilter)
public ColumnVisibleFilter getColumnVisibleFilter()
public void setColumnVisibleFilter(ColumnVisibleFilter columnVisibleFilter)
columnVisibleFilter
- the column visible filter.public java.util.List getSortColumnList()
public void sortNoneColumn()
public java.util.List filterTopRows(java.util.List publishedData)
public java.util.List filterBottomRows(java.util.List publishedData)
public void selectRowDatas(java.util.Collection selectedRowDatas)
public boolean isDistinctSortableHeader()
public void setDistinctSortableHeader(boolean distinctSortableHeader)
public void prepareTableHeaderRenderer(javax.swing.JLabel renderer, TTableColumn tableColumn)
public java.awt.event.MouseEvent getCurrentMouseEvent()
public void setCurrentMouseEvent(java.awt.event.MouseEvent currentMouseEvent)
public boolean isEnableRightClickEvent()
public void setEnableRightClickEvent(boolean isEnableRightClickEvent)
Copyright © 2002 - 2010 Serva Software. All Rights Reserved.