Class ActionFlagsTableCell

  • All Implemented Interfaces:
    ImageObserver, MenuContainer, Serializable, Accessible, CellEditor, TableCellEditor, TableCellRenderer

    class ActionFlagsTableCell
    extends JPanel
    implements TableCellRenderer, TableCellEditor
    This class creates a table cell that features two checkboxes, Upload and Save. It handles everything on its own, in other words it renders itself and also functions as editor so the checkboxes may be set by the user. Intended usage is like this:
    ActionFlagsTableCell aftc = new ActionFlagsTableCell();
    col = new TableColumn(0);
    col.setCellRenderer(aftc);
    col.setCellEditor(aftc);
    Note: Do not use the same object both as TableCellRenderer and TableCellEditor - this can mess up the current editor component by subsequent calls to the renderer (#19995 and #12462).