本文整理匯總了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)