Calling a method on Button Push [message #1781565] |
Thu, 08 February 2018 16:58  |
Dominik Nickl Messages: 5 Registered: February 2018 |
Junior Member |
|
|
Hi
I've bin working with Parsely for quite a bit now and encountert a little probem.
I have a entylist of different literature types and want so search for a specific titel
I added a label and button, but now i'm unsure of how to address th specific entrylist to call my search method
formControlFactory {
control {
Entrylist : search -> {
val c = new Composite(parent, SWT.NONE)
c.layout = new GridLayout(2, false)
val t = createText(c, SWT.BORDER)
val b = new Button(c, SWT.PUSH)
b.^text = "Search Titel"
b.addListener(SWT.MouseDown) [
MessageDialog.openInformation(c.shell, "Event", Entrylist.search(search))
//I just don't know, how i reference the Entrylist, the button and label are linked to.
]
return t
} target {
observeText
}
}
}
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02422 seconds