de.matthiasmann.twl
Class Table

java.lang.Object
  extended by de.matthiasmann.twl.Widget
      extended by de.matthiasmann.twl.TableBase
          extended by de.matthiasmann.twl.Table
All Implemented Interfaces:
ScrollPane.AutoScrollable, ScrollPane.CustomPageSize, ScrollPane.Scrollable
Direct Known Subclasses:
FileTable

public class Table
extends TableBase

A table widget. It does not have a TableSelectionManager by default. To make the table entries selectable you need to install a selection manager: TableBase.setSelectionManager(de.matthiasmann.twl.TableSelectionManager) or TableBase.setDefaultSelectionManager()

See Also:
TableBase

Nested Class Summary
 
Nested classes/interfaces inherited from class de.matthiasmann.twl.TableBase
TableBase.Callback, TableBase.CellRenderer, TableBase.CellWidgetCreator, TableBase.ColumnHeader, TableBase.ColumnSizeSequence, TableBase.DragListener, TableBase.KeyboardSearchHandler, TableBase.StringCellRenderer
 
Nested classes/interfaces inherited from class de.matthiasmann.twl.Widget
Widget.OffscreenMouseAdjustments, Widget.RenderOffscreen
 
Field Summary
 
Fields inherited from class de.matthiasmann.twl.TableBase
autoSizeAllRows, callbacks, cellRenderers, columnDefaultCellRenderer, columnDividerDragableDistance, columnHeaderHeight, columnHeaderModel, columnHeaders, columnModel, columnResizeCursor, defaultColumnWidth, DRAG_COLUMN_HEADER, DRAG_IGNORE, DRAG_INACTIVE, DRAG_USER, dragActive, dragColumn, dragCursor, dragListener, dragNotPossibleCursor, dragStartColWidth, dragStartSumWidth, dragStartX, dropMarkerBeforeRow, dropMarkerRow, ensureColumnHeaderMinWidth, firstRowPartialVisible, firstVisibleColumn, firstVisibleRow, hasCellWidgetCreators, imageColumnDivider, imageRowBackground, imageRowDropMarker, imageRowOverlay, keyboardSearchHandler, LAST_MOUSE_Y_OUTSIDE, lastMouseColumn, lastMouseRow, lastMouseY, lastRowPartialVisible, lastVisibleColumn, lastVisibleRow, normalCursor, numColumns, numRows, rowHeight, rowModel, scrollPosX, scrollPosY, selectionManager, STATE_FIRST_COLUMNHEADER, STATE_LAST_COLUMNHEADER, STATE_LEAD_ROW, STATE_ROW_DROPTARGET, STATE_ROW_HOVER, STATE_ROW_ODD, STATE_ROW_SELECTED, STATE_SELECTED, STATE_SORT_ASCENDING, STATE_SORT_DESCENDING, tableBaseThemeInfo, updateAllCellWidgets, updateAllColumnWidth, widgetGrid
 
Fields inherited from class de.matthiasmann.twl.Widget
STATE_DISABLED, STATE_HAS_FOCUSED_CHILD, STATE_HAS_OPEN_POPUPS, STATE_KEYBOARD_FOCUS
 
Constructor Summary
Table()
           
Table(TableModel model)
           
 
Method Summary
protected  java.lang.Object getCellData(int row, int column, TreeTableNode node)
           
 TableModel getModel()
           
protected  TreeTableNode getNodeFromRow(int row)
           
protected  java.lang.Object getTooltipContentFromRow(int row, int column)
           
 void setModel(TableModel model)
           
 
Methods inherited from class de.matthiasmann.twl.TableBase
addCallback, adjustScrollPosition, applyCellRendererTheme, applyTheme, applyThemeMouseCursor, applyThemeTableBase, autoSizeAllRows, autoSizeRow, cancelDragging, checkColumnIndex, checkColumnRange, checkRowIndex, checkRowRange, childAdded, childRemoved, clampColumnWidth, clearDropMarker, columnHeaderClicked, computePreferredColumnWidth, computeRowHeight, createColumnHeader, getAutoScrollDirection, getCellRenderer, getCellRenderer, getCellRendererNoDefault, getColumnDefaultCellRenderer, getColumnEndPosition, getColumnFromPosition, getColumnHeaderAnimationState, getColumnMPM, getColumnSeparatorUnderMouse, getColumnStartPosition, getColumnUnderMouse, getColumnWidth, getDefaultCellRenderer, getDragListener, getDropMarkerRow, getKeyboardSearchHandler, getMinHeight, getMouseCursor, getNumColumns, getNumRows, getNumVisibleRows, getOffsetX, getOffsetY, getPageSizeX, getPageSizeY, getPreferredInnerHeight, getPreferredInnerWidth, getRowEndPosition, getRowFromPosition, getRowHeight, getRowStartPosition, getRowUnderMouse, getSelectionManager, getTooltipContentAt, handleDragEvent, handleEvent, handleKeyStrokeAction, handleMouseEvent, insertCellRenderer, isCellSelected, isDropMarkerBeforeRow, isFixedWidthMode, isMouseInColumnHeader, isRowSelected, isVariableRowHeight, layout, modelAllChanged, modelCellChanged, modelColumnHeaderChanged, modelColumnsDeleted, modelColumnsInserted, modelRowChanged, modelRowsChanged, modelRowsDeleted, modelRowsInserted, paintWidget, positionChanged, registerCellRenderer, removeAllCellWidgets, removeAllChildren, removeCallback, removeCellWidget, scrollToRow, setColumnDefaultCellRenderer, setColumnSortOrderAnimationState, setColumnWidth, setDefaultSelectionManager, setDragListener, setDropMarker, setDropMarker, setKeyboardSearchHandler, setScrollPosition, setSelectionManager, setVaribleRowHeight, sizeChanged, updateAll, updateAllCellWidgets, updateAllColumnWidth, updateCellWidget, updateColumnHeader, updateColumnHeaderNumbers
 
Methods inherited from class de.matthiasmann.twl.Widget
add, addActionMapping, addPropertyChangeListener, addPropertyChangeListener, adjustSize, afterAddToGUI, allChildrenRemoved, applyThemeBackground, applyThemeBorder, applyThemeInputMap, applyThemeMaxSize, applyThemeMinSize, applyThemeOffscreenExtra, applyThemeOverlay, applyThemeTooltip, beforeRemoveFromGUI, borderChanged, canAcceptKeyboardFocus, childInvalidateLayout, childVisibilityChanged, computeSize, destroy, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, focusFirstChild, focusLastChild, focusNextChild, focusPrevChild, getActionMap, getAnimationState, getBackground, getBorderBottom, getBorderHorizontal, getBorderLeft, getBorderRight, getBorderTop, getBorderVertical, getBottom, getChild, getChildAt, getChildIndex, getGUI, getHeight, getInnerBottom, getInnerHeight, getInnerRight, getInnerWidth, getInnerX, getInnerY, getInputMap, getKeyboardFocusOrder, getMaxHeight, getMaxWidth, getMinWidth, getMouseCursor, getNumChildren, getOffscreenExtraBottom, getOffscreenExtraLeft, getOffscreenExtraRight, getOffscreenExtraTop, getOrCreateActionMap, getOverlay, getParent, getPreferredHeight, getPreferredWidth, getRenderOffscreen, getRight, getRootWidget, getTheme, getThemePath, getThemeTooltipContent, getTintAnimator, getTooltipContent, getWidgetAt, getWidth, getX, getY, giveupKeyboardFocus, hasKeyboardFocus, hasOpenPopups, hasSharedAnimationState, insertChild, invalidateLayout, invalidateLayoutLocally, isAbsoluteTheme, isClip, isDepthFocusTraversal, isEnabled, isFocusKeyEnabled, isInside, isLocallyEnabled, isMouseInside, isVisible, keyboardFocusChildChanged, keyboardFocusGained, keyboardFocusGained, keyboardFocusLost, layoutChildFullInnerArea, layoutChildrenFullInnerArea, moveChild, paint, paintBackground, paintChild, paintChildren, paintDragOverlay, paintOverlay, reapplyTheme, removeChild, removeChild, removePropertyChangeListener, removePropertyChangeListener, requestKeyboardFocus, requestKeyboardFocus, resetTooltip, setActionMap, setBackground, setBorderSize, setBorderSize, setBorderSize, setBorderSize, setCanAcceptKeyboardFocus, setClip, setDepthFocusTraversal, setEnabled, setFocusKeyEnabled, setInnerSize, setInputMap, setMaxSize, setMinSize, setMouseCursor, setOffscreenExtra, setOffscreenExtra, setOverlay, setPosition, setRenderOffscreen, setSize, setTheme, setTintAnimator, setTooltipContent, setVisible, updateTintAnimation, updateTooltip, validateLayout, widgetDisabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Table

public Table()

Table

public Table(TableModel model)
Method Detail

getModel

public TableModel getModel()

setModel

public void setModel(TableModel model)

getCellData

protected java.lang.Object getCellData(int row,
                                       int column,
                                       TreeTableNode node)
Specified by:
getCellData in class TableBase

getNodeFromRow

protected TreeTableNode getNodeFromRow(int row)
Specified by:
getNodeFromRow in class TableBase

getTooltipContentFromRow

protected java.lang.Object getTooltipContentFromRow(int row,
                                                    int column)
Specified by:
getTooltipContentFromRow in class TableBase