221 |
# Moves the proper record into editing position |
# Moves the proper record into editing position |
222 |
# |
# |
223 |
def switchRecord(self, adjustment): |
def switchRecord(self, adjustment): |
224 |
|
if adjustment <> 0: |
225 |
|
self.processTrigger('ON-SWITCH') |
226 |
self._currentRecord = self._resultSet.getRecordNumber() |
self._currentRecord = self._resultSet.getRecordNumber() |
227 |
for entry in self._entryList: |
for entry in self._entryList: |
228 |
entry.recalculateVisible( adjustment, self._currentRecord, self._recordCount) |
entry.recalculateVisible( adjustment, self._currentRecord, self._recordCount) |
229 |
self._form.updateUIEntry(entry) |
self._form.updateUIEntry(entry) |
230 |
|
|
231 |
if adjustment <> 0: |
# update the scrollbars... |
232 |
self.processTrigger('ON-SWITCH') |
for sb in self._scrollBars: |
233 |
# update the scrollbars... |
sb.update (self._currentRecord, self._recordCount) |
|
for sb in self._scrollBars: |
|
|
sb.update (self._currentRecord, self._recordCount) |
|
234 |
|
|
235 |
# |
# |
236 |
# newRecord |
# newRecord |