src/JavaEmbeddedFrameView.st
author vranyj1
Tue, 26 Jul 2011 16:31:02 +0000
branchjk_new_structure
changeset 877 f5a5b93e1c78
parent 752 ff7bc6428c9c
child 923 b922537eea2a
permissions -rw-r--r--
Cleanup phase 1 - Added #copyright method to all classes - removed JavaClassReader2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
752
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
     1
"
877
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
     2
 COPYRIGHT (c) 1996-2011 by Claus Gittinger
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
     3
 COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
     4
                            SWING Research Group, Czech Technical University in Prague
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
     5
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
     6
 Parts of the code written by Claus Gittinger are under following
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
     7
 license:
752
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
     8
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
     9
 This software is furnished under a license and may be used
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    10
 only in accordance with the terms of that license and with the
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    11
 inclusion of the above copyright notice.   This software may not
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    12
 be provided or otherwise made available to, or used by, any
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    13
 other person.  No title to or ownership of the software is
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    14
 hereby transferred.
877
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    15
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    16
 Parts of the code written at SWING Reasearch Group [1] are MIT licensed:
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    17
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    18
 Permission is hereby granted, free of charge, to any person
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    19
 obtaining a copy of this software and associated documentation
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    20
 files (the 'Software'), to deal in the Software without
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    21
 restriction, including without limitation the rights to use,
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    22
 copy, modify, merge, publish, distribute, sublicense, and/or sell
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    23
 copies of the Software, and to permit persons to whom the
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    24
 Software is furnished to do so, subject to the following
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    25
 conditions:
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    26
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    27
 The above copyright notice and this permission notice shall be
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    28
 included in all copies or substantial portions of the Software.
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    29
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    30
 THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    31
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    32
 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    33
 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    34
 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    35
 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    36
 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    37
 OTHER DEALINGS IN THE SOFTWARE.
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    38
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    39
 [1] Code written at SWING Research Group contain a signature
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    40
     of one of the above copright owners.
752
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    41
"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    42
"{ Package: 'stx:libjava' }"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    43
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    44
JavaView subclass:#JavaEmbeddedFrameView
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    45
	instanceVariableNames:'codeURL codeBaseURL documentURL archiveURL parameterDictionary
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    46
		embeddedAppletFrame applet appletID appletThread
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    47
		infoDisplayReceiver autoSetupApplet autoStartApplet
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    48
		autoDestroyApplet isNS40 attributeHashTable appletIsPreloaded'
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    49
	classVariableNames:'NextSequentialAppletID'
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    50
	poolDictionaries:''
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    51
	category:'Languages-Java-Views-Support'
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    52
!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    53
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    54
!JavaEmbeddedFrameView class methodsFor:'documentation'!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    55
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    56
copyright
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    57
"
877
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    58
 COPYRIGHT (c) 1996-2011 by Claus Gittinger
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    59
 COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    60
                            SWING Research Group, Czech Technical University in Prague
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    61
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    62
 Parts of the code written by Claus Gittinger are under following
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    63
 license:
752
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    64
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    65
 This software is furnished under a license and may be used
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    66
 only in accordance with the terms of that license and with the
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    67
 inclusion of the above copyright notice.   This software may not
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    68
 be provided or otherwise made available to, or used by, any
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    69
 other person.  No title to or ownership of the software is
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    70
 hereby transferred.
