Lines 839-845
Link Here
|
839 |
return false; |
839 |
return false; |
840 |
} |
840 |
} |
841 |
|
841 |
|
842 |
private boolean checkAt(int row, int column, MouseEvent me) { |
842 |
/** |
|
|
843 |
* Perform a selection/deselection of a check box on the given row and column, |
844 |
* if a check box exists on the given position. |
845 |
* @param row The row of the check box |
846 |
* @param column The column of the check box |
847 |
* @param me The mouse event that performs the check, or <code>null</code>. |
848 |
* @return <code>true</code> if a {@link CheckRenderDataProvider} is found |
849 |
* on the given row and column, is checkable and enabled and the |
850 |
* mouse event is either <code>null</code> or upon the check-box |
851 |
* location. Returns <code>false</code> otherwise. |
852 |
* @since 1.25 |
853 |
*/ |
854 |
protected final boolean checkAt(int row, int column, MouseEvent me) { |
843 |
RenderDataProvider render = getRenderDataProvider(); |
855 |
RenderDataProvider render = getRenderDataProvider(); |
844 |
TableCellRenderer tcr = getDefaultRenderer(Object.class); |
856 |
TableCellRenderer tcr = getDefaultRenderer(Object.class); |
845 |
if (render instanceof CheckRenderDataProvider && tcr instanceof DefaultOutlineCellRenderer) { |
857 |
if (render instanceof CheckRenderDataProvider && tcr instanceof DefaultOutlineCellRenderer) { |
Lines 863-870
Link Here
|
863 |
int chEnd = chStart + chWidth; |
875 |
int chEnd = chStart + chWidth; |
864 |
//TODO: Translate x/y to position of column if non-0 |
876 |
//TODO: Translate x/y to position of column if non-0 |
865 |
|
877 |
|
866 |
chBoxPosition = (me.getX() > ins.left && me.getX() >= chStart && me.getX() <= chEnd) && |
878 |
chBoxPosition = (me.getX() > ins.left && me.getX() >= chStart && me.getX() <= chEnd); |
867 |
me.getClickCount() == 1; |
|
|
868 |
} |
879 |
} |
869 |
if (chBoxPosition) { |
880 |
if (chBoxPosition) { |
870 |
Boolean selected = crender.isSelected(value); |
881 |
Boolean selected = crender.isSelected(value); |