1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-02-20 14:54:31 +01:00

Rename Contributed*TableCell to Contributed*TableCellJPanel

This commit is contained in:
Cristian Maglie 2015-12-29 16:01:07 +01:00
parent a7e22e1958
commit 16c4701802
6 changed files with 10 additions and 10 deletions

View File

@ -54,7 +54,7 @@ import cc.arduino.utils.ReverseComparator;
public class ContributedLibraryTableCellEditor extends InstallerTableCell {
private ContributedLibraryReleases editorValue;
private ContributedLibraryTableCell editorCell;
private ContributedLibraryTableCellJPanel editorCell;
@Override
public Object getCellEditorValue() {
@ -67,7 +67,7 @@ public class ContributedLibraryTableCellEditor extends InstallerTableCell {
int column) {
editorValue = (ContributedLibraryReleases) value;
editorCell = new ContributedLibraryTableCell(table, value, true);
editorCell = new ContributedLibraryTableCellJPanel(table, value, true);
editorCell.installButton
.addActionListener(e -> onInstall(editorValue.getSelected(),
editorValue.getInstalled()));

View File

@ -27,7 +27,7 @@ import cc.arduino.contributions.libraries.ContributedLibrary;
import cc.arduino.contributions.ui.InstallerTableCell;
import processing.app.Base;
public class ContributedLibraryTableCell extends JPanel {
public class ContributedLibraryTableCellJPanel extends JPanel {
final JButton installButton;
final Component installButtonPlaceholder;
@ -38,7 +38,7 @@ public class ContributedLibraryTableCell extends JPanel {
final JPanel inactiveButtonsPanel;
final JLabel statusLabel;
public ContributedLibraryTableCell(JTable parentTable, Object value,
public ContributedLibraryTableCellJPanel(JTable parentTable, Object value,
boolean isSelected) {
super();
setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));

View File

@ -42,7 +42,7 @@ public class ContributedLibraryTableCellRenderer implements TableCellRenderer {
boolean isSelected,
boolean hasFocus, int row,
int column) {
ContributedLibraryTableCell cell = new ContributedLibraryTableCell(table,
ContributedLibraryTableCellJPanel cell = new ContributedLibraryTableCellJPanel(table,
value, isSelected);
cell.setButtonsVisible(false);

View File

@ -51,7 +51,7 @@ import cc.arduino.utils.ReverseComparator;
@SuppressWarnings("serial")
public class ContributedPlatformTableCellEditor extends InstallerTableCell {
private ContributedPlatformTableCell cell;
private ContributedPlatformTableCellJPanel cell;
private ContributedPlatformReleases value;
@Override
@ -65,7 +65,7 @@ public class ContributedPlatformTableCellEditor extends InstallerTableCell {
int column) {
value = (ContributedPlatformReleases) _value;
cell = new ContributedPlatformTableCell();
cell = new ContributedPlatformTableCellJPanel();
cell.installButton.addActionListener(e -> onInstall(value.getSelected(),
value.getInstalled()));
cell.removeButton.addActionListener(e -> onRemove(value.getInstalled()));

View File

@ -59,7 +59,7 @@ import cc.arduino.contributions.ui.InstallerTableCell;
import processing.app.Base;
@SuppressWarnings("serial")
public class ContributedPlatformTableCell extends JPanel {
public class ContributedPlatformTableCellJPanel extends JPanel {
final JButton installButton;
final JButton removeButton;
@ -72,7 +72,7 @@ public class ContributedPlatformTableCell extends JPanel {
final JPanel inactiveButtonsPanel;
final JLabel statusLabel;
public ContributedPlatformTableCell() {
public ContributedPlatformTableCellJPanel() {
super();
setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));

View File

@ -42,7 +42,7 @@ public class ContributedPlatformTableCellRenderer implements TableCellRenderer {
boolean isSelected,
boolean hasFocus, int row,
int column) {
ContributedPlatformTableCell cell = new ContributedPlatformTableCell();
ContributedPlatformTableCellJPanel cell = new ContributedPlatformTableCellJPanel();
cell.setButtonsVisible(false);
cell.update(table, value, isSelected, false);