当前位置: 首页>>代码示例>>Python>>正文


Python JTable.changeSelection方法代码示例

本文整理汇总了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
开发者ID:webpentest-factory,项目名称:AuthMatrix,代码行数:30,代码来源:AuthMatrix.py

示例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))
开发者ID:0x24bin,项目名称:BurpSuite,代码行数:9,代码来源:burp_git_bridge.py

示例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
开发者ID:abend9999,项目名称:SqliteLogger,代码行数:10,代码来源:SQLiteLogger.py

示例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
开发者ID:amlweems,项目名称:otter,代码行数:17,代码来源:otter.py

示例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
开发者ID:federicodotta,项目名称:Autorize,代码行数:20,代码来源:Autorize.py

示例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
开发者ID:anhnt4288,项目名称:PT-Manager,代码行数:8,代码来源:PTManager.py


注:本文中的javax.swing.JTable.changeSelection方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。