本文整理汇总了Python中javax.swing.JTable.changeSelection方法的典型用法代码示例。如果您正苦于以下问题:Python JTable.changeSelection方法的具体用法?Python JTable.changeSelection怎么用?Python JTable.changeSelection使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类javax.swing.JTable
的用法示例。
在下文中一共展示了JTable.changeSelection方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: changeSelection
# 需要导入模块: from javax.swing import JTable [as 别名]
# 或者: from javax.swing.JTable import changeSelection [as 别名]
def changeSelection(self, row, col, toggle, extend):
# show the message entry for the selected row
selectedMessage = self.getModel()._db.getMessageByRow(row)
self._extender._tabs.removeAll()
# NOTE: testing if .locked is ok here since its a manual operation
if self.getModel()._db.lock.locked():
# Provide some feedback on a click
self.redrawTable()
return
# Create original Request tab and set default tab to Request
# Then Create test tabs and set the default tab to Response for easy analysis
originalTab = self.createRequestTabs(selectedMessage._requestResponse)
originalTab.setSelectedIndex(0)
self._extender._tabs.addTab("Original",originalTab)
for userIndex in selectedMessage._userRuns.keys():
if not self.getModel()._db.arrayOfUsers[userIndex].isDeleted():
tabname = str(self.getModel()._db.arrayOfUsers[userIndex]._name)
self._extender._tabs.addTab(tabname,self.createRequestTabs(selectedMessage._userRuns[userIndex]))
# TODO: do this on a tab change on extender._tabs: I think its needed for sending to repeater and comparer
# WEIRD: I think this should make it so that only the original can be sent to places
# However, it looks like it is working as expected... ???
self._extender._currentlyDisplayedItem = selectedMessage._requestResponse
JTable.changeSelection(self, row, col, toggle, extend)
return
示例2: changeSelection
# 需要导入模块: from javax.swing import JTable [as 别名]
# 或者: from javax.swing.JTable import changeSelection [as 别名]
def changeSelection(self, row, col, toggle, extend):
'''
Displays the selected item in the content pane
'''
JTable.changeSelection(self, row, col, toggle, extend)
self.bottom_pane.show_log_entry(self.gui_log.get(row))
示例3: changeSelection
# 需要导入模块: from javax.swing import JTable [as 别名]
# 或者: from javax.swing.JTable import changeSelection [as 别名]
def changeSelection(self, row, col, toggle, extend):
logEntry = self._extender._log.get(row)
self._extender._requestViewer.setMessage(logEntry._requestResponse.getRequest(), True)
self._extender._responseViewer.setMessage(logEntry._requestResponse.getResponse(), False)
self._extender._currentlyDisplayedItem = logEntry._requestResponse
JTable.changeSelection(self, row, col, toggle, extend)
return
示例4: changeSelection
# 需要导入模块: from javax.swing import JTable [as 别名]
# 或者: from javax.swing.JTable import changeSelection [as 别名]
def changeSelection(self, row, col, toggle, extend):
# show the log entry for the selected row
logEntry = self._extender._log.get(row)
self._extender._origRequestViewer.setMessage(logEntry._origRequestResponse.getRequest(), True)
self._extender._origResponseViewer.setMessage(logEntry._origRequestResponse.getResponse(), False)
if not logEntry._modRequestResponse is None:
self._extender._modRequestViewer.setMessage(logEntry._modRequestResponse.getRequest(), True)
self._extender._modResponseViewer.setMessage(logEntry._modRequestResponse.getResponse(), False)
else:
self._extender._modRequestViewer.setMessage(toBytes(""), True)
self._extender._modResponseViewer.setMessage(toBytes(""), False)
self._extender._currentlyDisplayedItem = logEntry._origRequestResponse
JTable.changeSelection(self, row, col, toggle, extend)
return
示例5: changeSelection
# 需要导入模块: from javax.swing import JTable [as 别名]
# 或者: from javax.swing.JTable import changeSelection [as 别名]
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 != 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._requestResponse
JTable.changeSelection(self, row, col, toggle, extend)
return
示例6: changeSelection
# 需要导入模块: from javax.swing import JTable [as 别名]
# 或者: from javax.swing.JTable import changeSelection [as 别名]
def changeSelection(self, row, col, toggle, extend):
# show the log entry for the selected row
vulnObject = self._extender._log.get(row)
self._extender.loadVulnerability(vulnObject)
JTable.changeSelection(self, row, col, toggle, extend)
return