877
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    71
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    72
 Parts of the code written at SWING Reasearch Group [1] are MIT licensed:
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    73
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    74
 Permission is hereby granted, free of charge, to any person
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    75
 obtaining a copy of this software and associated documentation
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    76
 files (the 'Software'), to deal in the Software without
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    77
 restriction, including without limitation the rights to use,
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    78
 copy, modify, merge, publish, distribute, sublicense, and/or sell
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    79
 copies of the Software, and to permit persons to whom the
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    80
 Software is furnished to do so, subject to the following
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    81
 conditions:
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    82
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    83
 The above copyright notice and this permission notice shall be
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    84
 included in all copies or substantial portions of the Software.
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    85
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    86
 THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    87
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    88
 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    89
 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    90
 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    91
 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    92
 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    93
 OTHER DEALINGS IN THE SOFTWARE.
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    94
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    95
 [1] Code written at SWING Research Group contain a signature
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    96
     of one of the above copright owners.
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    97
752
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    98
"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    99
!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   100
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   101
documentation
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   102
"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   103
    a wrapper view, which allows for Java Applets to be embedded
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   104
    in a smalltalk view.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   105
    This requires a netscape to be installed on the system.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   106
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   107
    [Author:]
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   108
        Claus Gittinger
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   109
"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   110
! !
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   111
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   112
!JavaEmbeddedFrameView class methodsFor:'support'!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   113
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   114
newAppletContext
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   115
    |jMozillaAppletContextClass|
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   116
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   117
    "/ this makes it a modzilla applet context ...
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   118
    jMozillaAppletContextClass := Java classForName:'netscape.applet.MozillaAppletContext'.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   119
    jMozillaAppletContextClass isNil ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   120
        self warn:'no netscape.applet.MozillaAppletContext class'.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   121
        ^ nil
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   122
    ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   123
    jMozillaAppletContextClass instVarNamed:'debug' put:1.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   124
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   125
    ^ jMozillaAppletContextClass new.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   126
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   127
    "Created: / 20.10.1998 / 15:40:08 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   128
    "Modified: / 20.10.1998 / 15:43:47 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   129
! !
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   130
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   131
!JavaEmbeddedFrameView methodsFor:'accessing'!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   132
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   133
applet
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   134
    ^ applet
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   135
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   136
    "Created: / 26.1.1999 / 13:51:10 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   137
!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   138
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   139
appletID
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   140
    "return the value of the instance variable 'appletID' (automatically generated)"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   141
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   142
    ^ appletID
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   143
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   144
    "Created: / 28.1.1998 / 21:08:54 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   145
!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   146
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   147
appletID:something
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   148
    "set the value of the instance variable 'appletID' (automatically generated)"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   149
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   150
    appletID := something.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   151
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   152
    "Created: / 28.1.1998 / 21:08:54 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   153
!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   154
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   155
appletIsPreloaded:aBoolean
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   156
    appletIsPreloaded := aBoolean.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   157
!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   158
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   159
appletThread
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   160
    ^ appletThread
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   161
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   162
    "Created: / 28.1.1998 / 21:39:42 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   163
!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   164
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   165
archiveURL:anArchiveURLString
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   166
    archiveURL := anArchiveURLString
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   167
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   168
    "Created: / 28.1.1998 / 21:00:38 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   169
!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   170
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   171
codeBaseURL:aCodeBaseURLString
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   172
    codeBaseURL := aCodeBaseURLString
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   173
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   174
    "Created: / 28.1.1998 / 20:59:34 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   175
!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   176
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   177
codeURL:aCodeURLString
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   178
    codeURL := aCodeURLString
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   179
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   180
    "Created: / 28.1.1998 / 21:10:11 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   181
!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   182
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   183
documentURL:aDocumentURLString
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   184
    documentURL := aDocumentURLString
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   185
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   186
    "Created: / 28.1.1998 / 21:00:03 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   187
    "Modified: / 28.1.1998 / 21:00:28 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   188
!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   189
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   190
embeddedAppletFrame
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   191
    ^ embeddedAppletFrame
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   192
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   193
    "Created: / 28.1.1998 / 21:39:35 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   194
!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   195
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   196
infoDisplayReceiver
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   197
    "return the value of the instance variable 'infoDisplayReceiver' (automatically generated)"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   198
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   199
    ^ infoDisplayReceiver
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   200
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   201
    "Created: / 28.1.1998 / 21:43:54 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   202
!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   203
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   204
infoDisplayReceiver:something
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   205
    "set the value of the instance variable 'infoDisplayReceiver' (automatically generated)"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   206
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   207
    infoDisplayReceiver := something.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   208
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   209
    "Created: / 28.1.1998 / 21:43:54 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   210
!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   211
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   212
parameterAt:key put:valueString
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   213
    parameterDictionary isNil ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   214
        parameterDictionary := IdentityDictionary new.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   215
    ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   216
    parameterDictionary at:key put:valueString.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   217
    attributeHashTable 
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   218
        perform:#'put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;'
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   219
        with:(Java as_String:key)
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   220
        with:(Java as_String:valueString)
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   221
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   222
    "Created: / 26.1.1999 / 13:46:01 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   223
    "Modified: / 28.1.1999 / 17:59:36 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   224
!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   225
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   226
parameterDictionary:aParameterDictionary
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   227
    parameterDictionary := aParameterDictionary
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   228
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   229
    "Created: / 28.1.1998 / 21:01:20 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   230
! !
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   231
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   232
!JavaEmbeddedFrameView methodsFor:'applet control'!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   233
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   234
appletDESTROY
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   235
    |ev|
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   236
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   237
    isNS40 ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   238
        "/ ev = netscape.applet.AppletEvent(APPLET_DESTROY);
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   239
        ev := (Java classForName:'netscape.applet.AppletEvent')
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   240
                newWith_int:(embeddedAppletFrame class instVarNamed:'APPLET_DESTROY').
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   241
        embeddedAppletFrame
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   242
            perform:#'sendEvent(Lnetscape/applet/NEvent;)V'
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   243
            with:ev.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   244
        ^ self
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   245
    ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   246
    embeddedAppletFrame
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   247
        perform:#'sendEvent(I)V' 
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   248
        with:(embeddedAppletFrame class instVarNamed:'APPLET_DESTROY').
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   249
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   250
    "Created: / 28.1.1998 / 21:41:45 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   251
    "Modified: / 13.11.1998 / 14:19:49 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   252
!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   253
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   254
appletDISPOSE
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   255
    |ev|
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   256
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   257
    isNS40 ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   258
        "/ ev = netscape.applet.AppletEvent(APPLET_DISPOSE);
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   259
        ev := (Java classForName:'netscape.applet.AppletEvent')
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   260
                newWith_int:(embeddedAppletFrame class instVarNamed:'APPLET_DISPOSE').
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   261
        embeddedAppletFrame
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   262
            perform:#'sendEvent(Lnetscape/applet/NEvent;)V'
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   263
            with:ev.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   264
        ^ self
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   265
    ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   266
    embeddedAppletFrame
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   267
        perform:#'sendEvent(I)V' 
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   268
        with:(embeddedAppletFrame class instVarNamed:'APPLET_DISPOSE').
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   269
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   270
    "Created: / 28.1.1998 / 21:41:57 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   271
    "Modified: / 13.11.1998 / 14:19:43 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   272
!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   273
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   274
appletINIT
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   275
    |ev|
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   276
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   277
    isNS40 ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   278
        "/ ev = netscape.applet.AppletEvent(APPLET_INIT);
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   279
        ev := (Java classForName:'netscape.applet.AppletEvent')
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   280
                newWith_int:(embeddedAppletFrame class instVarNamed:'APPLET_INIT').
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   281
        embeddedAppletFrame
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   282
            perform:#'sendEvent(Lnetscape/applet/NEvent;)V'
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   283
            with:ev.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   284
        ^ self
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   285
    ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   286
    embeddedAppletFrame
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   287
        perform:#'sendEvent(I)V' 
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   288
        with:(embeddedAppletFrame class instVarNamed:'APPLET_INIT').
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   289
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   290
    "Created: / 28.1.1998 / 21:17:51 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   291
    "Modified: / 13.11.1998 / 14:19:35 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   292
!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   293
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   294
appletLOAD
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   295
    |ev|
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   296
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   297
    isNS40 ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   298
        "/ ev = netscape.applet.AppletEvent(APPLET_LOAD);
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   299
        ev := (Java classForName:'netscape.applet.AppletEvent')
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   300
                newWith_int:(embeddedAppletFrame class instVarNamed:'APPLET_LOAD').
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   301
        embeddedAppletFrame
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   302
            perform:#'sendEvent(Lnetscape/applet/NEvent;)V'
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   303
            with:ev.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   304
        ^ self
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   305
    ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   306
    embeddedAppletFrame
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   307
        perform:#'sendEvent(I)V' 
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   308
        with:(embeddedAppletFrame class instVarNamed:'APPLET_LOAD').
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   309
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   310
    "Created: / 28.1.1998 / 21:17:37 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   311
    "Modified: / 13.11.1998 / 14:19:31 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   312
!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   313
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   314
appletSTART
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   315
    |ev|
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   316
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   317
    isNS40 ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   318
        "/ ev = netscape.applet.AppletEvent(APPLET_START);
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   319
        ev := (Java classForName:'netscape.applet.AppletEvent')
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   320
                newWith_int:(embeddedAppletFrame class instVarNamed:'APPLET_START').
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   321
        embeddedAppletFrame
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   322
            perform:#'sendEvent(Lnetscape/applet/NEvent;)V'
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   323
            with:ev.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   324
        ^ self
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   325
    ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   326
    embeddedAppletFrame
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   327
        perform:#'sendEvent(I)V' 
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   328
        with:(embeddedAppletFrame class instVarNamed:'APPLET_START').
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   329
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   330
    "Created: / 28.1.1998 / 21:18:01 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   331
    "Modified: / 13.11.1998 / 14:19:21 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   332
!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   333
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   334
appletSTOP
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   335
    |ev|
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   336
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   337
    isNS40 ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   338
        "/ ev = netscape.applet.AppletEvent(APPLET_STOP);
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   339
        ev := (Java classForName:'netscape.applet.AppletEvent')
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   340
                newWith_int:(embeddedAppletFrame class instVarNamed:'APPLET_STOP').
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   341
        embeddedAppletFrame
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   342
            perform:#'sendEvent(Lnetscape/applet/NEvent;)V'
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   343
            with:ev.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   344
        ^ self
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   345
    ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   346
    embeddedAppletFrame
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   347
        perform:#'sendEvent(I)V' 
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   348
        with:(embeddedAppletFrame class instVarNamed:'APPLET_STOP').
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   349
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   350
    "Created: / 28.1.1998 / 21:41:33 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   351
    "Modified: / 13.11.1998 / 14:19:14 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   352
!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   353
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   354
autoDestroyApplet:aBoolean
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   355
    "set/clear the autoDestroy flag.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   356
     If set, the applet will be shutDown whenever the I get destroyed.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   357
     if clear, the applet is not automatically shutDown and must be
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   358
     terminated by someone else.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   359
     The default is false."
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   360
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   361
    autoDestroyApplet := aBoolean.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   362
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   363
    "Created: / 29.1.1998 / 15:18:50 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   364
    "Modified: / 29.1.1998 / 15:21:01 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   365
!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   366
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   367
autoSetupApplet:aBoolean
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   368
    "set/clear the autoSetup flag.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   369
     If set, the appletFrame will be setup whenever the I get realized
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   370
     for the first time.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   371
     If clear, the frame is not automatically setup and must be
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   372
     setup by someone else.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   373
     The default is true."
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   374
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   375
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   376
    autoSetupApplet := aBoolean.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   377
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   378
    "Created: / 29.1.1998 / 15:18:41 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   379
    "Modified: / 29.1.1998 / 20:45:37 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   380
!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   381
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   382
autoStartApplet:aBoolean
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   383
    "set/clear the autoStart flag.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   384
     If set, the applet will be loaded & started whenever the I get realized
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   385
     for the first time.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   386
     If clear, the applet is not automatically started and must be
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   387
     started by someone else.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   388
     The default is false."
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   389
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   390
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   391
    autoStartApplet := aBoolean.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   392
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   393
    "Created: / 29.1.1998 / 15:18:41 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   394
    "Modified: / 29.1.1998 / 15:20:54 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   395
!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   396
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   397
startApplet
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   398
    "/ ensure its initialized when the first event comes;
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   399
    "/ therefore, raise my prio above the event dispatchers prio for a while.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   400
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   401
    Processor activeProcess withPriority:(Processor activePriority + 1)
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   402
    do:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   403
        self startAppletThread.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   404
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   405
        appletIsPreloaded ifFalse:[self appletLOAD].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   406
        self appletINIT.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   407
    ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   408
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   409
    self appletSTART
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   410
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   411
    "Modified: / 28.1.1998 / 21:30:24 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   412
!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   413
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   414
startAppletThread
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   415
    |appletName|
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   416
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   417
    appletThread := JavaProcess 
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   418
            for:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   419
                    "/ passnotifications to the documentFrame ...
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   420
                    Object informationSignal handle:[:ex |
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   421
                        JavaVM javaConsoleStream showCR:ex errorString.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   422
                        ex proceed.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   423
                    ] do:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   424
                        Object activityNotificationSignal handle:[:ex |
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   425
                            infoDisplayReceiver notNil ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   426
                                infoDisplayReceiver infoDisplay:ex errorString.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   427
                            ] ifFalse:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   428
                                Transcript showCR:ex errorString
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   429
                            ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   430
                            ex proceed.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   431
                        ] do:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   432
                            [
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   433
                                "/ Transcript showCR:(Timestamp now printString , ' start embeddedAppletFrame').
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   434
                                embeddedAppletFrame perform:#'run()V'.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   435
                            ] ensure:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   436
                                appletThread notNil ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   437
                                    appletThread terminateAllSubprocesses.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   438
                                ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   439
                                Transcript showCR:'JAVA applet startup finished'.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   440
                            ]
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   441
                        ]
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   442
                    ]
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   443
                ]
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   444
            priority:(Processor activePriority "- 1").
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   445
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   446
    appletName := codeURL asFilename withoutSuffix baseName.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   447
    appletThread name:('JAVA-' , appletName , '-applet' , ' [startup]').
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   448
    appletThread restartable:true.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   449
    appletThread resume.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   450
    ^ appletThread.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   451
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   452
    "Created: / 28.1.1998 / 21:30:32 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   453
    "Modified: / 24.12.1999 / 02:58:50 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   454
!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   455
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   456
stopApplet
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   457
    |n n2|
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   458
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   459
    (appletThread notNil 
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   460
    and:[appletThread isDead not])ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   461
"/        'EmbeddedAppletFrame [info]: send APPLET_STOP ...' infoPrintCR.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   462
        self appletSTOP.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   463
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   464
"/        'EmbeddedAppletFrame [info]: send APPLET_DESTROY ...' infoPrintCR.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   465
        self appletDESTROY.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   466
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   467
"/        'EmbeddedAppletFrame [info]: send APPLET_DISPOSE ...' infoPrintCR.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   468
        self appletDISPOSE.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   469
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   470
        "/
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   471
        "/ give it a chance to stop ...
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   472
        "/
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   473
        Processor yield.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   474
        n2 := 0.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   475
        [appletThread isDead] whileFalse:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   476
            "/ give it a second to shut down ...
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   477
            n := 0.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   478
            [n < 10 and:[appletThread isDead not]] whileTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   479
                Delay waitForSeconds:0.1.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   480
                n := n + 1.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   481
            ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   482
            appletThread isDead ifFalse:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   483
                "/ after 3 seconds, kill it.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   484
                Transcript showCR:'EmbeddedAppletFrame [info]: JAVA thread did not stop - soft terminate ...'.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   485
appletThread == JavaVM javaScreenUpdaterThread ifTrue:[self halt].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   486
appletThread == JavaVM javaEventQueueThread ifTrue:[self halt].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   487
                appletThread terminate.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   488
                n2 := n2 + 1.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   489
                n2 > 3 ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   490
                    Transcript showCR:'EmbeddedAppletFrame [info]: JAVA thread did not stop - shooting down ...'.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   491
                    appletThread terminateNoSignal
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   492
                ]
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   493
            ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   494
        ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   495
    ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   496
    appletThread := nil
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   497
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   498
    "Modified: / 24.12.1999 / 02:35:25 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   499
! !
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   500
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   501
!JavaEmbeddedFrameView methodsFor:'initialize / release'!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   502
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   503
destroy
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   504
    autoDestroyApplet == true ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   505
        self stopApplet
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   506
    ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   507
    super destroy.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   508
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   509
    "Created: / 29.1.1998 / 15:21:45 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   510
    "Modified: / 29.1.1998 / 15:28:26 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   511
!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   512
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   513
initialize           
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   514
    appletIsPreloaded := false.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   515
    super initialize.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   516
    viewBackground := Color black.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   517
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   518
    "Modified: / 28.1.1999 / 17:44:11 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   519
!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   520
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   521
realize
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   522
    autoSetupApplet ~~ false ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   523
        self setupAppletFrameIn:nil initializeJava:true
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   524
    ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   525
    autoStartApplet == true ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   526
        embeddedAppletFrame notNil ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   527
            self startApplet
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   528
        ]
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   529
    ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   530
    super realize.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   531
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   532
    "Created: / 29.1.1998 / 15:21:30 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   533
    "Modified: / 20.10.1998 / 15:46:32 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   534
! !
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   535
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   536
!JavaEmbeddedFrameView methodsFor:'private'!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   537
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   538
setupAppletFrameIn:anAppletContextOrNil
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   539
     ^ self setupAppletFrameIn:anAppletContextOrNil initializeJava:true.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   540
!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   541
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   542
setupAppletFrameIn:anAppletContextOrNil initializeJava:initializeJava
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   543
     |appletContext
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   544
     jEmbeddedAppletFrameClass jDerivedAppletFrameClass
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   545
     toolkit peer attribs id
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   546
     jCodeBaseURL jDocumentURL jArchiveURL u fn|
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   547
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   548
    embeddedAppletFrame notNil ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   549
        "/ already setup
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   550
        ^ self
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   551
    ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   552
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   553
    codeBaseURL isNil ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   554
        ^ self
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   555
    ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   556
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   557
    initializeJava ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   558
        Java startupJavaSystem.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   559
    ] ifFalse:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   560
        JavaVM initializeVMIfNoEventThreadRunning
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   561
    ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   562
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   563
    "/ if its a relative file-URL, make it relative under
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   564
    "/ java...
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   565
    u := URL fromString:codeBaseURL.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   566
    u method = 'file' ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   567
        fn := Smalltalk getSystemFileName:u file.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   568
        fn isNil ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   569
            fn := Smalltalk getPackageFileName:('stx/libjava/' , u file).
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   570
        ]
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   571
    ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   572
    fn notNil ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   573
        fn := 'file:' , fn asFilename pathName
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   574
    ] ifFalse:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   575
        fn := codeBaseURL
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   576
    ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   577
    jCodeBaseURL := Java as_URL:fn.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   578
    documentURL notNil ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   579
        jDocumentURL := Java as_URL:documentURL.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   580
    ] ifFalse:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   581
        jDocumentURL := Java as_URL:fn
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   582
    ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   583
    archiveURL notNil ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   584
        jArchiveURL := Java as_URL:archiveURL.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   585
    ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   586
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   587
    id := appletID.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   588
    id isNil ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   589
        NextSequentialAppletID isNil ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   590
            NextSequentialAppletID := 1.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   591
        ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   592
        id := NextSequentialAppletID.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   593
        NextSequentialAppletID := NextSequentialAppletID + 1
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   594
    ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   595
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   596
    attribs := Dictionary new.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   597
    width notNil ifTrue:[attribs at:'width' put:width printString].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   598
    height notNil ifTrue:[attribs at:'height' put:height printString].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   599
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   600
    codeURL notNil ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   601
        attribs at:'code' put:codeURL
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   602
    ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   603
    parameterDictionary notNil ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   604
        attribs declareAllFrom:parameterDictionary
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   605
    ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   606
    attributeHashTable := Java as_Hashtable:attribs.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   607
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   608
    anAppletContextOrNil notNil ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   609
        appletContext := anAppletContextOrNil
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   610
    ] ifFalse:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   611
        appletContext := self class newAppletContext.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   612
        appletContext isNil ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   613
            self warn:'no netscape.applet.MozillaAppletContext class'.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   614
            ^ false
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   615
        ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   616
    ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   617
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   618
    jEmbeddedAppletFrameClass := Java classForName:'netscape.applet.EmbeddedAppletFrame'.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   619
    jEmbeddedAppletFrameClass isNil ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   620
        self warn:'no netscape.applet.EmbeddedAppletFrame class'.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   621
        ^ false
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   622
    ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   623
    jDerivedAppletFrameClass := Java classForName:'netscape.applet.DerivedAppletFrame'.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   624
    jDerivedAppletFrameClass notNil ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   625
        "/ ns4.0
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   626
        embeddedAppletFrame := jDerivedAppletFrameClass new.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   627
        isNS40 := true.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   628
    ] ifFalse:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   629
        "/ ns3.x
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   630
        embeddedAppletFrame := jEmbeddedAppletFrameClass new.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   631
        isNS40 := false.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   632
    ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   633
    embeddedAppletFrame instVarNamed:'pData' put:self.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   634
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   635
    toolkit := (Java classForName:'java.awt.Toolkit') perform:#'getDefaultToolkit'.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   636
    peer := toolkit 
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   637
                perform:#'createFrame(Ljava/awt/Frame;)Ljava/awt/peer/FramePeer;'
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   638
                with:embeddedAppletFrame.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   639
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   640
    (embeddedAppletFrame respondsTo:#'<init>(Ljava/net/URL;Ljava/net/URL;Ljava/net/URL;Ljava/util/Hashtable;Lnetscape/applet/MozillaAppletContext;Ljava/lang/Integer;Z)V')
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   641
    ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   642
        "/ 4.0 netscape
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   643
        embeddedAppletFrame 
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   644
            perform:#'<init>(Ljava/net/URL;Ljava/net/URL;Ljava/net/URL;Ljava/util/Hashtable;Lnetscape/applet/MozillaAppletContext;Ljava/lang/Integer;Z)V'
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   645
            withArguments:
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   646
                (Array
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   647
                    with:jDocumentURL
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   648
                    with:jCodeBaseURL
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   649
                    with:jArchiveURL
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   650
                    with:attributeHashTable
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   651
                    with:appletContext
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   652
                    with:(Java as_Integer:id)
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   653
                    with:0 "/ reloadClasses-boolean
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   654
                ).
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   655
    ] ifFalse:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   656
        (embeddedAppletFrame respondsTo:#'<init>(Ljava/net/URL;Ljava/net/URL;Ljava/net/URL;Ljava/util/Hashtable;Lnetscape/applet/MozillaAppletContext;Ljava/lang/Integer;)V')
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   657
        ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   658
            "/ 3.01 netscape
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   659
            embeddedAppletFrame 
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   660
                perform:#'<init>(Ljava/net/URL;Ljava/net/URL;Ljava/net/URL;Ljava/util/Hashtable;Lnetscape/applet/MozillaAppletContext;Ljava/lang/Integer;)V'
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   661
                with:jDocumentURL
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   662
                with:jCodeBaseURL
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   663
                with:jArchiveURL
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   664
                with:attributeHashTable
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   665
                with:appletContext
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   666
                with:(Java as_Integer:id).
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   667
        ] ifFalse:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   668
            "/ oldStyle netscape
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   669
            embeddedAppletFrame 
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   670
                perform:#'<init>(Ljava/net/URL;Ljava/net/URL;Ljava/util/Hashtable;Lnetscape/applet/MozillaAppletContext;I)V'
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   671
                with:jDocumentURL
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   672
                with:jCodeBaseURL
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   673
                with:attributeHashTable
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   674
                with:appletContext
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   675
                with:id.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   676
        ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   677
    ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   678
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   679
    embeddedAppletFrame instVarNamed:'peer' put:peer.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   680
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   681
    self javaPeer:peer.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   682
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   683
    ^ true
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   684
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   685
    "Created: / 20.10.1998 / 15:47:04 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   686
    "Modified: / 24.12.1999 / 01:38:17 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   687
! !
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   688
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   689
!JavaEmbeddedFrameView methodsFor:'resizing'!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   690
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   691
sizeChanged:how
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   692
    super sizeChanged:how.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   693
^ self.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   694
    embeddedAppletFrame notNil ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   695
        (embeddedAppletFrame perform:#'isResizable()Z') ~~ 0 ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   696
            self windowGroup sensor
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   697
                 pushDamageEvent:(WindowEvent
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   698
                                     for:self
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   699
                                     type:#configureX:y:width:height:
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   700
                                     arguments:(Array with:left with:top with:width with:height)).
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   701
"/            embeddedAppletFrame
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   702
"/                perform:#'appletResize(II)V'
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   703
"/                with:self width
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   704
"/                with:self height.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   705
        ]
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   706
    ]
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   707
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   708
    "Modified: / 1.2.1998 / 19:15:07 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   709
! !
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   710
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   711
!JavaEmbeddedFrameView class methodsFor:'documentation'!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   712
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   713
version
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   714
    ^ '$Id$'
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   715
!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   716
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   717
version_SVN
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   718
    ^ '$Id$'
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   719
! !