demos\blackmajic\javafx.sdf
  1 Form {
  2   borders {
  3     bevel_raised [ cornerArc="10" ]
  4   }
  5   verticalAlign: full
  6   horizontalAlign: full
  7   bgColor: "defaultBackground+15, defaultBackground+5"
  8   scriptURL:<<
  9     var hasSelection=false
 10     function changeJavaFXViewer(sceneClass) {
 11       window.showWaitCursor()
 12       try {
 13         fx.scene=sceneClass
 14       }
 15       finally {
 16         window.hideWaitCursor()
 17       }
 18     }
 19 >> [ inline="true" ]
 20   layout: forms
 21   rows: "14dlu,d:g,14dlu,d,14dlu"
 22   columns: "d:g"
 23   widgets {
 24     {
 25       GroupBox {
 26         borders {
 27           line_3d [ cornerArc="6" ]
 28         }
 29         horizontalAlign: center
 30         bgColor: "Sage.controlLtGradient,,,Sage.controlDkGradient"
 31         bounds {
 32           x: "0"
 33           y: "3"
 34         }
 35         layout: forms
 36         rows: "4dlu,d,4dlu"
 37         columns: "4dlu,d,4dlu,d,4dlu,d,4dlu,d,4dlu,d,4dlu"
 38         widgets {
 39           {
 40             PushButton {
 41               borders {
 42                 line [ color="transparent", cornerArc="10", thickness="2" ]
 43                 empty [ insets="4,4,4,4" ]
 44               }
 45               font {
 46                 size: "+3"
 47                 style: bold
 48               }
 49               fgColor: "foregroundColor"
 50               bgColor: "defaultBackground@1"
 51               bounds {
 52                 x: "1"
 53                 y: "1"
 54               }
 55               name: "analogClock"
 56               templateName: "headerButton"
 57               value: "Analog Clock"
 58               rolloverEnabled: false
 59               groupName: "javafx"
 60               selected: true
 61               buttonStyle: toggle_toolbar
 62               selectionPainter {
 63                 bgColor: "Sage.controlDkShadow,Sage.controlDkShadow~brighter"
 64                 borders {
 65                   line [ cornerArc="10", thickness="2", color="podHilite" ]
 66                   empty [ insets="4,4,4,4" ]
 67                 }
 68               } [ foreground="brightForeground" ]
 69             } [ onAction="changeJavaFXViewer('com.sparseware.sage.javafx.AnalogClock')" ]
 70           }
 71           {
 72             PushButton {
 73               borders {
 74                 line [ color="transparent", cornerArc="10", thickness="2" ]
 75                 empty [ insets="4,4,4,4" ]
 76               }
 77               font {
 78                 size: "+3"
 79                 style: bold
 80               }
 81               fgColor: "foregroundColor"
 82               bgColor: "defaultBackground@1"
 83               bounds {
 84                 x: "3"
 85                 y: "1"
 86               }
 87               templateName: "headerButton"
 88               value: "Media Player"
 89               name: "mediaPlayer"
 90               rolloverEnabled: false
 91               groupName: "javafx"
 92               buttonStyle: toggle_toolbar
 93               selectionPainter {
 94                 bgColor: "Sage.controlDkShadow,Sage.controlDkShadow~brighter"
 95                 borders {
 96                   line [ cornerArc="10", thickness="2", color="podHilite" ]
 97                   empty [ insets="4,4,4,4" ]
 98                 }
 99               } [ foreground="brightForeground" ]
100             } [ onAction="changeJavaFXViewer('com.sparseware.sage.javafx.MediaPlayer')" ]
101           }
102         }
103       }
104     }
105     {
106       Viewer {
107         name: "fx"
108         borders {
109           line_3d
110         }
111         verticalAlign: full
112         horizontalAlign: full
113         bounds {
114           x: "0"
115           y: "1"
116         }
117       } [ viewerClass="com.sparseware.sage.viewer.JavaFXViewer" ]
118     }
119   }
120 } [ onLoad="if(!hasSelection){analogClock.click();hasSelection=true}"]
121 
122