/** * Constructs with the specified initial all element nodes. * * @param allElementNodes the instance of List */ public RadioButtonTableCellEditor(List allElementNodes) { radioButtonSelectorBar = new JRadioButtonSelectorBar(allElementNodes, true); JClassicSelectorMenuButton menuButton = (JClassicSelectorMenuButton) radioButtonSelectorBar.getMenuButton(); menuButton.setShowArrow(false); }
/** * Gets the table cell editor component. * * @param table the instance of JTable * @param value the value object * @param isSelected the boolean of isSelected * @param row the row index value * @param column the column index value */ public Component getTableCellEditorComponent( JTable table, Object value, boolean isSelected, int row, int column) { radioButtonSelectorBar.setValue(value); return radioButtonSelectorBar; }
/** * Gets the cell editor value. * * @param the cell editor value */ public Object getCellEditorValue() { return radioButtonSelectorBar.getValue(); }