src/examples/JavaAppletDemo2.st
branchjk_new_structure
changeset 1573 38d044a80b88
parent 1572 e966fdad0a23
child 1574 e1a4ae7084f4
equal deleted inserted replaced
1572:e966fdad0a23 1573:38d044a80b88
     1 "{ NameSpace: CodingExamples_GUI }"
       
     2 
       
     3 ApplicationModel subclass:#JavaAppletDemo2
       
     4 	instanceVariableNames:''
       
     5 	classVariableNames:''
       
     6 	poolDictionaries:''
       
     7 	category:'examples-Java-Applets'
       
     8 !
       
     9 
       
    10 !JavaAppletDemo2 class methodsFor:'documentation'!
       
    11 
       
    12 documentation
       
    13 "
       
    14     Simple app using a java applet
       
    15 
       
    16     [author:]
       
    17         Claus Gittinger (cg@betti)
       
    18 "
       
    19 !
       
    20 
       
    21 examples
       
    22 "
       
    23     examples to be added.
       
    24                                                                 [exBegin]
       
    25     JavaAppletDemo2 open
       
    26                                                                 [exEnd]
       
    27 "
       
    28 ! !
       
    29 
       
    30 !JavaAppletDemo2 class methodsFor:'interface specs'!
       
    31 
       
    32 windowSpec
       
    33     "this window spec was automatically generated by the ST/X UIPainter"
       
    34 
       
    35     "do not manually edit this - the painter/builder may not be able to
       
    36      handle the specification if its corrupted."
       
    37 
       
    38     "
       
    39      UIPainter new openOnClass:CodingExamples_GUI::JavaAppletDemo2 andSelector:#windowSpec
       
    40      CodingExamples_GUI::JavaAppletDemo2 new openInterface:#windowSpec
       
    41     "
       
    42     "CodingExamples_GUI::JavaAppletDemo2 open"
       
    43 
       
    44     <resource: #canvas>
       
    45 
       
    46     ^
       
    47      
       
    48        #(#FullSpec
       
    49           #'window:' 
       
    50            #(#WindowSpec
       
    51               #'name:' 'standardSystemView'
       
    52               #'layout:' #(#LayoutFrame 61 0 177 0 369 0 661 0)
       
    53               #'label:' 'unnamed canvas'
       
    54               #'min:' #(#Point 10 10)
       
    55               #'max:' #(#Point 1280 1024)
       
    56               #'bounds:' #(#Rectangle 61 177 370 662)
       
    57               #'usePreferredExtent:' false
       
    58           )
       
    59           #'component:' 
       
    60            #(#SpecCollection
       
    61               #'collection:' 
       
    62                #(
       
    63                  #(#LabelSpec
       
    64                     #'name:' 'label1'
       
    65                     #'layout:' #(#LayoutFrame 0 0.0 7 0 0 1.0 48 0)
       
    66                     #'label:' 'Java applet example 2'
       
    67                     #'style:' #(#FontDescription #times #bold #roman 18)
       
    68                 )
       
    69                  #(#ActionButtonSpec
       
    70                     #'name:' 'actionButton1'
       
    71                     #'layout:' #(#AlignmentOrigin 179 0 -14 1 0.5 1)
       
    72                     #'label:' 'dismiss'
       
    73                     #'model:' #closeRequest
       
    74                 )
       
    75                  #(#ViewSpec
       
    76                     #'name:' 'view1'
       
    77                     #'layout:' #(#LayoutFrame 0 0.0 60 0.0 0 1.0 -60 1.0)
       
    78                     #'component:' 
       
    79                      #(#SpecCollection
       
    80                         #'collection:' 
       
    81                          #(
       
    82                            #(#JavaAppletComponentSpec
       
    83                               #'name:' 'javaAppletComponent2'
       
    84                               #'layout:' #(#LayoutFrame 0 0.0 1 0.0 0 1.0 -1 1.0)
       
    85                               #'codeURL:' 'Chart.class'
       
    86                               #'codeBaseURL:' 'file:examples/BarChart'
       
    87                               #'parameterDictionary:' 
       
    88                                #(#Dictionary
       
    89                                   'c4_color' 'red'
       
    90                                   'orientation' 'vertical'
       
    91                                   'c2_style' 'solid'
       
    92                                   'columns' '4'
       
    93                                   'title' 'Performance'
       
    94                                   'c3_label' 'Q3'
       
    95                                   'c4' '30'
       
    96                                   'scale value' '5'
       
    97                                   'c1_style' 'striped'
       
    98                                   'c4_style' 'solid'
       
    99                                   'c3_color' 'magenta'
       
   100                                   'c3' '5'
       
   101                                   'c2_label' 'Q2'
       
   102                                   'c2_color ' 'green'
       
   103                                   'c2' '20'
       
   104                                   'c1_color' 'blue'
       
   105                                   'c3_style' 'striped'
       
   106                                   'c1_label' 'Q1'
       
   107                                   'c1' '10'
       
   108                                   'c4_label' 'Q4'
       
   109                               )
       
   110                               #'level:' -1
       
   111                           )
       
   112                         )
       
   113                     )
       
   114                     #'level:' -1
       
   115                 )
       
   116               )
       
   117           )
       
   118       )
       
   119 
       
   120     "Modified: / 30.1.1998 / 11:38:09 / cg"
       
   121 ! !
       
   122 
       
   123 !JavaAppletDemo2 class methodsFor:'documentation'!
       
   124 
       
   125 version
       
   126     ^ '$Header: /home/jv/Projects/SmalltalkX/repositories/cvs/stx/libjava/examples/JavaAppletDemo2.st,v 1.4 1999/12/23 18:07:15 cg Exp $'
       
   127 ! !