examples/old/CodingExamples_GUI__JavaAppletDemo2.st
author Claus Gittinger <cg@exept.de>
Wed, 30 May 2018 19:52:13 +0200
branchcvs_MAIN
changeset 3766 d96171d623c2
parent 3412 df11bb428463
permissions -rw-r--r--
*** empty log message ***

"{ Package: '__NoProject__' }"

"{ NameSpace: CodingExamples_GUI }"

ApplicationModel subclass:#JavaAppletDemo2
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'examples-Java-Applets'
!

!JavaAppletDemo2 class methodsFor:'documentation'!

documentation
"
    Simple app using a java applet

    [author:]
        Claus Gittinger (cg@betti)
"
!

examples
"
    examples to be added.
                                                                [exBegin]
    JavaAppletDemo2 open
                                                                [exEnd]
"
! !


!JavaAppletDemo2 class methodsFor:'interface specs'!

windowSpec
    "this window spec was automatically generated by the ST/X UIPainter"

    "do not manually edit this - the painter/builder may not be able to
     handle the specification if its corrupted."

    "
     UIPainter new openOnClass:CodingExamples_GUI::JavaAppletDemo2 andSelector:#windowSpec
     CodingExamples_GUI::JavaAppletDemo2 new openInterface:#windowSpec
    "
    "CodingExamples_GUI::JavaAppletDemo2 open"

    <resource: #canvas>

    ^
     
       #(#FullSpec
          #'window:' 
           #(#WindowSpec
              #'name:' 'standardSystemView'
              #'layout:' #(#LayoutFrame 61 0 177 0 369 0 661 0)
              #'label:' 'unnamed canvas'
              #'min:' #(#Point 10 10)
              #'max:' #(#Point 1280 1024)
              #'bounds:' #(#Rectangle 61 177 370 662)
              #'usePreferredExtent:' false
          )
          #'component:' 
           #(#SpecCollection
              #'collection:' 
               #(
                 #(#LabelSpec
                    #'name:' 'label1'
                    #'layout:' #(#LayoutFrame 0 0.0 7 0 0 1.0 48 0)
                    #'label:' 'Java applet example 2'
                    #'style:' #(#FontDescription #times #bold #roman 18)
                )
                 #(#ActionButtonSpec
                    #'name:' 'actionButton1'
                    #'layout:' #(#AlignmentOrigin 179 0 -14 1 0.5 1)
                    #'label:' 'dismiss'
                    #'model:' #closeRequest
                )
                 #(#ViewSpec
                    #'name:' 'view1'
                    #'layout:' #(#LayoutFrame 0 0.0 60 0.0 0 1.0 -60 1.0)
                    #'component:' 
                     #(#SpecCollection
                        #'collection:' 
                         #(
                           #(#JavaAppletComponentSpec
                              #'name:' 'javaAppletComponent2'
                              #'layout:' #(#LayoutFrame 0 0.0 1 0.0 0 1.0 -1 1.0)
                              #'codeURL:' 'Chart.class'
                              #'codeBaseURL:' 'file:examples/BarChart'
                              #'parameterDictionary:' 
                               #(#Dictionary
                                  'c4_color' 'red'
                                  'orientation' 'vertical'
                                  'c2_style' 'solid'
                                  'columns' '4'
                                  'title' 'Performance'
                                  'c3_label' 'Q3'
                                  'c4' '30'
                                  'scale value' '5'
                                  'c1_style' 'striped'
                                  'c4_style' 'solid'
                                  'c3_color' 'magenta'
                                  'c3' '5'
                                  'c2_label' 'Q2'
                                  'c2_color ' 'green'
                                  'c2' '20'
                                  'c1_color' 'blue'
                                  'c3_style' 'striped'
                                  'c1_label' 'Q1'
                                  'c1' '10'
                                  'c4_label' 'Q4'
                              )
                              #'level:' -1
                          )
                        )
                    )
                    #'level:' -1
                )
              )
          )
      )

    "Modified: / 30.1.1998 / 11:38:09 / cg"
! !


!JavaAppletDemo2 class methodsFor:'documentation'!

version
    ^ '$Id: CodingExamples_GUI__JavaAppletDemo2.st,v 1.5 2015-03-20 12:08:03 vrany Exp $'
! !