我正在尝试使用 groovyfx 实现多页应用程序,但我遇到了场景变化。假设我有以下代码:
start {
stage(id: 'stageId', title: 'sometitle'){
scene(id:'scene1'){
button(text:'goto scene 2', onAction: {/* i guess i should do something here` */})
}
scene(id:'scene2'){
label(text:'this is scene 2')
}
}
}
我应该对按钮的操作进行什么操作才能进入场景 2?