< prev index next >
src/com/sun/interview/wizard/RenderingUtilities.java
Print this page
rev 145 : 7902237: Fixing raw use of parameterized class
Reviewed-by: jjg
*** 73,83 ****
private DefaultCellEditor tfCE;
private DefaultCellEditor delegate;
private PropertiesQuestion q;
public PCE(PropertiesQuestion q) {
! cbCE = new PropCellEditor(new JComboBox(), q);
tfCE = new RestrainedCellEditor(new JTextField(), q);
this.q = q;
}
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {
--- 73,83 ----
private DefaultCellEditor tfCE;
private DefaultCellEditor delegate;
private PropertiesQuestion q;
public PCE(PropertiesQuestion q) {
! cbCE = new PropCellEditor(new JComboBox<Object>(), q);
tfCE = new RestrainedCellEditor(new JTextField(), q);
this.q = q;
}
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {
*** 216,239 ****
/**
* Table cell renderer for enforcing constraints on the combo box used
* for editing.
*/
public static class PropCellEditor extends DefaultCellEditor {
! protected PropCellEditor(JComboBox box) {
super(box);
}
! PropCellEditor(JComboBox box, PropertiesQuestion q) {
this(box);
question = q;
}
/**
* For use when this renderer is being used outside the context of
* an interview and question.
*/
! PropCellEditor(JComboBox box, ValueConstraints rules) {
this(box);
this.rules = rules;
}
@Override
--- 216,239 ----
/**
* Table cell renderer for enforcing constraints on the combo box used
* for editing.
*/
public static class PropCellEditor extends DefaultCellEditor {
! protected PropCellEditor(JComboBox<Object> box) {
super(box);
}
! PropCellEditor(JComboBox<Object> box, PropertiesQuestion q) {
this(box);
question = q;
}
/**
* For use when this renderer is being used outside the context of
* an interview and question.
*/
! PropCellEditor(JComboBox<Object> box, ValueConstraints rules) {
this(box);
this.rules = rules;
}
@Override
< prev index next >