MCPcopy Index your code
hub / github.com/benfry/processing4 / ListPanel

Class ListPanel

app/src/processing/app/contrib/ListPanel.java:48–846  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46// It also allows the description text in the panels to wrap properly.
47
48public class ListPanel extends JPanel implements Scrollable {
49 ContributionTab contributionTab;
50 Map<Contribution, StatusDetail> detailForContrib =
51 new ConcurrentHashMap<>();
52
53 private final Contribution.Filter filter;
54
55 private StatusDetail selectedDetail;
56 protected ContributionRowFilter rowFilter;
57 protected JTable table;
58 protected TableRowSorter<ContributionTableModel> sorter;
59 protected ContributionTableModel model;
60
61 // state icons appearing to the left side of the list
62 static final int ICON_SIZE = 16;
63 Icon upToDateIcon;
64 Icon updateAvailableIcon;
65 Icon incompatibleIcon;
66 Icon downloadingIcon;
67
68 // used in the list next to the creator name
69 Icon foundationIcon;
70
71 Color headerFgColor;
72 Color headerBgColor;
73 Color sectionColor;
74 Color rowColor;
75
76 Color textColor;
77 Color selectionColor;
78 Color textColorIncompatible;
79 Color selectionColorIncompatible;
80
81 JScrollPane scrollPane;
82
83 static final SectionHeaderContribution[] sectionHeaders = {
84 new SectionHeaderContribution(ContributionType.LIBRARY),
85 new SectionHeaderContribution(ContributionType.MODE),
86 new SectionHeaderContribution(ContributionType.TOOL),
87 new SectionHeaderContribution(ContributionType.EXAMPLES)
88 };
89
90
91 public ListPanel(final ContributionTab contributionTab,
92 final Contribution.Filter filter,
93 final boolean enableSections,
94 final ContributionColumn... columns) {
95 this.contributionTab = contributionTab;
96 this.filter = filter;
97
98 model = new ContributionTableModel(columns); /* {
99 @Override
100 public void fireTableDataChanged() {
101 new Exception().printStackTrace(System.out);
102 super.fireTableDataChanged();
103 }
104 };*/
105 model.enableSections(enableSections);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected