Module org.autogui
Package org.autogui.swing.table
Class GuiSwingTableColumnEmbeddedComponent.EmbeddedComponentRepaintManager
java.lang.Object
org.autogui.swing.table.GuiSwingTableColumnEmbeddedComponent.EmbeddedComponentRepaintManager
- Enclosing class:
GuiSwingTableColumnEmbeddedComponent
public static class GuiSwingTableColumnEmbeddedComponent.EmbeddedComponentRepaintManager
extends Object
maintaining mapping between a row-component and row-column-indices for repainting.
It keeps any row-components always have a parent component linking to the manager,
and invalidate() to a row-component enables cause repainting via the manager.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static int[]
protected WeakHashMap
<JComponent, int[]> maintains row and column indices for rowComponents: {row, column} and might be -1 if a rowComponent is shared to multiple cells.protected List
<JComponent> protected AtomicBoolean
protected JTable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addOrphanCandidate
(JComponent rowComponent) void
int[]
getRow
(JComponent rowComponent) void
installListener
(JComponent rowComponent) void
void
putRow
(JTable table, JComponent rowComponent, int row, int column) void
repaint
(JComponent rowComponent) void
-
Field Details
-
indexMap
maintains row and column indices for rowComponents: {row, column} and might be -1 if a rowComponent is shared to multiple cells. -
orphanParent
-
table
-
emptyRowAndColumn
protected static int[] emptyRowAndColumn -
orphanLock
-
orphanCandidates
-
-
Constructor Details
-
EmbeddedComponentRepaintManager
public EmbeddedComponentRepaintManager()
-
-
Method Details
-
clearRows
public void clearRows() -
putRow
-
installListener
-
lockOrphanCandidates
public void lockOrphanCandidates() -
unlockOrphanCandidates
public void unlockOrphanCandidates() -
addOrphanCandidate
-
getRow
-
repaint
-