1 14 package org.compiere.report.core; 15 16 import java.util.*; 17 import java.awt.*; 18 import javax.swing.*; 19 import javax.swing.table.*; 20 import javax.swing.event.*; 21 22 28 public class ResultTableCellEditor extends AbstractCellEditor implements TableCellEditor 29 { 30 33 public ResultTableCellEditor() 34 { 35 } 37 40 public ResultTableCellEditor(RColumn rc) 41 { 42 m_rc = rc; 43 } 45 46 private RColumn m_rc = null; 47 48 51 public Component getTableCellEditorComponent (JTable table, Object value, 52 boolean isSelected, int row, int col) 53 { 54 if (m_rc == null) 55 return null; 56 return null; 57 } 59 62 public Object getCellEditorValue() 63 { 64 if (m_rc == null) 65 return null; 66 return null; 67 } 69 72 public boolean isCellEditable(EventObject anEvent) 73 { 74 if (m_rc == null) 75 return false; 76 return !m_rc.isReadOnly(); 77 } 79 82 public boolean shouldSelectCell(EventObject anEvent) 83 { 84 if (m_rc == null) 85 return false; 86 return !m_rc.isReadOnly(); 87 } 89 } | Popular Tags |