public abstract class PropertyTable extends JBTable
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 java.util.List<PropertiesContainer> |
myContainers |
protected java.util.Set<java.lang.String> |
myExpandedProperties |
protected java.util.List<Property> |
myProperties |
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 |
---|
PropertyTable() |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
doRestoreDefault(ThrowableRunnable<java.lang.Exception> runnable) |
protected abstract boolean |
doSetValue(ThrowableRunnable<java.lang.Exception> runnable) |
boolean |
editCellAt(int row,
int column,
java.util.EventObject e) |
void |
editingStopped(javax.swing.event.ChangeEvent event) |
static Property |
extractProperty(java.util.List<? extends Property> properties,
java.lang.String name) |
static int |
findProperty(java.util.List<? extends Property> properties,
Property property) |
static Property |
findProperty(java.util.List<? extends Property> properties,
java.lang.String name) |
javax.swing.table.TableCellEditor |
getCellEditor(int row,
int column) |
javax.swing.table.TableCellRenderer |
getCellRenderer(int row,
int column) |
protected abstract TextAttributesKey |
getErrorAttributes(HighlightSeverity severity) |
ErrorInfo |
getErrorInfoForRow(int row) |
protected abstract java.util.List<ErrorInfo> |
getErrors(PropertiesContainer container) |
protected java.util.Comparator<java.lang.String> |
getGroupComparator() |
protected java.util.List<Property> |
getProperties(PropertiesContainer component) |
protected java.util.Comparator<Property> |
getPropertyComparator() |
protected PropertyContext |
getPropertyContext() |
Property |
getSelectionProperty() |
java.lang.String |
getToolTipText(java.awt.event.MouseEvent event) |
protected java.lang.Object |
getValue(Property property) |
boolean |
isDefault(Property property) |
boolean |
isShowExpertProperties() |
boolean |
isShowGroups() |
boolean |
isSorted() |
static void |
moveProperty(java.util.List<? extends Property> source,
java.lang.String name,
java.util.List<? super Property> destination,
int index) |
void |
removeEditor() |
void |
restoreDefaultValue() |
void |
setColumnNames(java.lang.String... columnNames) |
void |
setShowGroups(boolean showGroups) |
void |
setSorted(boolean sorted) |
void |
setUI(javax.swing.plaf.TableUI ui) |
void |
setValueAt(java.lang.Object aValue,
int row,
int column) |
void |
showExpert(boolean showExpert) |
void |
update() |
void |
update(java.util.List<? extends PropertiesContainer> containers,
Property initialSelection) |
protected void |
updateEditActions() |
static void |
updateRenderer(javax.swing.JComponent component,
boolean selected) |
calculateRowHeight, createBooleanEditor, createBusyIcon, createDefaultTableHeader, createRowSorter, doLayout, 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, addNotify, addRowSelectionInterval, changeSelection, clearSelection, columnAdded, columnAtPoint, columnMarginChanged, columnMoved, columnRemoved, columnSelectionChanged, configureEnclosingScrollPane, convertColumnIndexToModel, convertColumnIndexToView, convertRowIndexToModel, convertRowIndexToView, createDefaultColumnModel, createDefaultColumnsFromModel, createDefaultDataModel, createDefaultEditors, createDefaultRenderers, createDefaultSelectionModel, createScrollPaneForTable, editCellAt, editingCanceled, getAutoCreateColumnsFromModel, getAutoCreateRowSorter, getAutoResizeMode, getCellEditor, getCellRect, 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, getUI, getUIClassID, getUpdateSelectionOnSort, getValueAt, isCellEditable, isCellSelected, isColumnSelected, isEditing, isRowSelected, moveColumn, paramString, prepareEditor, print, print, print, print, print, processKeyBinding, removeColumn, removeColumnSelectionInterval, 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, setUpdateSelectionOnSort, 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 java.util.List<PropertiesContainer> myContainers
protected java.util.List<Property> myProperties
protected final java.util.Set<java.lang.String> myExpandedProperties
public void setColumnNames(java.lang.String... columnNames)
public void setSorted(boolean sorted)
public boolean isSorted()
public void setShowGroups(boolean showGroups)
public boolean isShowGroups()
public void showExpert(boolean showExpert)
public boolean isShowExpertProperties()
public void setUI(javax.swing.plaf.TableUI ui)
setUI
in class javax.swing.JTable
public javax.swing.table.TableCellRenderer getCellRenderer(int row, int column)
getCellRenderer
in class javax.swing.JTable
public void restoreDefaultValue()
protected abstract boolean doRestoreDefault(ThrowableRunnable<java.lang.Exception> runnable)
public ErrorInfo getErrorInfoForRow(int row)
protected abstract java.util.List<ErrorInfo> getErrors(PropertiesContainer container)
public java.lang.String getToolTipText(java.awt.event.MouseEvent event)
getToolTipText
in class javax.swing.JTable
protected PropertyContext getPropertyContext()
public void update()
public void update(java.util.List<? extends PropertiesContainer> containers, Property initialSelection)
protected java.util.Comparator<java.lang.String> getGroupComparator()
protected java.util.Comparator<Property> getPropertyComparator()
protected java.util.List<Property> getProperties(PropertiesContainer component)
public static Property findProperty(java.util.List<? extends Property> properties, java.lang.String name)
public static int findProperty(java.util.List<? extends Property> properties, Property property)
public static void moveProperty(java.util.List<? extends Property> source, java.lang.String name, java.util.List<? super Property> destination, int index)
public static Property extractProperty(java.util.List<? extends Property> properties, java.lang.String name)
public Property getSelectionProperty()
public boolean isDefault(Property property) throws java.lang.Exception
java.lang.Exception
protected final java.lang.Object getValue(Property property) throws java.lang.Exception
java.lang.Exception
public void setValueAt(java.lang.Object aValue, int row, int column)
setValueAt
in class javax.swing.JTable
public javax.swing.table.TableCellEditor getCellEditor(int row, int column)
getCellEditor
in class javax.swing.JTable
public boolean editCellAt(int row, int column, java.util.EventObject e)
editCellAt
in class JBTable
public void editingStopped(javax.swing.event.ChangeEvent event)
editingStopped
in interface javax.swing.event.CellEditorListener
editingStopped
in class javax.swing.JTable
public void removeEditor()
removeEditor
in class javax.swing.JTable
protected void updateEditActions()
protected abstract boolean doSetValue(ThrowableRunnable<java.lang.Exception> runnable)
public static void updateRenderer(javax.swing.JComponent component, boolean selected)
protected abstract TextAttributesKey getErrorAttributes(HighlightSeverity severity)