本文整理汇总了Python中java.awt.event.ActionListener方法的典型用法代码示例。如果您正苦于以下问题:Python event.ActionListener方法的具体用法?Python event.ActionListener怎么用?Python event.ActionListener使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类java.awt.event
的用法示例。
在下文中一共展示了event.ActionListener方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: actionPerformed
# 需要导入模块: from java.awt import event [as 别名]
# 或者: from java.awt.event import ActionListener [as 别名]
def actionPerformed(self, e):
"""
Overrides ActionListener behaviour, when clicked it opens the headers property editor for the given host.
:param e: unused
:return:
"""
if self._host:
try:
self._overrideheaders[self._host]
except KeyError:
print("No custom header for %s, generating an empty set" % self._host)
self._overrideheaders[self._host] = []
PropertyEditor.get_instance("Set Custom Header for %s" % self._host,
columns=["Header", "Value"],
data=self._overrideheaders[self._host],
empty=["X-New-Header", "X-New-Header-Value"])
示例2: actionPerformed
# 需要导入模块: from java.awt import event [as 别名]
# 或者: from java.awt.event import ActionListener [as 别名]
def actionPerformed(self, e):
"""
Override the ActionListener method. Usually setup in combination with a menuitem click.
:param e: unused
:return:
"""
URLOpener().open("file://%s" % self.target)
示例3: actionPerformed
# 需要导入模块: from java.awt import event [as 别名]
# 或者: from java.awt.event import ActionListener [as 别名]
def actionPerformed(self, e):
"""
Overrides ActionListener behaviour. Send current query to repeater.
:param e: unused
:return: None
"""
self._http_mutator.send_to_repeater(self._host, self._payload)