public abstract class AbstractMemberSelectionTable<T extends PsiElement,M extends MemberInfoBase<T>> extends JBTable implements TypeSafeDataProvider
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractMemberSelectionTable.MyTableModel<T extends PsiElement,M extends MemberInfoBase<T>> |
JBTable.AccessibleJBTable, JBTable.DefaultColumnInfoBasedRowSorter, JBTable.InvisibleResizableHeader, JBTable.JBTableHeader
javax.swing.JTable.AccessibleJTable, javax.swing.JTable.DropLocation, javax.swing.JTable.PrintMode
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
protected static int |
ABSTRACT_COLUMN |
protected static int |
CHECKED_COLUMN |
protected static int |
DISPLAY_NAME_COLUMN |
protected static javax.swing.Icon |
EMPTY_OVERRIDE_ICON |
protected static int |
MEMBER_ICON_POSITION |
protected java.lang.String |
myAbstractColumnHeader |
protected boolean |
myAbstractEnabled |
protected MemberInfoModel<T,M> |
myMemberInfoModel |
protected java.util.List<M> |
myMemberInfos |
protected AbstractMemberSelectionTable.MyTableModel<T,M> |
myTableModel |
protected static int |
OVERRIDE_ICON_POSITION |
protected static int |
VISIBILITY_ICON_POSITION |
COLUMN_RESIZE_AREA_WIDTH, myBusyIcon, PREFERRED_SCROLLABLE_VIEWPORT_HEIGHT_IN_ROWS
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 |
---|
AbstractMemberSelectionTable(java.util.Collection<M> memberInfos,
MemberInfoModel<T,M> memberInfoModel,
java.lang.String abstractColumnHeader) |
Modifier and Type | Method and Description |
---|---|
void |
addMemberInfoChangeListener(MemberInfoChangeListener<T,M> l) |
void |
addNotify() |
void |
calcData(DataKey key,
DataSink sink) |
void |
fireExternalDataChange() |
protected void |
fireMemberInfoChange(java.util.Collection<M> changedMembers) |
protected abstract java.lang.Object |
getAbstractColumnValue(M memberInfo) |
protected static java.lang.String |
getDisplayNameColumnHeader() |
protected javax.swing.Icon |
getMemberIcon(M memberInfo,
int flags) |
MemberInfoModel<T,M> |
getMemberInfoModel() |
protected abstract javax.swing.Icon |
getOverrideIcon(M memberInfo) |
java.util.Collection<M> |
getSelectedMemberInfos() |
protected abstract boolean |
isAbstractColumnEditable(int rowIndex) |
void |
redraw()
Redraws table
|
void |
scrollSelectionInView() |
void |
setMemberInfoModel(MemberInfoModel<T,M> memberInfoModel) |
void |
setMemberInfos(java.util.Collection<M> memberInfos) |
protected void |
setVisibilityIcon(M memberInfo,
com.intellij.ui.RowIcon icon) |
calculateRowHeight, createBooleanEditor, createBusyIcon, createDefaultTableHeader, createRowSorter, doLayout, editCellAt, getAccessibleContext, getComponentGraphics, getEmptyText, getExpandableItemsHandler, getExpandedColumnWidth, getForeground, getPreferredScrollableViewportSize, getRowHeight, getScrollableUnitIncrement, getSurrendersFocusOnKeystroke, getVisibleRowCount, initializeLocalVars, isEmpty, isSortOnUpdates, isStriped, onTableChanged, paint, paintChildren, paintComponent, prepareRenderer, processMouseEvent, removeNotify, resetDefaultFocusTraversalKeys, setEnableAntialiasing, setExpandableItemsEnabled, setMaxItemsForSizeCalculation, setModel, setPaintBusy, setRowHeight, setShowColumns, setStriped, setVisibleRowCount, surrendersFocusOnKeyStroke, updateUI
addColumn, addColumnSelectionInterval, addRowSelectionInterval, changeSelection, clearSelection, columnAdded, columnAtPoint, columnMarginChanged, columnMoved, columnRemoved, columnSelectionChanged, configureEnclosingScrollPane, convertColumnIndexToModel, convertColumnIndexToView, convertRowIndexToModel, convertRowIndexToView, createDefaultColumnModel, createDefaultColumnsFromModel, createDefaultDataModel, createDefaultEditors, createDefaultRenderers, createDefaultSelectionModel, createScrollPaneForTable, editCellAt, editingCanceled, editingStopped, getAutoCreateColumnsFromModel, getAutoCreateRowSorter, getAutoResizeMode, getCellEditor, getCellEditor, getCellRect, getCellRenderer, getCellSelectionEnabled, getColumn, getColumnClass, getColumnCount, getColumnModel, getColumnName, getColumnSelectionAllowed, getDefaultEditor, getDefaultRenderer, getDragEnabled, getDropLocation, getDropMode, getEditingColumn, getEditingRow, getEditorComponent, getFillsViewportHeight, getGridColor, getIntercellSpacing, getModel, getPrintable, getRowCount, getRowHeight, getRowMargin, getRowSelectionAllowed, getRowSorter, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getSelectedColumn, getSelectedColumnCount, getSelectedColumns, getSelectedRow, getSelectedRowCount, getSelectedRows, getSelectionBackground, getSelectionForeground, getSelectionModel, getShowHorizontalLines, getShowVerticalLines, getTableHeader, getToolTipText, getUI, getUIClassID, getUpdateSelectionOnSort, getValueAt, isCellEditable, isCellSelected, isColumnSelected, isEditing, isRowSelected, moveColumn, paramString, prepareEditor, print, print, print, print, print, processKeyBinding, removeColumn, removeColumnSelectionInterval, removeEditor, removeRowSelectionInterval, resizeAndRepaint, rowAtPoint, selectAll, setAutoCreateColumnsFromModel, setAutoCreateRowSorter, setAutoResizeMode, setCellEditor, setCellSelectionEnabled, setColumnModel, setColumnSelectionAllowed, setColumnSelectionInterval, setDefaultEditor, setDefaultRenderer, setDragEnabled, setDropMode, setEditingColumn, setEditingRow, setFillsViewportHeight, setGridColor, setIntercellSpacing, setPreferredScrollableViewportSize, 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, 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, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyEvent, 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, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, 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, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
protected static final int CHECKED_COLUMN
protected static final int DISPLAY_NAME_COLUMN
protected static final int ABSTRACT_COLUMN
protected static final javax.swing.Icon EMPTY_OVERRIDE_ICON
protected static final int OVERRIDE_ICON_POSITION
protected static final int VISIBILITY_ICON_POSITION
protected static final int MEMBER_ICON_POSITION
protected final java.lang.String myAbstractColumnHeader
protected java.util.List<M extends MemberInfoBase<T>> myMemberInfos
protected final boolean myAbstractEnabled
protected MemberInfoModel<T extends PsiElement,M extends MemberInfoBase<T>> myMemberInfoModel
protected AbstractMemberSelectionTable.MyTableModel<T extends PsiElement,M extends MemberInfoBase<T>> myTableModel
public AbstractMemberSelectionTable(java.util.Collection<M> memberInfos, MemberInfoModel<T,M> memberInfoModel, java.lang.String abstractColumnHeader)
public java.util.Collection<M> getSelectedMemberInfos()
public MemberInfoModel<T,M> getMemberInfoModel()
public void setMemberInfoModel(MemberInfoModel<T,M> memberInfoModel)
public void fireExternalDataChange()
public void redraw()
public void setMemberInfos(java.util.Collection<M> memberInfos)
public void addMemberInfoChangeListener(MemberInfoChangeListener<T,M> l)
protected void fireMemberInfoChange(java.util.Collection<M> changedMembers)
public void calcData(DataKey key, DataSink sink)
calcData
in interface TypeSafeDataProvider
public void scrollSelectionInView()
public void addNotify()
addNotify
in class javax.swing.JTable
protected abstract java.lang.Object getAbstractColumnValue(M memberInfo)
protected abstract boolean isAbstractColumnEditable(int rowIndex)
protected void setVisibilityIcon(M memberInfo, com.intellij.ui.RowIcon icon)
protected abstract javax.swing.Icon getOverrideIcon(M memberInfo)
protected javax.swing.Icon getMemberIcon(M memberInfo, int flags)
protected static java.lang.String getDisplayNameColumnHeader()