public class Table<D> extends TableEx
Table used to display instances
of objects of the type specified.
© Copyright 2007 Sans Pareil Technologies, Inc.
| Modifier and Type | Class and Description |
|---|---|
protected class |
Table.DefaultActionListener
The default
ActionListener for the
table. |
TableEx.CellMatrixCELL_SPANNER, cellMatrix, COLUMN_WIDTHS_CHANGED_PROPERTY, DEFAULT_FOOTER_RENDERER_CHANGED_PROPERTY, DEFAULT_STYLE, DEFAULT_TABLE_CELL_RENDERER, FOOTER_ROW, footerVisible, PROPERTY_FOOTER_BACKGROUND, PROPERTY_FOOTER_VISIBLE, PROPERTY_HEADER_BACKGROUND, PROPERTY_HEIGHT, PROPERTY_IGNORE_META_KEYS, PROPERTY_RESIZE_DRAG_BAR_USED, PROPERTY_RESIZE_GROWS_TABLE, PROPERTY_RESIZEABLE, PROPERTY_SCROLLABLE, validACTION_LISTENERS_CHANGED_PROPERTY, AUTO_CREATE_COLUMNS_FROM_MODEL_CHANGED_PROPERTY, COLUMN_MODEL_CHANGED_PROPERTY, DEFAULT_HEADER_RENDERER_CHANGED_PROPERTY, DEFAULT_RENDERER_CHANGED_PROPERTY, HEADER_ROW, HEADER_VISIBLE_CHANGED_PROPERTY, INPUT_ACTION, MODEL_CHANGED_PROPERTY, PROPERTY_ACTION_COMMAND, PROPERTY_BORDER, PROPERTY_INSETS, PROPERTY_ROLLOVER_BACKGROUND, PROPERTY_ROLLOVER_BACKGROUND_IMAGE, PROPERTY_ROLLOVER_ENABLED, PROPERTY_ROLLOVER_FONT, PROPERTY_ROLLOVER_FOREGROUND, PROPERTY_SELECTION_BACKGROUND, PROPERTY_SELECTION_BACKGROUND_IMAGE, PROPERTY_SELECTION_ENABLED, PROPERTY_SELECTION_FONT, PROPERTY_SELECTION_FOREGROUND, PROPERTY_WIDTH, SELECTION_CHANGED_PROPERTY, SELECTION_MODEL_CHANGED_PROPERTYCHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FOCUS_TRAVERSAL_INDEX_CHANGED_PROPERTY, FOCUS_TRAVERSAL_PARTICIPANT_CHANGED_PROPERTY, LAYOUT_DIRECTION_CHANGED_PROPERTY, LOCALE_CHANGED_PROPERTY, PROPERTY_BACKGROUND, PROPERTY_FONT, PROPERTY_FOREGROUND, PROPERTY_LAYOUT_DATA, STYLE_CHANGED_PROPERTY, STYLE_NAME_CHANGED_PROPERTY, VISIBLE_CHANGED_PROPERTYPROPERTY_HEIGHT_STRETCHED, PROPERTY_MAXIMUM_STRETCHED_HEIGHT, PROPERTY_MINIMUM_STRETCHED_HEIGHT| Modifier | Constructor and Description |
|---|---|
protected |
Table()
Default constructor.
|
|
Table(TableModel<D> model)
Create a new table using the specified model for its data.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSelectionListener(SelectionListener listener)
Adds a selection listener to be notified of row selections.
|
protected void |
fireRowSelection()
Notifies configured
SelectionListener of row selections. |
TableModel |
getModel()
Over-ridden to return a properly type-cast model.
|
void |
removeSelectionListener(SelectionListener listener)
Remove a selection listener from being notified of row selections.
|
doRender, doRenderCellContent, fireActionEvent, getAttribute, getAttributeNames, getCellComponent, getCellContent, getDefaultFooterRenderer, getDefaultRenderer, getFooterBackground, getHeaderBackground, getHeight, getMaximumStretchedHeight, getMinimumStretchedHeight, init, invalidate, isActionCausingCell, isFooterVisible, isHeightStretched, isIgnoreMetaKeys, isResizeable, isResizeDragBarUsed, isResizeGrowsTable, isScrollable, isSelectionCausingCell, processInput, setAttribute, setDefaultFooterRenderer, setDefaultRenderer, setFooterBackground, setFooterVisible, setHeaderBackground, setHeight, setHeightStretched, setIgnoreMetaKeys, setMaximumStretchedHeight, setMinimumStretchedHeight, setPageableSelectionEx, setResizeable, setResizeDragBarUsed, setResizeGrowsTable, setScrollable, validateaddActionListener, createDefaultColumnsFromModel, getActionCommand, getBorder, getColumnModel, getDefaultHeaderRenderer, getDefaultRenderer, getInsets, getRolloverBackground, getRolloverBackgroundImage, getRolloverFont, getRolloverForeground, getSelectionBackground, getSelectionBackgroundImage, getSelectionFont, getSelectionForeground, getSelectionModel, getWidth, hasActionListeners, isAutoCreateColumnsFromModel, isHeaderVisible, isRolloverEnabled, isSelectionEnabled, removeActionListener, setActionCommand, setAutoCreateColumnsFromModel, setBorder, setColumnModel, setDefaultHeaderRenderer, setDefaultRenderer, setHeaderVisible, setInsets, setModel, setRolloverBackground, setRolloverBackgroundImage, setRolloverEnabled, setRolloverFont, setRolloverForeground, setSelectionBackground, setSelectionBackgroundImage, setSelectionEnabled, setSelectionFont, setSelectionForeground, setSelectionModel, setWidthadd, add, addPropertyChangeListener, addPropertyChangeListener, dispose, firePropertyChange, getApplicationInstance, getBackground, getComponent, getComponent, getComponentCount, getComponents, getEventListenerList, getFocusTraversalIndex, getFont, getForeground, getId, getIndexedProperty, getLayoutData, getLayoutDirection, getLocale, getParent, getProperty, getRenderId, getRenderIndexedProperty, getRenderIndexedProperty, getRenderLayoutDirection, getRenderLocale, getRenderProperty, getRenderProperty, getStyle, getStyleName, getVisibleComponent, getVisibleComponentCount, getVisibleComponents, hasEventListenerList, indexOf, isAncestorOf, isEnabled, isFocusTraversalParticipant, isRegistered, isRenderEnabled, isRenderVisible, isValidChild, isValidParent, isVisible, remove, remove, removeAll, removePropertyChangeListener, removePropertyChangeListener, setBackground, setEnabled, setFocusTraversalIndex, setFocusTraversalParticipant, setFont, setForeground, setId, setIndexedProperty, setLayoutData, setLayoutDirection, setLocale, setProperty, setRenderId, setStyle, setStyleName, setVisible, verifyInput, visibleIndexOfclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRenderProperty, getRenderPropertyprotected Table()
public Table(TableModel<D> model)
model - The underlying data model to use for the table.public void addSelectionListener(SelectionListener listener)
listener - The listener to add.Component.getEventListenerList()public void removeSelectionListener(SelectionListener listener)
listener - The listener to remove.protected void fireRowSelection()
SelectionListener of row selections.public TableModel getModel()