Author: fdesbois Date: 2012-09-26 17:42:35 +0200 (Wed, 26 Sep 2012) New Revision: 600 Url: http://forge.codelutin.com/repositories/revision/sammoa/600 Log: refs #1514 : need to edit the cell (to fire stop editing and update the bean) before make the selection. Otherwise the old selected bean in event doesn't have the new value and validation actions are not in correct state. Modified: trunk/sammoa-ui-swing/src/main/java/fr/ulr/sammoa/ui/swing/flight/effort/action/MoveToNextEditableCellAction.java trunk/sammoa-ui-swing/src/main/java/fr/ulr/sammoa/ui/swing/flight/effort/action/MoveToNextRowEditableAction.java trunk/sammoa-ui-swing/src/main/java/fr/ulr/sammoa/ui/swing/flight/effort/action/MoveToPreviousEditableCellAction.java trunk/sammoa-ui-swing/src/main/java/fr/ulr/sammoa/ui/swing/flight/effort/action/MoveToPreviousRowEditableAction.java Modified: trunk/sammoa-ui-swing/src/main/java/fr/ulr/sammoa/ui/swing/flight/effort/action/MoveToNextEditableCellAction.java =================================================================== --- trunk/sammoa-ui-swing/src/main/java/fr/ulr/sammoa/ui/swing/flight/effort/action/MoveToNextEditableCellAction.java 2012-09-26 14:49:05 UTC (rev 599) +++ trunk/sammoa-ui-swing/src/main/java/fr/ulr/sammoa/ui/swing/flight/effort/action/MoveToNextEditableCellAction.java 2012-09-26 15:42:35 UTC (rev 600) @@ -82,9 +82,9 @@ } protected void doSelectCell(int currentRow, int currentColumn) { + logger.debug("While select cell at {}, {}", currentRow, currentColumn); + table.editCellAt(currentRow, currentColumn); table.setColumnSelectionInterval(currentColumn, currentColumn); table.setRowSelectionInterval(currentRow, currentRow); - logger.debug("While select cell at {}, {}", currentRow, currentColumn); - table.editCellAt(currentRow, currentColumn); } } Modified: trunk/sammoa-ui-swing/src/main/java/fr/ulr/sammoa/ui/swing/flight/effort/action/MoveToNextRowEditableAction.java =================================================================== --- trunk/sammoa-ui-swing/src/main/java/fr/ulr/sammoa/ui/swing/flight/effort/action/MoveToNextRowEditableAction.java 2012-09-26 14:49:05 UTC (rev 599) +++ trunk/sammoa-ui-swing/src/main/java/fr/ulr/sammoa/ui/swing/flight/effort/action/MoveToNextRowEditableAction.java 2012-09-26 15:42:35 UTC (rev 600) @@ -68,9 +68,9 @@ } protected void doSelectCell(int currentRow, int currentColumn) { + logger.debug("While select cell at {}, {}", currentRow, currentColumn); + table.editCellAt(currentRow, currentColumn); table.setColumnSelectionInterval(currentColumn, currentColumn); table.setRowSelectionInterval(currentRow, currentRow); - logger.debug("While select cell at {}, {}", currentRow, currentColumn); - table.editCellAt(currentRow, currentColumn); } } Modified: trunk/sammoa-ui-swing/src/main/java/fr/ulr/sammoa/ui/swing/flight/effort/action/MoveToPreviousEditableCellAction.java =================================================================== --- trunk/sammoa-ui-swing/src/main/java/fr/ulr/sammoa/ui/swing/flight/effort/action/MoveToPreviousEditableCellAction.java 2012-09-26 14:49:05 UTC (rev 599) +++ trunk/sammoa-ui-swing/src/main/java/fr/ulr/sammoa/ui/swing/flight/effort/action/MoveToPreviousEditableCellAction.java 2012-09-26 15:42:35 UTC (rev 600) @@ -81,9 +81,9 @@ } protected void doSelectCell(int currentRow, int currentColumn) { + logger.debug("While select cell at {}, {}", currentRow, currentColumn); + table.editCellAt(currentRow, currentColumn); table.setColumnSelectionInterval(currentColumn, currentColumn); table.setRowSelectionInterval(currentRow, currentRow); - logger.debug("While select cell at {}, {}", currentRow, currentColumn); - table.editCellAt(currentRow, currentColumn); } } Modified: trunk/sammoa-ui-swing/src/main/java/fr/ulr/sammoa/ui/swing/flight/effort/action/MoveToPreviousRowEditableAction.java =================================================================== --- trunk/sammoa-ui-swing/src/main/java/fr/ulr/sammoa/ui/swing/flight/effort/action/MoveToPreviousRowEditableAction.java 2012-09-26 14:49:05 UTC (rev 599) +++ trunk/sammoa-ui-swing/src/main/java/fr/ulr/sammoa/ui/swing/flight/effort/action/MoveToPreviousRowEditableAction.java 2012-09-26 15:42:35 UTC (rev 600) @@ -68,9 +68,9 @@ } protected void doSelectCell(int currentRow, int currentColumn) { + logger.debug("While select cell at {}, {}", currentRow, currentColumn); + table.editCellAt(currentRow, currentColumn); table.setColumnSelectionInterval(currentColumn, currentColumn); table.setRowSelectionInterval(currentRow, currentRow); - logger.debug("While select cell at {}, {}", currentRow, currentColumn); - table.editCellAt(currentRow, currentColumn); } }
participants (1)
-
fdesbois@users.forge.codelutin.com