453
|
1 |
"
|
|
2 |
COPYRIGHT (c) 1997 by eXept Software AG
|
|
3 |
All Rights Reserved
|
|
4 |
|
|
5 |
This software is furnished under a license and may be used
|
|
6 |
only in accordance with the terms of that license and with the
|
|
7 |
inclusion of the above copyright notice. This software may not
|
|
8 |
be provided or otherwise made available to, or used by, any
|
|
9 |
other person. No title to or ownership of the software is
|
|
10 |
hereby transferred.
|
|
11 |
"
|
|
12 |
|
|
13 |
|
|
14 |
|
287
|
15 |
Object subclass:#UIGalleryJavaEntry
|
|
16 |
instanceVariableNames:''
|
|
17 |
classVariableNames:''
|
|
18 |
poolDictionaries:''
|
|
19 |
category:'Java-Views-Support'
|
|
20 |
!
|
|
21 |
|
|
22 |
!UIGalleryJavaEntry class methodsFor:'documentation'!
|
|
23 |
|
453
|
24 |
copyright
|
|
25 |
"
|
|
26 |
COPYRIGHT (c) 1997 by eXept Software AG
|
|
27 |
All Rights Reserved
|
|
28 |
|
|
29 |
This software is furnished under a license and may be used
|
|
30 |
only in accordance with the terms of that license and with the
|
|
31 |
inclusion of the above copyright notice. This software may not
|
|
32 |
be provided or otherwise made available to, or used by, any
|
|
33 |
other person. No title to or ownership of the software is
|
|
34 |
hereby transferred.
|
|
35 |
"
|
|
36 |
|
|
37 |
|
|
38 |
!
|
|
39 |
|
287
|
40 |
documentation
|
|
41 |
"
|
|
42 |
this class provides a UIGallery entry for the new Java applet
|
|
43 |
components. When loaded, it installs itself automatically in
|
|
44 |
the user-defined section (see the class-initialize-method).
|
|
45 |
|
|
46 |
[author:]
|
|
47 |
Claus Gittinger
|
|
48 |
"
|
|
49 |
|
|
50 |
! !
|
|
51 |
|
|
52 |
!UIGalleryJavaEntry class methodsFor:'class initialization'!
|
|
53 |
|
|
54 |
initialize
|
|
55 |
"add an entry for my new components to the UIPainters
|
|
56 |
userDef gallery"
|
|
57 |
|
|
58 |
UISelectionPanel userClass
|
|
59 |
addUserSpecHolder:[self javaComponentsSpec]
|
|
60 |
label:'Java'
|
|
61 |
|
|
62 |
"
|
|
63 |
self initialize
|
|
64 |
"
|
|
65 |
|
|
66 |
"Created: / 29.1.1998 / 14:22:02 / cg"
|
|
67 |
"Modified: / 29.1.1998 / 14:40:06 / cg"
|
|
68 |
!
|
|
69 |
|
|
70 |
removeFromSystem
|
|
71 |
"remove myself - this implies deinstallation from the UIGallery"
|
|
72 |
|
|
73 |
UISelectionPanel userClass removeUserSpecWithLabel:'Java'.
|
|
74 |
^ super removeFromSystem.
|
|
75 |
|
|
76 |
"Modified: / 5.12.1997 / 15:13:09 / cg"
|
|
77 |
"Created: / 29.1.1998 / 14:21:54 / cg"
|
|
78 |
! !
|
|
79 |
|
|
80 |
!UIGalleryJavaEntry class methodsFor:'uigallery specs'!
|
|
81 |
|
|
82 |
javaComponentsSpec
|
|
83 |
"this window spec was automatically generated by the ST/X UIPainter"
|
|
84 |
|
|
85 |
"do not manually edit this - the painter/builder may not be able to
|
|
86 |
handle the specification if its corrupted."
|
|
87 |
|
|
88 |
"
|
|
89 |
UIPainter new openOnClass:UIGalleryJavaEntry andSelector:#javaComponentsSpec
|
|
90 |
UIGalleryJavaEntry new openInterface:#javaComponentsSpec
|
|
91 |
"
|
|
92 |
|
|
93 |
<resource: #canvas>
|
|
94 |
|
|
95 |
^
|
|
96 |
|
|
97 |
#(#FullSpec
|
|
98 |
#'window:'
|
|
99 |
#(#WindowSpec
|
|
100 |
#'name:' 'Java Applet Components'
|
|
101 |
#'layout:' #(#LayoutFrame 216 0 173 0 523 0 387 0)
|
|
102 |
#'label:' 'Java Applet Components'
|
|
103 |
#'min:' #(#Point 10 10)
|
|
104 |
#'max:' #(#Point 1024 768)
|
|
105 |
#'bounds:' #(#Rectangle 216 173 524 388)
|
|
106 |
#'usePreferredExtent:' false
|
|
107 |
)
|
|
108 |
#'component:'
|
|
109 |
#(#SpecCollection
|
|
110 |
#'collection:'
|
|
111 |
#(
|
|
112 |
#(#JavaAppletComponentSpec
|
|
113 |
#'name:' 'applet'
|
|
114 |
#'layout:' #(#LayoutFrame 10 0 18 0 160 0 160 0)
|
|
115 |
#'level:' -1
|
|
116 |
)
|
|
117 |
#(#LabelSpec
|
|
118 |
#'name:' 'label1'
|
|
119 |
#'layout:' #(#LayoutFrame 11 0 168 0 162 0 190 0)
|
|
120 |
#'label:' 'Applet'
|
|
121 |
#'canUIDrag:' false
|
|
122 |
)
|
|
123 |
)
|
|
124 |
)
|
|
125 |
)
|
|
126 |
|
|
127 |
"Modified: / 29.1.1998 / 14:42:39 / cg"
|
|
128 |
! !
|
|
129 |
|
|
130 |
!UIGalleryJavaEntry class methodsFor:'documentation'!
|
|
131 |
|
|
132 |
version
|
453
|
133 |
^ '$Header: /home/jv/Projects/SmalltalkX/repositories/cvs/stx/libjava/UIGalleryJavaEntry.st,v 1.2 1998/11/16 15:13:04 cg Exp $'
|
287
|
134 |
! !
|
|
135 |
UIGalleryJavaEntry initialize!
|