|
|
|
|
|
|
|
|
.... |
|
|
.... |
|
|
package com.example.mycomponent.client; |
|
|
package com.example.mycomponent.client; |
|
|
|
|
|
|
|
|
import com.vaadin.client.communication.ClientRpc; |
|
|
|
|
|
|
|
|
import com.vaadin.shared.communication.ClientRpc; |
|
|
|
|
|
|
|
|
public interface MyComponentClientRpc extends ClientRpc { |
|
|
public interface MyComponentClientRpc extends ClientRpc { |
|
|
public void alert(String message); |
|
|
public void alert(String message); |
|
|
|
|
|
|
|
|
"Ok, that's enough!"); |
|
|
"Ok, that's enough!"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
setText("You have clicked " + clickCount + " times"); |
|
|
|
|
|
|
|
|
// setText("You have clicked " + clickCount + " times"); |
|
|
} |
|
|
} |
|
|
}; |
|
|
}; |
|
|
|
|
|
|