def mouseReleased(self, evt): sel_idx = evt.getComponent().getSelectedIndex() if sel_idx == 2: if self._extender.expanded_requests == 0: expand(self._extender, evt.getComponent()) else: collapse(self._extender, evt.getComponent()) elif sel_idx in [0, 1]: self._extender.original_requests_tabs.setSelectedIndex(sel_idx) self._extender.unauthenticated_requests_tabs.setSelectedIndex( sel_idx) self._extender.modified_requests_tabs.setSelectedIndex(sel_idx)
def changeSelection(self, row, col, toggle, extend): # show the log entry for the selected row logEntry = self._extender._log.get( self._extender.logTable.convertRowIndexToModel(row)) self._extender._requestViewer.setMessage( logEntry._requestResponse.getRequest(), True) self._extender._responseViewer.setMessage( logEntry._requestResponse.getResponse(), False) self._extender._originalrequestViewer.setMessage( logEntry._originalrequestResponse.getRequest(), True) self._extender._originalresponseViewer.setMessage( logEntry._originalrequestResponse.getResponse(), False) if logEntry._unauthorizedRequestResponse is not None: self._extender._unauthorizedrequestViewer.setMessage( logEntry._unauthorizedRequestResponse.getRequest(), True) self._extender._unauthorizedresponseViewer.setMessage( logEntry._unauthorizedRequestResponse.getResponse(), False) else: self._extender._unauthorizedrequestViewer.setMessage( "Request disabled", True) self._extender._unauthorizedresponseViewer.setMessage( "Response disabled", False) self._extender._currentlyDisplayedItem = logEntry if col == 3: collapse(self._extender, self._extender.modified_requests_tabs) collapse(self._extender, self._extender.unauthenticated_requests_tabs) expand(self._extender, self._extender.original_requests_tabs) elif col == 4 or col == 6: collapse(self._extender, self._extender.original_requests_tabs) collapse(self._extender, self._extender.unauthenticated_requests_tabs) expand(self._extender, self._extender.modified_requests_tabs) elif col == 5 or col == 7: collapse(self._extender, self._extender.original_requests_tabs) collapse(self._extender, self._extender.modified_requests_tabs) expand(self._extender, self._extender.unauthenticated_requests_tabs) else: collapse(self._extender, self._extender.original_requests_tabs) collapse(self._extender, self._extender.modified_requests_tabs) collapse(self._extender, self._extender.unauthenticated_requests_tabs) JTable.changeSelection(self, row, col, toggle, extend) return
def mouseReleased(self, evt): if evt.getComponent().getSelectedIndex() == 2: if self._extender.expanded_requests == 0: expand(self._extender, evt.getComponent()) else: collapse(self._extender, evt.getComponent())