Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
package org.example
import griffon.core.artifact.GriffonController
import griffon.inject.MVCMember
import griffon.metadata.ArtifactProviderFor
import griffon.transform.Threading
import javax.annotation.Nonnull
@ArtifactProviderFor(GriffonController)
class HomeController {
@MVCMember @Nonnull
HomeModel model
@Threading(Threading.Policy.INSIDE_UITHREAD_ASYNC)
void click() {
int count = model.clickCount.toInteger()
model.clickCount = String.valueOf(count + 1)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.