FR [ 2847295 ] MiniTable multiselection checkboxes not working
https://sourceforge.net/tracker/?func=detail&atid=879335&aid=2847295&group_id=176962
This commit is contained in:
parent
7c20c391ac
commit
36bfe0bde4
|
@ -67,6 +67,8 @@ import org.compiere.util.Util;
|
|||
* @author Teo Sarca, SC ARHIPAC SERVICE SRL
|
||||
* <li>BF [ 1891082 ] NPE on MiniTable when you hide some columns
|
||||
* <li>FR [ 1974299 ] Add MiniTable.getSelectedKeys method
|
||||
* <li>FR [ 2847295 ] MiniTable multiselection checkboxes not working
|
||||
* https://sourceforge.net/tracker/?func=detail&atid=879335&aid=2847295&group_id=176962
|
||||
*/
|
||||
public class MiniTable extends CTable implements IMiniTable
|
||||
{
|
||||
|
@ -341,10 +343,15 @@ public class MiniTable extends CTable implements IMiniTable
|
|||
if (c == IDColumn.class)
|
||||
{
|
||||
tc.setCellRenderer(new IDColumnRenderer(m_multiSelection));
|
||||
if (m_multiSelection)
|
||||
tc.setCellEditor(new IDColumnEditor());
|
||||
else
|
||||
tc.setCellEditor(new ROCellEditor());
|
||||
if (m_multiSelection)
|
||||
{
|
||||
tc.setCellEditor(new IDColumnEditor());
|
||||
setColumnReadOnly(index, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
tc.setCellEditor(new ROCellEditor());
|
||||
}
|
||||
m_minWidth.add(new Integer(10));
|
||||
tc.setMaxWidth(20);
|
||||
tc.setPreferredWidth(20);
|
||||
|
|
Loading…
Reference in New Issue