JavaAppletComponentSpec.st
author Claus Gittinger <cg@exept.de>
Fri, 18 Aug 2006 16:28:37 +0200
changeset 2128 35bac600b15d
parent 2108 ca8c4e7db2e8
permissions -rw-r--r--
*** empty log message ***
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
545
6a841644c5e9 checkin from browser
cg
parents: 320
diff changeset
     1
"
6a841644c5e9 checkin from browser
cg
parents: 320
diff changeset
     2
 COPYRIGHT (c) 1997 by eXept Software AG
6a841644c5e9 checkin from browser
cg
parents: 320
diff changeset
     3
              All Rights Reserved
6a841644c5e9 checkin from browser
cg
parents: 320
diff changeset
     4
6a841644c5e9 checkin from browser
cg
parents: 320
diff changeset
     5
 This software is furnished under a license and may be used
6a841644c5e9 checkin from browser
cg
parents: 320
diff changeset
     6
 only in accordance with the terms of that license and with the
6a841644c5e9 checkin from browser
cg
parents: 320
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
6a841644c5e9 checkin from browser
cg
parents: 320
diff changeset
     8
 be provided or otherwise made available to, or used by, any
6a841644c5e9 checkin from browser
cg
parents: 320
diff changeset
     9
 other person.  No title to or ownership of the software is
6a841644c5e9 checkin from browser
cg
parents: 320
diff changeset
    10
 hereby transferred.
6a841644c5e9 checkin from browser
cg
parents: 320
diff changeset
    11
"
6a841644c5e9 checkin from browser
cg
parents: 320
diff changeset
    12
6a841644c5e9 checkin from browser
cg
parents: 320
diff changeset
    13
713
75e92ac63bf1 category change
cg
parents: 648
diff changeset
    14
"{ Package: 'stx:libjava' }"
75e92ac63bf1 category change
cg
parents: 648
diff changeset
    15
289
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
    16
NamedSpec subclass:#JavaAppletComponentSpec
549
b38b279d7457 alread has a level instvar
cg
parents: 545
diff changeset
    17
	instanceVariableNames:'codeURL codeBaseURL documentURL archiveURL parameterDictionary'
287
73065896fbb4 initial checkin
cg
parents:
diff changeset
    18
	classVariableNames:''
73065896fbb4 initial checkin
cg
parents:
diff changeset
    19
	poolDictionaries:''
713
75e92ac63bf1 category change
cg
parents: 648
diff changeset
    20
	category:'Languages-Java-Views-Support'
287
73065896fbb4 initial checkin
cg
parents:
diff changeset
    21
!
73065896fbb4 initial checkin
cg
parents:
diff changeset
    22
545
6a841644c5e9 checkin from browser
cg
parents: 320
diff changeset
    23
!JavaAppletComponentSpec class methodsFor:'documentation'!
6a841644c5e9 checkin from browser
cg
parents: 320
diff changeset
    24
6a841644c5e9 checkin from browser
cg
parents: 320
diff changeset
    25
copyright
6a841644c5e9 checkin from browser
cg
parents: 320
diff changeset
    26
"
6a841644c5e9 checkin from browser
cg
parents: 320
diff changeset
    27
 COPYRIGHT (c) 1997 by eXept Software AG
6a841644c5e9 checkin from browser
cg
parents: 320
diff changeset
    28
              All Rights Reserved
6a841644c5e9 checkin from browser
cg
parents: 320
diff changeset
    29
6a841644c5e9 checkin from browser
cg
parents: 320
diff changeset
    30
 This software is furnished under a license and may be used
6a841644c5e9 checkin from browser
cg
parents: 320
diff changeset
    31
 only in accordance with the terms of that license and with the
6a841644c5e9 checkin from browser
cg
parents: 320
diff changeset
    32
 inclusion of the above copyright notice.   This software may not
6a841644c5e9 checkin from browser
cg
parents: 320
diff changeset
    33
 be provided or otherwise made available to, or used by, any
6a841644c5e9 checkin from browser
cg
parents: 320
diff changeset
    34
 other person.  No title to or ownership of the software is
6a841644c5e9 checkin from browser
cg
parents: 320
diff changeset
    35
 hereby transferred.
6a841644c5e9 checkin from browser
cg
parents: 320
diff changeset
    36
"
6a841644c5e9 checkin from browser
cg
parents: 320
diff changeset
    37
6a841644c5e9 checkin from browser
cg
parents: 320
diff changeset
    38
!
6a841644c5e9 checkin from browser
cg
parents: 320
diff changeset
    39
6a841644c5e9 checkin from browser
cg
parents: 320
diff changeset
    40
documentation
6a841644c5e9 checkin from browser
cg
parents: 320
diff changeset
    41
"
6a841644c5e9 checkin from browser
cg
parents: 320
diff changeset
    42
    [Author:]
6a841644c5e9 checkin from browser
cg
parents: 320
diff changeset
    43
        Claus Gittinger
6a841644c5e9 checkin from browser
cg
parents: 320
diff changeset
    44
"
6a841644c5e9 checkin from browser
cg
parents: 320
diff changeset
    45
6a841644c5e9 checkin from browser
cg
parents: 320
diff changeset
    46
! !
287
73065896fbb4 initial checkin
cg
parents:
diff changeset
    47
73065896fbb4 initial checkin
cg
parents:
diff changeset
    48
!JavaAppletComponentSpec class methodsFor:'interface specs'!
73065896fbb4 initial checkin
cg
parents:
diff changeset
    49
73065896fbb4 initial checkin
cg
parents:
diff changeset
    50
addBindingsTo:env for:inst channel:aChannel 
292
8d68e41fcc19 parameter specification ...
cg
parents: 291
diff changeset
    51
    |nameStringHolder valueStringHolder 
293
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
    52
     paramNameListHolder selectionInParameters
296
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
    53
     indexHolder
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
    54
     appletTextHolder textAcceptChannel|
293
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
    55
 
287
73065896fbb4 initial checkin
cg
parents:
diff changeset
    56
    super addBindingsTo:env for:inst channel:aChannel.
73065896fbb4 initial checkin
cg
parents:
diff changeset
    57
73065896fbb4 initial checkin
cg
parents:
diff changeset
    58
    self 
73065896fbb4 initial checkin
cg
parents:
diff changeset
    59
        adaptApects:
73065896fbb4 initial checkin
cg
parents:
diff changeset
    60
                    #(  
289
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
    61
                        codeURL
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
    62
                        codeBaseURL
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
    63
                        archiveURL
295
a56f1bd66dc2 checkin from browser
cg
parents: 293
diff changeset
    64
                        parameterDictionary
287
73065896fbb4 initial checkin
cg
parents:
diff changeset
    65
                     )
73065896fbb4 initial checkin
cg
parents:
diff changeset
    66
        to:env 
73065896fbb4 initial checkin
cg
parents:
diff changeset
    67
        for:inst 
73065896fbb4 initial checkin
cg
parents:
diff changeset
    68
        channel:aChannel.
73065896fbb4 initial checkin
cg
parents:
diff changeset
    69
