1 window.com_vaadin_tests_components_javascriptcomponent_BasicJavaScriptComponent_ExampleWidget = function() {
3 var connectorId = this.getConnectorId();
5 parentIds.push(connectorId);
6 connectorId = this.getParentId(connectorId);
8 this.reportParentIds(parentIds);
10 this.onStateChange = function() {
11 var e = this.getElement();
16 var log = function(text) {
17 e.innerHTML = "<div>" + row++ + ". " + text + "</div>" + e.innerHTML;
20 log("Parent element className: " + this.getElement(this.getParentId()).className);
22 var messages = this.getState().messages;
23 for(var i = 0; i < messages.length; i++) {
24 log("State message: " + messages[i]);
29 sendRpc: function(message) {
30 this.getRpcProxy().sendRpc(message + " processed");
34 this.messageToClient = function(message) {
35 this.messageToServer(message + " processed");