Vaadin扩展:MouseOverHandler

时间:2015-06-29 16:03:33

标签: gwt vaadin

在简单的扩展程序中,我添加func callthis() { if(SKPaymentQueue.canMakePayments()) { println("IAP is enabled, loading") var productID:NSSet = NSSet(object: "unlockLevelTwoPlease") var request: SKProductsRequest = SKProductsRequest(productIdentifiers: productID as Set<NSObject>) request.delegate = self request.start() } else { println("please enable IAPS") } } func callthis2() { if(SKPaymentQueue.canMakePayments()) { println("IAP is enabled, loading") var productID:NSSet = NSSet(object: "unlockLevelThreePlease") var request: SKProductsRequest = SKProductsRequest(productIdentifiers: productID as Set<NSObject>) request.delegate = self request.start() } else { println("please enable IAPS") } } func callthis3() { if(SKPaymentQueue.canMakePayments()) { println("IAP is enabled, loading") var productID:NSSet = NSSet(object: "unlockLevelFourPlease") var request: SKProductsRequest = SKProductsRequest(productIdentifiers: productID as Set<NSObject>) request.delegate = self request.start() } else { println("please enable IAPS") } } override func touchesBegan(touches: Set<NSObject>, withEvent event: UIEvent) { var touch: UITouch = touches.first as! UITouch var location = touch.locationInNode(self) var node = self.nodeAtPoint(location) if node.name == "unlockleveltwobutton" { callThis() for product in list { var prodID = product.productIdentifier if(prodID == "unlockLevelTwoPlease") { p = product buyProduct() break; } } runAction(menuAudioPlayer) } if node.name == "unlocklevelthreebutton" { callThis2() for product in list { var prodID = product.productIdentifier if(prodID == "unlockLevelThreePlease") { p = product buyProduct() break; } } runAction(menuAudioPlayer) } if node.name == "unlocklevelfourbutton" { callthis3() for product in list { var prodID = product.productIdentifier if(prodID == "unlockLevelFourPlease") { p = product buyProduct() break; } } runAction(menuAudioPlayer) } 一些VHorizontalLayout。在布局中我添加了VLabel,但从不调用它的方法。有什么问题?

(其他所有工作 - 即标签显示在扩展字段下方)

连接器:

MouseOverHandler

1 个答案:

答案 0 :(得分:0)

应该使用addDomHandler代替addHandler