296
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
    70
    "/
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
    71
    "/ tricky setup for the parameter section
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
    72
    "/ (a bit complicated to avoid the need for defining
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
    73
    "/  new methods in my application (the GUI-painter)
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
    74
    "/  instead, everything is done via blocks.)
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
    75
    "/
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
    76
    selectionInParameters := SelectionInList new.
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
    77
    env at:#paramNameListHolder put:selectionInParameters.
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
    78
    env at:#paramNameString     put:(nameStringHolder := '' asValue).
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
    79
    env at:#paramValueString    put:(valueStringHolder := '' asValue).
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
    80
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
    81
    aChannel onChangeSend:#value to:[
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
    82
                                        |parameterListHolder inst|
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
    83
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
    84
                                        inst := aChannel value.
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
    85
                                        parameterListHolder := env at:#paramNameListHolder.
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
    86
                                        inst parameterDictionary notNil ifTrue:[
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
    87
                                            parameterListHolder list:(inst parameterDictionary keys asSortedCollection)
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
    88
                                        ] ifFalse:[
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
    89
                                            parameterListHolder list:SortedCollection new
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
    90
                                        ].
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
    91
                                    ].
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
    92
292
8d68e41fcc19 parameter specification ...
cg
parents: 291
diff changeset
    93
    inst parameterDictionary notNil ifTrue:[
296
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
    94
        paramNameListHolder := (inst parameterDictionary keys asSortedCollection) asValue
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
    95
    ] ifFalse:[
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
    96
        paramNameListHolder := SortedCollection new asValue
292
8d68e41fcc19 parameter specification ...
cg
parents: 291
diff changeset
    97
    ].
8d68e41fcc19 parameter specification ...
cg
parents: 291
diff changeset
    98
    selectionInParameters listHolder:paramNameListHolder.
8d68e41fcc19 parameter specification ...
cg
parents: 291
diff changeset
    99
293
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   100
    indexHolder := selectionInParameters indexHolder.
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   101
    indexHolder 
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   102
        onChangeSend:#value 
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   103
        to:[
296
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   104
            |selectedName selectedValue index inst|
293
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   105
296
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   106
            inst := aChannel value.
293
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   107
            index := indexHolder value.
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   108
            index ~~ 0 ifTrue:[
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   109
                selectedName := paramNameListHolder value at:index. 
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   110
                selectedValue := inst parameterDictionary at:selectedName ifAbsent:''.
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   111
                nameStringHolder value:selectedName.
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   112
                valueStringHolder value:selectedValue
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   113
            ]
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   114
           ].
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   115
292
8d68e41fcc19 parameter specification ...
cg
parents: 291
diff changeset
   116
8d68e41fcc19 parameter specification ...
cg
parents: 291
diff changeset
   117
    env at:#addParam    put:[
296
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   118
                                |newName inst|
293
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   119
296
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   120
                                inst := aChannel value.
293
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   121
                                newName := nameStringHolder value.
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   122
                                newName notEmpty ifTrue:[
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   123
                                    inst 
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   124
                                        addParameter:newName
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   125
                                        value:valueStringHolder value.
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   126
                                    paramNameListHolder 
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   127
                                        value:(inst parameterDictionary keys asSortedCollection)
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   128
                                ]
292
8d68e41fcc19 parameter specification ...
cg
parents: 291
diff changeset
   129
                            ].
8d68e41fcc19 parameter specification ...
cg
parents: 291
diff changeset
   130
    env at:#removeParam put:[
296
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   131
                                |nameToRemove inst|
293
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   132
296
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   133
                                inst := aChannel value.
293
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   134
                                nameToRemove := nameStringHolder value.
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   135
                                nameToRemove notEmpty ifTrue:[
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   136
                                    inst removeParameter:nameToRemove.
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   137
                                    paramNameListHolder 
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   138
                                        value:(inst parameterDictionary keys asSortedCollection).
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   139
                                    indexHolder value:0.
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   140
                                ]
292
8d68e41fcc19 parameter specification ...
cg
parents: 291
diff changeset
   141
                            ].
8d68e41fcc19 parameter specification ...
cg
parents: 291
diff changeset
   142
296
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   143
    "/
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   144
    "/ tricky setup for the appletText section
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   145
    "/
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   146
    env at:#textAcceptChannel put:(textAcceptChannel := false asValue).
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   147
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   148
    appletTextHolder := '' asValue.
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   149
    env at:#appletText put:appletTextHolder.
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   150
    env at:#parseText    put:[
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   151
                                |appletTagText builder editor inst|
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   152
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   153
                                inst := aChannel value.
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   154
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   155
                                "/ force accept ...
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   156
                                textAcceptChannel setValue:false.
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   157
                                textAcceptChannel value:true.
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   158
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   159
                                appletTagText := appletTextHolder value.
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   160
                                appletTagText notEmpty ifTrue:[
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   161
                                    inst parseParametersFromAppletTag:appletTagText.
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   162
                                ].
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   163
                                paramNameListHolder value:(inst parameterDictionary keys asSortedCollection)
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   164
                            ].
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   165
314
6e36263467e2 added browse button
cg
parents: 296
diff changeset
   166
6e36263467e2 added browse button
cg
parents: 296
diff changeset
   167
    env at:#browseForURL put:[
6e36263467e2 added browse button
cg
parents: 296
diff changeset
   168
                                |path|
6e36263467e2 added browse button
cg
parents: 296
diff changeset
   169
6e36263467e2 added browse button
cg
parents: 296
diff changeset
   170
                                path := FileSelectionBrowser 
6e36263467e2 added browse button
cg
parents: 296
diff changeset
   171
                                            request: 'CodeFile' 
6e36263467e2 added browse button
cg
parents: 296
diff changeset
   172
                                            fileName: 'classFile.class'
6e36263467e2 added browse button
cg
parents: 296
diff changeset
   173
                                            inDirectory: Filename currentDirectory name
315
369ed2cb472a checkin from browser
cg
parents: 314
diff changeset
   174
                                            withFileFilters: #('*.class' '*.cls').
314
6e36263467e2 added browse button
cg
parents: 296
diff changeset
   175
6e36263467e2 added browse button
cg
parents: 296
diff changeset
   176
                                path notNil ifTrue:[
6e36263467e2 added browse button
cg
parents: 296
diff changeset
   177
                                    (env at:#codeURL) value:(path asFilename baseName).
6e36263467e2 added browse button
cg
parents: 296
diff changeset
   178
                                    (env at:#codeBaseURL) value:('file:' , path asFilename directoryName).
6e36263467e2 added browse button
cg
parents: 296
diff changeset
   179
                                ]
6e36263467e2 added browse button
cg
parents: 296
diff changeset
   180
                            ].
6e36263467e2 added browse button
cg
parents: 296
diff changeset
   181
287
73065896fbb4 initial checkin
cg
parents:
diff changeset
   182
    "Created: / 29.1.1998 / 14:17:39 / cg"
315
369ed2cb472a checkin from browser
cg
parents: 314
diff changeset
   183
    "Modified: / 5.2.1998 / 13:46:00 / cg"
296
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   184
!
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   185
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   186
appletTagEditSpec
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   187
    "this window spec was automatically generated by the ST/X UIPainter"
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   188
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   189
    "do not manually edit this - the painter/builder may not be able to
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   190
     handle the specification if its corrupted."
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   191
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   192
    "
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   193
     UIPainter new openOnClass:JavaAppletComponentSpec andSelector:#appletTagEditSpec
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   194
     JavaAppletComponentSpec new openInterface:#appletTagEditSpec
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   195
    "
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   196
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   197
    <resource: #canvas>
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   198
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   199
    ^
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   200
     
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   201
       #(#FullSpec
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   202
          #'window:' 
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   203
           #(#WindowSpec
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   204
              #'name:' 'ArbitraryComponent Detail'
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   205
              #'layout:' #(#LayoutFrame 24 0 161 0 299 0 456 0)
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   206
              #'label:' 'ArbitraryComponent Detail'
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   207
              #'min:' #(#Point 10 10)
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   208
              #'max:' #(#Point 1160 870)
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   209
              #'bounds:' #(#Rectangle 24 161 300 457)
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   210
              #'usePreferredExtent:' false
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   211
          )
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   212
          #'component:' 
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   213
           #(#SpecCollection
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   214
              #'collection:' 
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   215
               #(
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   216
                 #(#LabelSpec
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   217
                    #'name:' 'label3'
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   218
                    #'layout:' #(#LayoutFrame 2 0 7 0 198 0 29 0)
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   219
                    #'label:' 'Applet Tag (HTML):'
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   220
                    #'adjust:' #left
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   221
                )
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   222
                 #(#TextEditorSpec
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   223
                    #'name:' 'textEditor1'
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   224
                    #'layout:' #(#LayoutFrame 0 0.0 32 0 0 1.0 -40 1.0)
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   225
                    #'activeHelpKey:' #appletParamText
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   226
                    #'model:' #appletText
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   227
                    #'hasHorizontalScrollBar:' true
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   228
                    #'hasVerticalScrollBar:' true
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   229
                    #'miniScrollerHorizontal:' true
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   230
                    #'acceptChannel:' #textAcceptChannel
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   231
                )
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   232
                 #(#HorizontalPanelViewSpec
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   233
                    #'name:' 'horizontalPanelView1'
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   234
                    #'layout:' #(#LayoutFrame 0 0.0 -39 1.0 0 1.0 -2 1.0)
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   235
                    #'component:' 
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   236
                     #(#SpecCollection
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   237
                        #'collection:' 
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   238
                         #(
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   239
                           #(#ButtonSpec
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   240
                              #'name:' 'parseButton'
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   241
                              #'activeHelpKey:' #appletTextParse
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   242
                              #'label:' 'Parse'
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   243
                              #'model:' #parseText
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   244
                              #'extent:' #(#Point 99 28)
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   245
                          )
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   246
                        )
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   247
                    )
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   248
                    #'horizontalLayout:' #center
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   249
                    #'verticalLayout:' #center
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   250
                    #'horizontalSpace:' 3
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   251
                    #'verticalSpace:' 3
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   252
                )
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   253
              )
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   254
          )
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   255
      )
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   256
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   257
    "Modified: / 1.2.1998 / 15:04:33 / cg"
287
73065896fbb4 initial checkin
cg
parents:
diff changeset
   258
!
73065896fbb4 initial checkin
cg
parents:
diff changeset
   259
73065896fbb4 initial checkin
cg
parents:
diff changeset
   260
basicsEditSpec
73065896fbb4 initial checkin
cg
parents:
diff changeset
   261
    "this window spec was automatically generated by the ST/X UIPainter"
73065896fbb4 initial checkin
cg
parents:
diff changeset
   262
73065896fbb4 initial checkin
cg
parents:
diff changeset
   263
    "do not manually edit this - the painter/builder may not be able to
73065896fbb4 initial checkin
cg
parents:
diff changeset
   264
     handle the specification if its corrupted."
73065896fbb4 initial checkin
cg
parents:
diff changeset
   265
73065896fbb4 initial checkin
cg
parents:
diff changeset
   266
    "
73065896fbb4 initial checkin
cg
parents:
diff changeset
   267
     UIPainter new openOnClass:JavaAppletComponentSpec andSelector:#basicsEditSpec
73065896fbb4 initial checkin
cg
parents:
diff changeset
   268
     JavaAppletComponentSpec new openInterface:#basicsEditSpec
73065896fbb4 initial checkin
cg
parents:
diff changeset
   269
    "
73065896fbb4 initial checkin
cg
parents:
diff changeset
   270
73065896fbb4 initial checkin
cg
parents:
diff changeset
   271
    <resource: #canvas>
73065896fbb4 initial checkin
cg
parents:
diff changeset
   272
73065896fbb4 initial checkin
cg
parents:
diff changeset
   273
    ^
73065896fbb4 initial checkin
cg
parents:
diff changeset
   274
     
73065896fbb4 initial checkin
cg
parents:
diff changeset
   275
       #(#FullSpec
73065896fbb4 initial checkin
cg
parents:
diff changeset
   276
          #'window:' 
73065896fbb4 initial checkin
cg
parents:
diff changeset
   277
           #(#WindowSpec
73065896fbb4 initial checkin
cg
parents:
diff changeset
   278
              #'name:' 'ArbitraryComponent Basic'
315
369ed2cb472a checkin from browser
cg
parents: 314
diff changeset
   279
              #'layout:' #(#LayoutFrame 190 0 437 0 496 0 727 0)
287
73065896fbb4 initial checkin
cg
parents:
diff changeset
   280
              #'label:' 'ArbitraryComponent Basic'
73065896fbb4 initial checkin
cg
parents:
diff changeset
   281
              #'min:' #(#Point 10 10)
73065896fbb4 initial checkin
cg
parents:
diff changeset
   282
              #'max:' #(#Point 1280 1024)
315
369ed2cb472a checkin from browser
cg
parents: 314
diff changeset
   283
              #'bounds:' #(#Rectangle 190 437 497 728)
287
73065896fbb4 initial checkin
cg
parents:
diff changeset
   284
              #'usePreferredExtent:' false
73065896fbb4 initial checkin
cg
parents:
diff changeset
   285
          )
73065896fbb4 initial checkin
cg
parents:
diff changeset
   286
          #'component:' 
73065896fbb4 initial checkin
cg
parents:
diff changeset
   287
           #(#SpecCollection
73065896fbb4 initial checkin
cg
parents:
diff changeset
   288
              #'collection:' 
73065896fbb4 initial checkin
cg
parents:
diff changeset
   289
               #(
73065896fbb4 initial checkin
cg
parents:
diff changeset
   290
                 #(#LabelSpec
73065896fbb4 initial checkin
cg
parents:
diff changeset
   291
                    #'name:' 'idLabel'
73065896fbb4 initial checkin
cg
parents:
diff changeset
   292
                    #'layout:' #(#AlignmentOrigin 72 0 30 0 1 0.5)
73065896fbb4 initial checkin
cg
parents:
diff changeset
   293
                    #'label:' 'ID:'
73065896fbb4 initial checkin
cg
parents:
diff changeset
   294
                    #'resizeForLabel:' true
73065896fbb4 initial checkin
cg
parents:
diff changeset
   295
                )
73065896fbb4 initial checkin
cg
parents:
diff changeset
   296
                 #(#InputFieldSpec
73065896fbb4 initial checkin
cg
parents:
diff changeset
   297
                    #'name:' 'idField'
73065896fbb4 initial checkin
cg
parents:
diff changeset
   298
                    #'layout:' #(#LayoutFrame 75 0 20 0 -2 1 45 0)
73065896fbb4 initial checkin
cg
parents:
diff changeset
   299
                    #'activeHelpKey:' #id
73065896fbb4 initial checkin
cg
parents:
diff changeset
   300
                    #'model:' #name
73065896fbb4 initial checkin
cg
parents:
diff changeset
   301
                )
73065896fbb4 initial checkin
cg
parents:
diff changeset
   302
                 #(#LabelSpec
73065896fbb4 initial checkin
cg
parents:
diff changeset
   303
                    #'name:' 'codeURLLabel'
73065896fbb4 initial checkin
cg
parents:
diff changeset
   304
                    #'layout:' #(#AlignmentOrigin 85 0 106 0 1 0.5)
291
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   305
                    #'label:' 'CodeFile:'
287
73065896fbb4 initial checkin
cg
parents:
diff changeset
   306
                    #'resizeForLabel:' true
73065896fbb4 initial checkin
cg
parents:
diff changeset
   307
                )
73065896fbb4 initial checkin
cg
parents:
diff changeset
   308
                 #(#InputFieldSpec
289
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   309
                    #'name:' 'codeURLField'
315
369ed2cb472a checkin from browser
cg
parents: 314
diff changeset
   310
                    #'layout:' #(#LayoutFrame 87 0 95 0 -83 1 120 0)
296
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   311
                    #'activeHelpKey:' #codeFileEntry
289
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   312
                    #'model:' #codeURL
287
73065896fbb4 initial checkin
cg
parents:
diff changeset
   313
                )
73065896fbb4 initial checkin
cg
parents:
diff changeset
   314
                 #(#LabelSpec
289
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   315
                    #'name:' 'codeBaseURLLabel'
291
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   316
                    #'layout:' #(#AlignmentOrigin 85 0 177 0 1 0.5)
287
73065896fbb4 initial checkin
cg
parents:
diff changeset
   317
                    #'label:' 'CodeBase:'
73065896fbb4 initial checkin
cg
parents:
diff changeset
   318
                    #'adjust:' #right
73065896fbb4 initial checkin
cg
parents:
diff changeset
   319
                    #'resizeForLabel:' true
73065896fbb4 initial checkin
cg
parents:
diff changeset
   320
                )
73065896fbb4 initial checkin
cg
parents:
diff changeset
   321
                 #(#InputFieldSpec
289
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   322
                    #'name:' 'codeBaseURLField'
291
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   323
                    #'layout:' #(#LayoutFrame 87 0 166 0 -2 1.0 191 0)
296
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   324
                    #'activeHelpKey:' #codeBaseHolder
289
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   325
                    #'model:' #codeBaseURL
287
73065896fbb4 initial checkin
cg
parents:
diff changeset
   326
                )
73065896fbb4 initial checkin
cg
parents:
diff changeset
   327
                 #(#LabelSpec
289
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   328
                    #'name:' 'archiveURLLabel'
291
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   329
                    #'layout:' #(#AlignmentOrigin 85 0 206 0 1 0.5)
287
73065896fbb4 initial checkin
cg
parents:
diff changeset
   330
                    #'label:' 'Archive:'
73065896fbb4 initial checkin
cg
parents:
diff changeset
   331
                    #'adjust:' #right
73065896fbb4 initial checkin
cg
parents:
diff changeset
   332
                    #'resizeForLabel:' true
73065896fbb4 initial checkin
cg
parents:
diff changeset
   333
                )
73065896fbb4 initial checkin
cg
parents:
diff changeset
   334
                 #(#InputFieldSpec
289
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   335
                    #'name:' 'archiveURLField1'
291
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   336
                    #'layout:' #(#LayoutFrame 87 0 195 0 -2 1.0 220 0)
296
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   337
                    #'activeHelpKey:' #archiveEntry
289
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   338
                    #'model:' #archiveURL
287
73065896fbb4 initial checkin
cg
parents:
diff changeset
   339
                )
73065896fbb4 initial checkin
cg
parents:
diff changeset
   340
                 #(#LabelSpec
73065896fbb4 initial checkin
cg
parents:
diff changeset
   341
                    #'name:' 'label1'
291
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   342
                    #'layout:' #(#LayoutFrame 2 0 139 0 198 0 161 0)
287
73065896fbb4 initial checkin
cg
parents:
diff changeset
   343
                    #'label:' 'URLS:'
73065896fbb4 initial checkin
cg
parents:
diff changeset
   344
                    #'adjust:' #left
73065896fbb4 initial checkin
cg
parents:
diff changeset
   345
                )
314
6e36263467e2 added browse button
cg
parents: 296
diff changeset
   346
                 #(#ButtonSpec
6e36263467e2 added browse button
cg
parents: 296
diff changeset
   347
                    #'name:' 'browseButton'
315
369ed2cb472a checkin from browser
cg
parents: 314
diff changeset
   348
                    #'layout:' #(#LayoutFrame -80 1.0 95 0 -2 1.0 119 0)
369ed2cb472a checkin from browser
cg
parents: 314
diff changeset
   349
                    #'label:' 'Browse...'
314
6e36263467e2 added browse button
cg
parents: 296
diff changeset
   350
                    #'model:' #browseForURL
6e36263467e2 added browse button
cg
parents: 296
diff changeset
   351
                )
287
73065896fbb4 initial checkin
cg
parents:
diff changeset
   352
              )
73065896fbb4 initial checkin
cg
parents:
diff changeset
   353
          )
73065896fbb4 initial checkin
cg
parents:
diff changeset
   354
      )
73065896fbb4 initial checkin
cg
parents:
diff changeset
   355
315
369ed2cb472a checkin from browser
cg
parents: 314
diff changeset
   356
    "Modified: / 5.2.1998 / 13:29:45 / cg"
287
73065896fbb4 initial checkin
cg
parents:
diff changeset
   357
!
73065896fbb4 initial checkin
cg
parents:
diff changeset
   358
73065896fbb4 initial checkin
cg
parents:
diff changeset
   359
detailsEditSpec
73065896fbb4 initial checkin
cg
parents:
diff changeset
   360
    "this window spec was automatically generated by the ST/X UIPainter"
73065896fbb4 initial checkin
cg
parents:
diff changeset
   361
73065896fbb4 initial checkin
cg
parents:
diff changeset
   362
    "do not manually edit this - the painter/builder may not be able to
73065896fbb4 initial checkin
cg
parents:
diff changeset
   363
     handle the specification if its corrupted."
73065896fbb4 initial checkin
cg
parents:
diff changeset
   364
73065896fbb4 initial checkin
cg
parents:
diff changeset
   365
    "
73065896fbb4 initial checkin
cg
parents:
diff changeset
   366
     UIPainter new openOnClass:JavaAppletComponentSpec andSelector:#detailsEditSpec
73065896fbb4 initial checkin
cg
parents:
diff changeset
   367
     JavaAppletComponentSpec new openInterface:#detailsEditSpec
73065896fbb4 initial checkin
cg
parents:
diff changeset
   368
    "
73065896fbb4 initial checkin
cg
parents:
diff changeset
   369
73065896fbb4 initial checkin
cg
parents:
diff changeset
   370
    <resource: #canvas>
73065896fbb4 initial checkin
cg
parents:
diff changeset
   371
73065896fbb4 initial checkin
cg
parents:
diff changeset
   372
    ^
73065896fbb4 initial checkin
cg
parents:
diff changeset
   373
73065896fbb4 initial checkin
cg
parents:
diff changeset
   374
       #(#FullSpec
73065896fbb4 initial checkin
cg
parents:
diff changeset
   375
          #'window:' 
73065896fbb4 initial checkin
cg
parents:
diff changeset
   376
           #(#WindowSpec
73065896fbb4 initial checkin
cg
parents:
diff changeset
   377
              #'name:' 'ArbitraryComponent Detail'
73065896fbb4 initial checkin
cg
parents:
diff changeset
   378
              #'layout:' #(#LayoutFrame 197 0 172 0 472 0 444 0)
73065896fbb4 initial checkin
cg
parents:
diff changeset
   379
              #'label:' 'ArbitraryComponent Detail'
73065896fbb4 initial checkin
cg
parents:
diff changeset
   380
              #'min:' #(#Point 10 10)
73065896fbb4 initial checkin
cg
parents:
diff changeset
   381
              #'max:' #(#Point 1160 870)
73065896fbb4 initial checkin
cg
parents:
diff changeset
   382
              #'bounds:' #(#Rectangle 197 172 473 445)
73065896fbb4 initial checkin
cg
parents:
diff changeset
   383
          )
73065896fbb4 initial checkin
cg
parents:
diff changeset
   384
          #'component:' 
73065896fbb4 initial checkin
cg
parents:
diff changeset
   385
           #(#SpecCollection
73065896fbb4 initial checkin
cg
parents:
diff changeset
   386
              #'collection:' 
73065896fbb4 initial checkin
cg
parents:
diff changeset
   387
               #(
73065896fbb4 initial checkin
cg
parents:
diff changeset
   388
                 #(#CheckBoxSpec
73065896fbb4 initial checkin
cg
parents:
diff changeset
   389
                    #'name:' 'hasBorder'
73065896fbb4 initial checkin
cg
parents:
diff changeset
   390
                    #'layout:' #(#LayoutOrigin 20 0 50 0)
73065896fbb4 initial checkin
cg
parents:
diff changeset
   391
                    #'tabable:' true
73065896fbb4 initial checkin
cg
parents:
diff changeset
   392
                    #'model:' #hasBorder
73065896fbb4 initial checkin
cg
parents:
diff changeset
   393
                    #'activeHelpKey:' #hasBorder
73065896fbb4 initial checkin
cg
parents:
diff changeset
   394
                    #'label:' 'Bordered'
73065896fbb4 initial checkin
cg
parents:
diff changeset
   395
                )
73065896fbb4 initial checkin
cg
parents:
diff changeset
   396
                 #(#UISubSpecification
73065896fbb4 initial checkin
cg
parents:
diff changeset
   397
                    #'name:' 'detailsInitSubSpec'
73065896fbb4 initial checkin
cg
parents:
diff changeset
   398
                    #'layout:' #(#LayoutFrame 0 0.0 182 0 0 1.0 264 0)
73065896fbb4 initial checkin
cg
parents:
diff changeset
   399
                    #'minorKey:' #detailsInitSubSpec
73065896fbb4 initial checkin
cg
parents:
diff changeset
   400
                )
73065896fbb4 initial checkin
cg
parents:
diff changeset
   401
              )
73065896fbb4 initial checkin
cg
parents:
diff changeset
   402
          )
73065896fbb4 initial checkin
cg
parents:
diff changeset
   403
      )
73065896fbb4 initial checkin
cg
parents:
diff changeset
   404
73065896fbb4 initial checkin
cg
parents:
diff changeset
   405
    "Created: / 29.1.1998 / 14:17:29 / cg"
73065896fbb4 initial checkin
cg
parents:
diff changeset
   406
    "Modified: / 29.1.1998 / 14:28:46 / cg"
73065896fbb4 initial checkin
cg
parents:
diff changeset
   407
!
73065896fbb4 initial checkin
cg
parents:
diff changeset
   408
73065896fbb4 initial checkin
cg
parents:
diff changeset
   409
icon
73065896fbb4 initial checkin
cg
parents:
diff changeset
   410
    "ImageEditor openOnClass:self andSelector:#icon"
73065896fbb4 initial checkin
cg
parents:
diff changeset
   411
73065896fbb4 initial checkin
cg
parents:
diff changeset
   412
    <resource: #image>
73065896fbb4 initial checkin
cg
parents:
diff changeset
   413
    ^(Depth4Image new) width: 18; height: 16; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(#[0 0 0 0 0 0 0 0 0 1 17 17 17 17 17 17 17 48 1 0 0 0 0 0 0 0 32 1 2 34 34 34 34 34 48 32 1 2 51 51 51 51 51 16 32 1 2 48 0 0 0 3 16 32 1 2 48 34 34 35 3 16 32 1 2 48 40 136 129 3 16 32 1 2 48 40 136 129 3 16 32 1 2 48 49 17 17 3 16 32 1 2 48 0 0 0 3 16 32 1 2 51 51 51 51 51 16 32 1 3 17 17 17 17 17 16 32 1 0 0 0 0 0 0 0 32 3 34 34 34 34 34 34 34 32 0 0 0 0 0 0 0 0 0]) ; colorMap:((OrderedCollection new add:(Color black); add:(Color white); add:(Color grey:49.9962); add:(Color grey:66.9978); add:(Color red:100.0 green:0.0 blue:0.0); add:(Color red:0.0 green:100.0 blue:0.0); add:(Color red:0.0 green:0.0 blue:100.0); add:(Color red:0.0 green:100.0 blue:100.0); add:(Color red:100.0 green:100.0 blue:0.0); add:(Color red:100.0 green:0.0 blue:100.0); add:(Color red:49.9992 green:0.0 blue:0.0); add:(Color red:0.0 green:49.9992 blue:0.0); add:(Color red:0.0 green:0.0 blue:49.9992); add:(Color red:0.0 green:49.9992 blue:49.9992); add:(Color red:49.9992 green:49.9992 blue:0.0); add:(Color red:49.9992 green:0.0 blue:49.9992); yourself)); mask:((Depth1Image new) width: 18; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(#[127 255 128 255 255 192 255 255 192 255 255 192 255 255 192 255 255 192 255 255 192 255 255 192 255 255 192 255 255 192 255 255 192 255 255 192 255 255 192 255 255 192 255 255 192 127 255 128]) ; yourself); yourself
73065896fbb4 initial checkin
cg
parents:
diff changeset
   414
73065896fbb4 initial checkin
cg
parents:
diff changeset
   415
    "Created: / 29.1.1998 / 14:17:49 / cg"
73065896fbb4 initial checkin
cg
parents:
diff changeset
   416
!
73065896fbb4 initial checkin
cg
parents:
diff changeset
   417
291
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   418
parameterEditSpec
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   419
    "this window spec was automatically generated by the ST/X UIPainter"
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   420
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   421
    "do not manually edit this - the painter/builder may not be able to
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   422
     handle the specification if its corrupted."
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   423
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   424
    "
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   425
     UIPainter new openOnClass:JavaAppletComponentSpec andSelector:#parameterEditSpec
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   426
     JavaAppletComponentSpec new openInterface:#parameterEditSpec
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   427
    "
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   428
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   429
    <resource: #canvas>
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   430
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   431
    ^
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   432
     
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   433
       #(#FullSpec
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   434
          #'window:' 
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   435
           #(#WindowSpec
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   436
              #'name:' 'ArbitraryComponent Detail'
296
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   437
              #'layout:' #(#LayoutFrame 216 0 173 0 491 0 595 0)
291
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   438
              #'label:' 'ArbitraryComponent Detail'
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   439
              #'min:' #(#Point 10 10)
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   440
              #'max:' #(#Point 1160 870)
296
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   441
              #'bounds:' #(#Rectangle 216 173 492 596)
291
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   442
              #'usePreferredExtent:' false
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   443
          )
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   444
          #'component:' 
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   445
           #(#SpecCollection
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   446
              #'collection:' 
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   447
               #(
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   448
                 #(#InputFieldSpec
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   449
                    #'name:' 'inputField1'
296
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   450
                    #'layout:' #(#LayoutFrame 80 0 -100 1.0 -2 1 -78 1.0)
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   451
                    #'activeHelpKey:' #paramNameField
292
8d68e41fcc19 parameter specification ...
cg
parents: 291
diff changeset
   452
                    #'model:' #paramNameString
291
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   453
                )
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   454
                 #(#InputFieldSpec
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   455
                    #'name:' 'inputField2'
296
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   456
                    #'layout:' #(#LayoutFrame 80 0 -71 1.0 -2 1.0 -49 1.0)
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   457
                    #'activeHelpKey:' #paramValueField
292
8d68e41fcc19 parameter specification ...
cg
parents: 291
diff changeset
   458
                    #'model:' #paramValueString
291
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   459
                )
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   460
                 #(#LabelSpec
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   461
                    #'name:' 'label1'
296
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   462
                    #'layout:' #(#AlignmentOrigin 77 0 -89 1.0 1 0.5)
291
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   463
                    #'label:' 'Name:'
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   464
                    #'adjust:' #right
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   465
                )
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   466
                 #(#LabelSpec
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   467
                    #'name:' 'label2'
296
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   468
                    #'layout:' #(#AlignmentOrigin 77 0 -60 1.0 1 0.5)
291
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   469
                    #'label:' 'Value:'
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   470
                    #'adjust:' #right
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   471
                )
293
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   472
                 #(#SequenceViewSpec
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   473
                    #'name:' 'sequenceView1'
296
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   474
                    #'layout:' #(#LayoutFrame 0 0.0 32 0.0 0 1.0 -120 1.0)
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   475
                    #'activeHelpKey:' #paramList
293
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   476
                    #'model:' #paramNameListHolder
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   477
                    #'hasHorizontalScrollBar:' true
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   478
                    #'hasVerticalScrollBar:' true
296
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   479
                    #'miniScrollerVertical:' true
293
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   480
                    #'useIndex:' false
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   481
                )
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   482
                 #(#LabelSpec
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   483
                    #'name:' 'label3'
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   484
                    #'layout:' #(#LayoutFrame 2 0 7 0 198 0 29 0)
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   485
                    #'label:' 'Applet Parameters:'
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   486
                    #'adjust:' #left
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   487
                )
296
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   488
                 #(#HorizontalPanelViewSpec
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   489
                    #'name:' 'horizontalPanelView1'
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   490
                    #'layout:' #(#LayoutFrame 79 0 -39 1.0 276 0 -2 1.0)
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   491
                    #'component:' 
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   492
                     #(#SpecCollection
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   493
                        #'collection:' 
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   494
                         #(
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   495
                           #(#ButtonSpec
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   496
                              #'name:' 'addButton'
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   497
                              #'activeHelpKey:' #paramAdd
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   498
                              #'label:' 'Add'
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   499
                              #'model:' #addParam
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   500
                              #'extent:' #(#Point 88 28)
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   501
                          )
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   502
                           #(#ButtonSpec
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   503
                              #'name:' 'removeButton'
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   504
                              #'activeHelpKey:' #paramRemove
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   505
                              #'label:' 'Remove'
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   506
                              #'model:' #removeParam
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   507
                              #'extent:' #(#Point 88 28)
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   508
                          )
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   509
                        )
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   510
                    )
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   511
                    #'horizontalLayout:' #left
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   512
                    #'verticalLayout:' #center
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   513
                    #'horizontalSpace:' 3
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   514
                    #'verticalSpace:' 3
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   515
                )
291
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   516
              )
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   517
          )
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   518
      )
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   519
296
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   520
    "Modified: / 1.2.1998 / 15:13:54 / cg"
291
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   521
!
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   522
287
73065896fbb4 initial checkin
cg
parents:
diff changeset
   523
slices
73065896fbb4 initial checkin
cg
parents:
diff changeset
   524
    ^#(
73065896fbb4 initial checkin
cg
parents:
diff changeset
   525
            (Basics  basicsEditSpec)
73065896fbb4 initial checkin
cg
parents:
diff changeset
   526
            (Details detailsEditSpec) 
291
862a4472b32f checkin from browser
cg
parents: 289
diff changeset
   527
            (Parameter parameterEditSpec) 
296
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   528
            (AppletTag appletTagEditSpec) 
287
73065896fbb4 initial checkin
cg
parents:
diff changeset
   529
      )
73065896fbb4 initial checkin
cg
parents:
diff changeset
   530
73065896fbb4 initial checkin
cg
parents:
diff changeset
   531
    "Created: / 29.1.1998 / 14:17:34 / cg"
296
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   532
    "Modified: / 30.1.1998 / 12:51:10 / cg"
287
73065896fbb4 initial checkin
cg
parents:
diff changeset
   533
! !
73065896fbb4 initial checkin
cg
parents:
diff changeset
   534
73065896fbb4 initial checkin
cg
parents:
diff changeset
   535
!JavaAppletComponentSpec methodsFor:'accessing'!
73065896fbb4 initial checkin
cg
parents:
diff changeset
   536
73065896fbb4 initial checkin
cg
parents:
diff changeset
   537
archiveURL
73065896fbb4 initial checkin
cg
parents:
diff changeset
   538
    "return the value of the instance variable 'archiveURL' (automatically generated)"
73065896fbb4 initial checkin
cg
parents:
diff changeset
   539
73065896fbb4 initial checkin
cg
parents:
diff changeset
   540
    ^ archiveURL
73065896fbb4 initial checkin
cg
parents:
diff changeset
   541
73065896fbb4 initial checkin
cg
parents:
diff changeset
   542
    "Created: / 29.1.1998 / 14:15:47 / cg"
73065896fbb4 initial checkin
cg
parents:
diff changeset
   543
!
73065896fbb4 initial checkin
cg
parents:
diff changeset
   544
73065896fbb4 initial checkin
cg
parents:
diff changeset
   545
archiveURL:something
73065896fbb4 initial checkin
cg
parents:
diff changeset
   546
    "set the value of the instance variable 'archiveURL' (automatically generated)"
73065896fbb4 initial checkin
cg
parents:
diff changeset
   547
73065896fbb4 initial checkin
cg
parents:
diff changeset
   548
    archiveURL := something.
73065896fbb4 initial checkin
cg
parents:
diff changeset
   549
73065896fbb4 initial checkin
cg
parents:
diff changeset
   550
    "Created: / 29.1.1998 / 14:15:47 / cg"
73065896fbb4 initial checkin
cg
parents:
diff changeset
   551
!
73065896fbb4 initial checkin
cg
parents:
diff changeset
   552
73065896fbb4 initial checkin
cg
parents:
diff changeset
   553
codeBaseURL
73065896fbb4 initial checkin
cg
parents:
diff changeset
   554
    "return the value of the instance variable 'codeBaseURL' (automatically generated)"
73065896fbb4 initial checkin
cg
parents:
diff changeset
   555
73065896fbb4 initial checkin
cg
parents:
diff changeset
   556
    ^ codeBaseURL
73065896fbb4 initial checkin
cg
parents:
diff changeset
   557
73065896fbb4 initial checkin
cg
parents:
diff changeset
   558
    "Created: / 29.1.1998 / 14:15:43 / cg"
73065896fbb4 initial checkin
cg
parents:
diff changeset
   559
!
73065896fbb4 initial checkin
cg
parents:
diff changeset
   560
73065896fbb4 initial checkin
cg
parents:
diff changeset
   561
codeBaseURL:something
73065896fbb4 initial checkin
cg
parents:
diff changeset
   562
    "set the value of the instance variable 'codeBaseURL' (automatically generated)"
73065896fbb4 initial checkin
cg
parents:
diff changeset
   563
73065896fbb4 initial checkin
cg
parents:
diff changeset
   564
    codeBaseURL := something.
73065896fbb4 initial checkin
cg
parents:
diff changeset
   565
73065896fbb4 initial checkin
cg
parents:
diff changeset
   566
    "Created: / 29.1.1998 / 14:15:43 / cg"
73065896fbb4 initial checkin
cg
parents:
diff changeset
   567
!
73065896fbb4 initial checkin
cg
parents:
diff changeset
   568
73065896fbb4 initial checkin
cg
parents:
diff changeset
   569
codeURL
73065896fbb4 initial checkin
cg
parents:
diff changeset
   570
    "return the value of the instance variable 'codeURL' (automatically generated)"
73065896fbb4 initial checkin
cg
parents:
diff changeset
   571
73065896fbb4 initial checkin
cg
parents:
diff changeset
   572
    ^ codeURL
73065896fbb4 initial checkin
cg
parents:
diff changeset
   573
73065896fbb4 initial checkin
cg
parents:
diff changeset
   574
    "Created: / 29.1.1998 / 14:15:41 / cg"
73065896fbb4 initial checkin
cg
parents:
diff changeset
   575
!
73065896fbb4 initial checkin
cg
parents:
diff changeset
   576
73065896fbb4 initial checkin
cg
parents:
diff changeset
   577
codeURL:something
73065896fbb4 initial checkin
cg
parents:
diff changeset
   578
    "set the value of the instance variable 'codeURL' (automatically generated)"
73065896fbb4 initial checkin
cg
parents:
diff changeset
   579
73065896fbb4 initial checkin
cg
parents:
diff changeset
   580
    codeURL := something.
73065896fbb4 initial checkin
cg
parents:
diff changeset
   581
73065896fbb4 initial checkin
cg
parents:
diff changeset
   582
    "Created: / 29.1.1998 / 14:15:41 / cg"
73065896fbb4 initial checkin
cg
parents:
diff changeset
   583
!
73065896fbb4 initial checkin
cg
parents:
diff changeset
   584
73065896fbb4 initial checkin
cg
parents:
diff changeset
   585
documentURL
73065896fbb4 initial checkin
cg
parents:
diff changeset
   586
    "return the value of the instance variable 'documentURL' (automatically generated)"
73065896fbb4 initial checkin
cg
parents:
diff changeset
   587
73065896fbb4 initial checkin
cg
parents:
diff changeset
   588
    ^ documentURL
73065896fbb4 initial checkin
cg
parents:
diff changeset
   589
73065896fbb4 initial checkin
cg
parents:
diff changeset
   590
    "Created: / 29.1.1998 / 14:15:45 / cg"
73065896fbb4 initial checkin
cg
parents:
diff changeset
   591
!
73065896fbb4 initial checkin
cg
parents:
diff changeset
   592
73065896fbb4 initial checkin
cg
parents:
diff changeset
   593
documentURL:something
73065896fbb4 initial checkin
cg
parents:
diff changeset
   594
    "set the value of the instance variable 'documentURL' (automatically generated)"
73065896fbb4 initial checkin
cg
parents:
diff changeset
   595
73065896fbb4 initial checkin
cg
parents:
diff changeset
   596
    documentURL := something.
73065896fbb4 initial checkin
cg
parents:
diff changeset
   597
73065896fbb4 initial checkin
cg
parents:
diff changeset
   598
    "Created: / 29.1.1998 / 14:15:45 / cg"
73065896fbb4 initial checkin
cg
parents:
diff changeset
   599
!
73065896fbb4 initial checkin
cg
parents:
diff changeset
   600
73065896fbb4 initial checkin
cg
parents:
diff changeset
   601
parameterDictionary
73065896fbb4 initial checkin
cg
parents:
diff changeset
   602
    "return the value of the instance variable 'parameterDictionary' (automatically generated)"
73065896fbb4 initial checkin
cg
parents:
diff changeset
   603
73065896fbb4 initial checkin
cg
parents:
diff changeset
   604
    ^ parameterDictionary
73065896fbb4 initial checkin
cg
parents:
diff changeset
   605
73065896fbb4 initial checkin
cg
parents:
diff changeset
   606
    "Created: / 29.1.1998 / 14:15:48 / cg"
73065896fbb4 initial checkin
cg
parents:
diff changeset
   607
!
73065896fbb4 initial checkin
cg
parents:
diff changeset
   608
73065896fbb4 initial checkin
cg
parents:
diff changeset
   609
parameterDictionary:something
73065896fbb4 initial checkin
cg
parents:
diff changeset
   610
    "set the value of the instance variable 'parameterDictionary' (automatically generated)"
73065896fbb4 initial checkin
cg
parents:
diff changeset
   611
73065896fbb4 initial checkin
cg
parents:
diff changeset
   612
    parameterDictionary := something.
73065896fbb4 initial checkin
cg
parents:
diff changeset
   613
73065896fbb4 initial checkin
cg
parents:
diff changeset
   614
    "Created: / 29.1.1998 / 14:15:49 / cg"
73065896fbb4 initial checkin
cg
parents:
diff changeset
   615
! !
73065896fbb4 initial checkin
cg
parents:
diff changeset
   616
73065896fbb4 initial checkin
cg
parents:
diff changeset
   617
!JavaAppletComponentSpec methodsFor:'building'!
73065896fbb4 initial checkin
cg
parents:
diff changeset
   618
73065896fbb4 initial checkin
cg
parents:
diff changeset
   619
setAttributesIn:anAppletView with:aBuilder
289
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   620
    |fullCode|
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   621
287
73065896fbb4 initial checkin
cg
parents:
diff changeset
   622
    super setAttributesIn:anAppletView with:aBuilder.
73065896fbb4 initial checkin
cg
parents:
diff changeset
   623
289
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   624
    (codeURL notNil and:[codeBaseURL notNil]) ifTrue:[
648
33e16bf2722f checkin from browser
cg
parents: 549
diff changeset
   625
        fullCode := (codeBaseURL asFilename construct:codeURL) name.
289
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   626
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   627
        anAppletView codeURL:codeURL.
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   628
        anAppletView codeBaseURL:fullCode.
648
33e16bf2722f checkin from browser
cg
parents: 549
diff changeset
   629
"/      anAppletView codeBaseURL:codeBaseURL.
289
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   630
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   631
        documentURL notNil ifTrue:[
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   632
            anAppletView documentURL:documentURL
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   633
        ].    
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   634
        archiveURL notNil ifTrue:[
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   635
            anAppletView archiveURL:archiveURL
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   636
        ].
295
a56f1bd66dc2 checkin from browser
cg
parents: 293
diff changeset
   637
        parameterDictionary notNil ifTrue:[
a56f1bd66dc2 checkin from browser
cg
parents: 293
diff changeset
   638
            anAppletView parameterDictionary:parameterDictionary
a56f1bd66dc2 checkin from browser
cg
parents: 293
diff changeset
   639
        ].
289
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   640
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   641
        aBuilder isEditing ifTrue:[
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   642
            anAppletView autoSetupApplet:false.
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   643
        ] ifFalse:[
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   644
            anAppletView autoSetupApplet:true.
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   645
            anAppletView autoStartApplet:true.
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   646
            anAppletView autoDestroyApplet:true.
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   647
        ]
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   648
    ]
287
73065896fbb4 initial checkin
cg
parents:
diff changeset
   649
73065896fbb4 initial checkin
cg
parents:
diff changeset
   650
    "Created: / 29.1.1998 / 15:17:38 / cg"
648
33e16bf2722f checkin from browser
cg
parents: 549
diff changeset
   651
    "Modified: / 23.12.1999 / 19:51:46 / cg"
287
73065896fbb4 initial checkin
cg
parents:
diff changeset
   652
!
73065896fbb4 initial checkin
cg
parents:
diff changeset
   653
73065896fbb4 initial checkin
cg
parents:
diff changeset
   654
viewClass
73065896fbb4 initial checkin
cg
parents:
diff changeset
   655
    ^ JavaEmbeddedFrameView
73065896fbb4 initial checkin
cg
parents:
diff changeset
   656
73065896fbb4 initial checkin
cg
parents:
diff changeset
   657
    "Modified: / 29.1.1998 / 15:07:00 / cg"
73065896fbb4 initial checkin
cg
parents:
diff changeset
   658
! !
73065896fbb4 initial checkin
cg
parents:
diff changeset
   659
289
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   660
!JavaAppletComponentSpec methodsFor:'converting'!
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   661
293
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   662
fromLiteralArrayEncoding:aSpecArray
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   663
    "initialize my values from a specArray"
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   664
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   665
    super fromLiteralArrayEncoding:aSpecArray.
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   666
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   667
    parameterDictionary notNil ifTrue:[
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   668
        parameterDictionary := parameterDictionary decodeAsLiteralArray.
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   669
    ].
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   670
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   671
    "Created: / 30.1.1998 / 04:58:41 / cg"
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   672
!
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   673
289
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   674
skippedInLiteralEncoding
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   675
    "redefined to skip flags with default values"
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   676
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   677
    |l|
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   678
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   679
    l := super skippedInLiteralEncoding asOrderedCollection.
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   680
    codeURL isNil ifTrue:[
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   681
        l add:#codeURL
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   682
    ].
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   683
    codeBaseURL isNil ifTrue:[
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   684
        l add:#codeBaseURL
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   685
    ].
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   686
    archiveURL isNil ifTrue:[
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   687
        l add:#archiveURL
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   688
    ].
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   689
    documentURL isNil ifTrue:[
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   690
        l add:#documentURL
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   691
    ].
293
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   692
    (parameterDictionary isNil 
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   693
    or:[parameterDictionary isEmpty]) ifTrue:[
289
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   694
        l add:#parameterDictionary
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   695
    ].
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   696
    level isNil ifTrue:[
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   697
        l add:#level
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   698
    ].
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   699
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   700
    ^ l
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   701
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   702
    "Created: / 29.1.1998 / 20:31:32 / cg"
293
294f0a65008a checkin from browser
cg
parents: 292
diff changeset
   703
    "Modified: / 30.1.1998 / 05:03:22 / cg"
289
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   704
! !
185edf957247 *** empty log message ***
cg
parents: 287
diff changeset
   705
292
8d68e41fcc19 parameter specification ...
cg
parents: 291
diff changeset
   706
!JavaAppletComponentSpec methodsFor:'spec actions'!
8d68e41fcc19 parameter specification ...
cg
parents: 291
diff changeset
   707
8d68e41fcc19 parameter specification ...
cg
parents: 291
diff changeset
   708
addParameter:nameString value:valueString
8d68e41fcc19 parameter specification ...
cg
parents: 291
diff changeset
   709
    parameterDictionary isNil ifTrue:[
8d68e41fcc19 parameter specification ...
cg
parents: 291
diff changeset
   710
        parameterDictionary := Dictionary new
8d68e41fcc19 parameter specification ...
cg
parents: 291
diff changeset
   711
    ].
8d68e41fcc19 parameter specification ...
cg
parents: 291
diff changeset
   712
    parameterDictionary at:nameString put:valueString
8d68e41fcc19 parameter specification ...
cg
parents: 291
diff changeset
   713
8d68e41fcc19 parameter specification ...
cg
parents: 291
diff changeset
   714
    "Created: / 30.1.1998 / 04:16:44 / cg"
8d68e41fcc19 parameter specification ...
cg
parents: 291
diff changeset
   715
    "Modified: / 30.1.1998 / 04:21:58 / cg"
8d68e41fcc19 parameter specification ...
cg
parents: 291
diff changeset
   716
!
8d68e41fcc19 parameter specification ...
cg
parents: 291
diff changeset
   717
296
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   718
parseParametersFromAppletTag:appletTagText
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   719
    "given some appletTAG text (i.e. <applet> ... </applet>),
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   720
     extract values from it."
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   721
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   722
    |html name value|
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   723
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   724
    parameterDictionary isNil ifTrue:[
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   725
        parameterDictionary := Dictionary new
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   726
    ].
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   727
    html := HTMLParser new parseText:appletTagText.
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   728
    [html notNil] whileTrue:[
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   729
        html type == #param ifTrue:[
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   730
            name := html nameString.
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   731
            name notNil ifTrue:[
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   732
                value := html valueString.
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   733
                value notNil ifTrue:[
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   734
                    parameterDictionary at:name put:value
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   735
                ]
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   736
            ].
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   737
        ].
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   738
        html := html next.
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   739
    ].
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   740
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   741
    "Created: / 30.1.1998 / 15:47:52 / cg"
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   742
    "Modified: / 30.1.1998 / 15:53:51 / cg"
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   743
!
4746d242a9aa appletTAG parser
cg
parents: 295
diff changeset
   744
292
8d68e41fcc19 parameter specification ...
cg
parents: 291
diff changeset
   745
removeParameter:nameString
320
4dcd902fefcd checkin from browser
cg
parents: 315
diff changeset
   746
    parameterDictionary removeKey:nameString ifAbsent:nil
292
8d68e41fcc19 parameter specification ...
cg
parents: 291
diff changeset
   747
8d68e41fcc19 parameter specification ...
cg
parents: 291
diff changeset
   748
    "Created: / 30.1.1998 / 04:16:55 / cg"
320
4dcd902fefcd checkin from browser
cg
parents: 315
diff changeset
   749
    "Modified: / 9.2.1998 / 12:02:08 / cg"
292
8d68e41fcc19 parameter specification ...
cg
parents: 291
diff changeset
   750
! !
8d68e41fcc19 parameter specification ...
cg
parents: 291
diff changeset
   751
287
73065896fbb4 initial checkin
cg
parents:
diff changeset
   752
!JavaAppletComponentSpec class methodsFor:'documentation'!
73065896fbb4 initial checkin
cg
parents:
diff changeset
   753
73065896fbb4 initial checkin
cg
parents:
diff changeset
   754
version
2108
ca8c4e7db2e8 category change
Claus Gittinger <cg@exept.de>
parents: 748
diff changeset
   755
    ^ '$Header: /cvs/stx/stx/libjava/Attic/JavaAppletComponentSpec.st,v 1.14 2002-11-22 20:13:57 cg Exp $'
287
73065896fbb4 initial checkin
cg
parents:
diff changeset
   756
! !