Skip to content

Instantly share code, notes, and snippets.

@aalmiray
Created December 21, 2009 04:30
Show Gist options
  • Save aalmiray/260776 to your computer and use it in GitHub Desktop.
Save aalmiray/260776 to your computer and use it in GitHub Desktop.
/*
* Griffon + Pivot application based on
* http://incubator.apache.org/pivot/1.3/tutorials/link_buttons.html
*/
import org.apache.pivot.wtk.Orientation
application(title: "Pivot Window", maximized: true) {
cardPane(id: 'aCardPane', styles: "{selectionChangeEffect:'horizontal_slide'}") {
boxPane(orientation: Orientation.VERTICAL, styles: '{horizontalAlignment:"center", verticalAlignment:"center"}') {
imageView(image: 'IMG_0735_2.jpg')
linkButton(buttonPressed: { aCardPane.selectedIndex = 1 }) {
buttonData(text: 'Next', icon: 'resultset_next.png')
}
}
boxPane(orientation: Orientation.VERTICAL, styles: '{horizontalAlignment:"center", verticalAlignment:"center"}') {
imageView(image: 'IMG_0767_2.jpg')
linkButton(buttonPressed: { aCardPane.selectedIndex = 0 }) {
buttonData(text: 'Previous', icon: 'resultset_previous.png')
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment