xref: /titanic_44/usr/src/cmd/krb5/kadmin/gui/KdcGuiOps.java (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
1*7c478bd9Sstevel@tonic-gate /*
2*7c478bd9Sstevel@tonic-gate  * CDDL HEADER START
3*7c478bd9Sstevel@tonic-gate  *
4*7c478bd9Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
5*7c478bd9Sstevel@tonic-gate  * Common Development and Distribution License, Version 1.0 only
6*7c478bd9Sstevel@tonic-gate  * (the "License").  You may not use this file except in compliance
7*7c478bd9Sstevel@tonic-gate  * with the License.
8*7c478bd9Sstevel@tonic-gate  *
9*7c478bd9Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*7c478bd9Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
11*7c478bd9Sstevel@tonic-gate  * See the License for the specific language governing permissions
12*7c478bd9Sstevel@tonic-gate  * and limitations under the License.
13*7c478bd9Sstevel@tonic-gate  *
14*7c478bd9Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
15*7c478bd9Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*7c478bd9Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
17*7c478bd9Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
18*7c478bd9Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
19*7c478bd9Sstevel@tonic-gate  *
20*7c478bd9Sstevel@tonic-gate  * CDDL HEADER END
21*7c478bd9Sstevel@tonic-gate  */
22*7c478bd9Sstevel@tonic-gate /*
23*7c478bd9Sstevel@tonic-gate  * ident	"%Z%%M%	%I%	%E% SMI"
24*7c478bd9Sstevel@tonic-gate  *
25*7c478bd9Sstevel@tonic-gate  * Copyright (c) 2001 by Sun Microsystems, Inc.
26*7c478bd9Sstevel@tonic-gate  * All rights reserved.
27*7c478bd9Sstevel@tonic-gate  *
28*7c478bd9Sstevel@tonic-gate  */
29*7c478bd9Sstevel@tonic-gate 
30*7c478bd9Sstevel@tonic-gate /**
31*7c478bd9Sstevel@tonic-gate  * This file was originally automatically generated by Java WorkShop.
32*7c478bd9Sstevel@tonic-gate  *
33*7c478bd9Sstevel@tonic-gate  * Runtime vendor: SunSoft, Inc.
34*7c478bd9Sstevel@tonic-gate  * Runtime version: 1.0
35*7c478bd9Sstevel@tonic-gate  *
36*7c478bd9Sstevel@tonic-gate  * Visual vendor: SunSoft, Inc.
37*7c478bd9Sstevel@tonic-gate  * Visual version: 1.0
38*7c478bd9Sstevel@tonic-gate  */
39*7c478bd9Sstevel@tonic-gate 
40*7c478bd9Sstevel@tonic-gate 
41*7c478bd9Sstevel@tonic-gate import sunsoft.jws.visual.rt.base.*;
42*7c478bd9Sstevel@tonic-gate import sunsoft.jws.visual.rt.type.*;
43*7c478bd9Sstevel@tonic-gate import java.awt.Event;
44*7c478bd9Sstevel@tonic-gate 
45*7c478bd9Sstevel@tonic-gate 
46*7c478bd9Sstevel@tonic-gate public class KdcGuiOps extends Operations {
47*7c478bd9Sstevel@tonic-gate     private Op ops[];
48*7c478bd9Sstevel@tonic-gate 
49*7c478bd9Sstevel@tonic-gate     private KdcGui group;
50*7c478bd9Sstevel@tonic-gate     private KdcGuiRoot gui;
51*7c478bd9Sstevel@tonic-gate 
setGroup(Group group)52*7c478bd9Sstevel@tonic-gate     public void setGroup(Group group) {
53*7c478bd9Sstevel@tonic-gate         this.group = (KdcGui)group;
54*7c478bd9Sstevel@tonic-gate     }
55*7c478bd9Sstevel@tonic-gate 
setRoot(Root root)56*7c478bd9Sstevel@tonic-gate     public void setRoot(Root root) {
57*7c478bd9Sstevel@tonic-gate         this.gui = (KdcGuiRoot)root;
58*7c478bd9Sstevel@tonic-gate         if (ops == null)
59*7c478bd9Sstevel@tonic-gate             initializeOps();
60*7c478bd9Sstevel@tonic-gate     }
61*7c478bd9Sstevel@tonic-gate 
handleMessage(Message msg)62*7c478bd9Sstevel@tonic-gate     public boolean handleMessage(Message msg) {
63*7c478bd9Sstevel@tonic-gate         for (int i = 0; i < ops.length; i++) {
64*7c478bd9Sstevel@tonic-gate             if (ops[i].hasCode()) {
65*7c478bd9Sstevel@tonic-gate                 if (ops[i].matchMessage(msg)) {
66*7c478bd9Sstevel@tonic-gate                     handleCallback(i, msg,
67*7c478bd9Sstevel@tonic-gate 				   (msg.isAWT ? (Event)msg.arg : null));
68*7c478bd9Sstevel@tonic-gate                 }
69*7c478bd9Sstevel@tonic-gate             } else {
70*7c478bd9Sstevel@tonic-gate                 ops[i].handleMessage(msg);
71*7c478bd9Sstevel@tonic-gate             }
72*7c478bd9Sstevel@tonic-gate         }
73*7c478bd9Sstevel@tonic-gate 
74*7c478bd9Sstevel@tonic-gate         return false;
75*7c478bd9Sstevel@tonic-gate     }
76*7c478bd9Sstevel@tonic-gate 
initializeOps()77*7c478bd9Sstevel@tonic-gate     private void initializeOps() {
78*7c478bd9Sstevel@tonic-gate         ops = new Op[17];
79*7c478bd9Sstevel@tonic-gate 
80*7c478bd9Sstevel@tonic-gate         ops[0] = new Op(gui);
81*7c478bd9Sstevel@tonic-gate         ops[0].name = "Op1";
82*7c478bd9Sstevel@tonic-gate         ops[0].filter = new OpFilter();
83*7c478bd9Sstevel@tonic-gate         ops[0].filter.filterType = OpFilter.EVENT;
84*7c478bd9Sstevel@tonic-gate         ops[0].filter.target = gui.Exit2;
85*7c478bd9Sstevel@tonic-gate         ops[0].filter.id = 1001;
86*7c478bd9Sstevel@tonic-gate         ops[0].action = new OpAction();
87*7c478bd9Sstevel@tonic-gate         ops[0].action.actionType = OpAction.CODE;
88*7c478bd9Sstevel@tonic-gate 
89*7c478bd9Sstevel@tonic-gate         ops[1] = new Op(gui);
90*7c478bd9Sstevel@tonic-gate         ops[1].name = "Op1";
91*7c478bd9Sstevel@tonic-gate         ops[1].filter = new OpFilter();
92*7c478bd9Sstevel@tonic-gate         ops[1].filter.filterType = OpFilter.EVENT;
93*7c478bd9Sstevel@tonic-gate         ops[1].filter.target = gui.browserHelp1;
94*7c478bd9Sstevel@tonic-gate         ops[1].filter.id = 1001;
95*7c478bd9Sstevel@tonic-gate         ops[1].action = new OpAction();
96*7c478bd9Sstevel@tonic-gate         ops[1].action.actionType = OpAction.CODE;
97*7c478bd9Sstevel@tonic-gate 
98*7c478bd9Sstevel@tonic-gate         ops[2] = new Op(gui);
99*7c478bd9Sstevel@tonic-gate         ops[2].name = "Op1";
100*7c478bd9Sstevel@tonic-gate         ops[2].filter = new OpFilter();
101*7c478bd9Sstevel@tonic-gate         ops[2].filter.filterType = OpFilter.EVENT;
102*7c478bd9Sstevel@tonic-gate         ops[2].filter.target = gui.Context2;
103*7c478bd9Sstevel@tonic-gate         ops[2].filter.id = 1001;
104*7c478bd9Sstevel@tonic-gate         ops[2].action = new OpAction();
105*7c478bd9Sstevel@tonic-gate         ops[2].action.actionType = OpAction.CODE;
106*7c478bd9Sstevel@tonic-gate 
107*7c478bd9Sstevel@tonic-gate         ops[3] = new Op(gui);
108*7c478bd9Sstevel@tonic-gate         ops[3].name = "Op1";
109*7c478bd9Sstevel@tonic-gate         ops[3].filter = new OpFilter();
110*7c478bd9Sstevel@tonic-gate         ops[3].filter.filterType = OpFilter.EVENT;
111*7c478bd9Sstevel@tonic-gate         ops[3].filter.target = gui.About2;
112*7c478bd9Sstevel@tonic-gate         ops[3].filter.id = 1001;
113*7c478bd9Sstevel@tonic-gate         ops[3].action = new OpAction();
114*7c478bd9Sstevel@tonic-gate         ops[3].action.actionType = OpAction.CODE;
115*7c478bd9Sstevel@tonic-gate 
116*7c478bd9Sstevel@tonic-gate         ops[4] = new Op(gui);
117*7c478bd9Sstevel@tonic-gate         ops[4].name = "Exit";
118*7c478bd9Sstevel@tonic-gate         ops[4].filter = new OpFilter();
119*7c478bd9Sstevel@tonic-gate         ops[4].filter.filterType = OpFilter.EVENT;
120*7c478bd9Sstevel@tonic-gate         ops[4].filter.target = gui.mainframe;
121*7c478bd9Sstevel@tonic-gate         ops[4].filter.id = 1001;
122*7c478bd9Sstevel@tonic-gate         ops[4].action = new OpAction();
123*7c478bd9Sstevel@tonic-gate         ops[4].action.actionType = OpAction.CODE;
124*7c478bd9Sstevel@tonic-gate 
125*7c478bd9Sstevel@tonic-gate         ops[5] = new Op(gui);
126*7c478bd9Sstevel@tonic-gate         ops[5].name = "Op1";
127*7c478bd9Sstevel@tonic-gate         ops[5].filter = new OpFilter();
128*7c478bd9Sstevel@tonic-gate         ops[5].filter.filterType = OpFilter.EVENT;
129*7c478bd9Sstevel@tonic-gate         ops[5].filter.target = gui.PrintCurPr;
130*7c478bd9Sstevel@tonic-gate         ops[5].filter.id = 1001;
131*7c478bd9Sstevel@tonic-gate         ops[5].action = new OpAction();
132*7c478bd9Sstevel@tonic-gate         ops[5].action.actionType = OpAction.CODE;
133*7c478bd9Sstevel@tonic-gate 
134*7c478bd9Sstevel@tonic-gate         ops[6] = new Op(gui);
135*7c478bd9Sstevel@tonic-gate         ops[6].name = "Op1";
136*7c478bd9Sstevel@tonic-gate         ops[6].filter = new OpFilter();
137*7c478bd9Sstevel@tonic-gate         ops[6].filter.filterType = OpFilter.EVENT;
138*7c478bd9Sstevel@tonic-gate         ops[6].filter.target = gui.PrintCurPol;
139*7c478bd9Sstevel@tonic-gate         ops[6].filter.id = 1001;
140*7c478bd9Sstevel@tonic-gate         ops[6].action = new OpAction();
141*7c478bd9Sstevel@tonic-gate         ops[6].action.actionType = OpAction.CODE;
142*7c478bd9Sstevel@tonic-gate 
143*7c478bd9Sstevel@tonic-gate         ops[7] = new Op(gui);
144*7c478bd9Sstevel@tonic-gate         ops[7].name = "Op1";
145*7c478bd9Sstevel@tonic-gate         ops[7].filter = new OpFilter();
146*7c478bd9Sstevel@tonic-gate         ops[7].filter.filterType = OpFilter.EVENT;
147*7c478bd9Sstevel@tonic-gate         ops[7].filter.target = gui.PrintPrlist;
148*7c478bd9Sstevel@tonic-gate         ops[7].filter.id = 1001;
149*7c478bd9Sstevel@tonic-gate         ops[7].action = new OpAction();
150*7c478bd9Sstevel@tonic-gate         ops[7].action.actionType = OpAction.CODE;
151*7c478bd9Sstevel@tonic-gate 
152*7c478bd9Sstevel@tonic-gate         ops[8] = new Op(gui);
153*7c478bd9Sstevel@tonic-gate         ops[8].name = "Op1";
154*7c478bd9Sstevel@tonic-gate         ops[8].filter = new OpFilter();
155*7c478bd9Sstevel@tonic-gate         ops[8].filter.filterType = OpFilter.EVENT;
156*7c478bd9Sstevel@tonic-gate         ops[8].filter.target = gui.PrintPollist;
157*7c478bd9Sstevel@tonic-gate         ops[8].filter.id = 1001;
158*7c478bd9Sstevel@tonic-gate         ops[8].action = new OpAction();
159*7c478bd9Sstevel@tonic-gate         ops[8].action.actionType = OpAction.CODE;
160*7c478bd9Sstevel@tonic-gate 
161*7c478bd9Sstevel@tonic-gate         ops[9] = new Op(gui);
162*7c478bd9Sstevel@tonic-gate         ops[9].name = "Op1";
163*7c478bd9Sstevel@tonic-gate         ops[9].filter = new OpFilter();
164*7c478bd9Sstevel@tonic-gate         ops[9].filter.filterType = OpFilter.EVENT;
165*7c478bd9Sstevel@tonic-gate         ops[9].filter.target = gui.logout;
166*7c478bd9Sstevel@tonic-gate         ops[9].filter.id = 1001;
167*7c478bd9Sstevel@tonic-gate         ops[9].action = new OpAction();
168*7c478bd9Sstevel@tonic-gate         ops[9].action.actionType = OpAction.CODE;
169*7c478bd9Sstevel@tonic-gate 
170*7c478bd9Sstevel@tonic-gate         ops[10] = new Op(gui);
171*7c478bd9Sstevel@tonic-gate         ops[10].name = "Exit";
172*7c478bd9Sstevel@tonic-gate         ops[10].filter = new OpFilter();
173*7c478bd9Sstevel@tonic-gate         ops[10].filter.filterType = OpFilter.EVENT;
174*7c478bd9Sstevel@tonic-gate         ops[10].filter.target = gui.Exit;
175*7c478bd9Sstevel@tonic-gate         ops[10].filter.id = 1001;
176*7c478bd9Sstevel@tonic-gate         ops[10].action = new OpAction();
177*7c478bd9Sstevel@tonic-gate         ops[10].action.actionType = OpAction.CODE;
178*7c478bd9Sstevel@tonic-gate 
179*7c478bd9Sstevel@tonic-gate         ops[11] = new Op(gui);
180*7c478bd9Sstevel@tonic-gate         ops[11].name = "Op1";
181*7c478bd9Sstevel@tonic-gate         ops[11].filter = new OpFilter();
182*7c478bd9Sstevel@tonic-gate         ops[11].filter.filterType = OpFilter.EVENT;
183*7c478bd9Sstevel@tonic-gate         ops[11].filter.target = gui.editPreferences;
184*7c478bd9Sstevel@tonic-gate         ops[11].filter.id = 1001;
185*7c478bd9Sstevel@tonic-gate         ops[11].action = new OpAction();
186*7c478bd9Sstevel@tonic-gate         ops[11].action.actionType = OpAction.CODE;
187*7c478bd9Sstevel@tonic-gate 
188*7c478bd9Sstevel@tonic-gate         ops[12] = new Op(gui);
189*7c478bd9Sstevel@tonic-gate         ops[12].name = "Op1";
190*7c478bd9Sstevel@tonic-gate         ops[12].filter = new OpFilter();
191*7c478bd9Sstevel@tonic-gate         ops[12].filter.filterType = OpFilter.EVENT;
192*7c478bd9Sstevel@tonic-gate         ops[12].filter.target = gui.refreshPrincipals;
193*7c478bd9Sstevel@tonic-gate         ops[12].filter.id = 1001;
194*7c478bd9Sstevel@tonic-gate         ops[12].action = new OpAction();
195*7c478bd9Sstevel@tonic-gate         ops[12].action.actionType = OpAction.CODE;
196*7c478bd9Sstevel@tonic-gate 
197*7c478bd9Sstevel@tonic-gate         ops[13] = new Op(gui);
198*7c478bd9Sstevel@tonic-gate         ops[13].name = "Op1";
199*7c478bd9Sstevel@tonic-gate         ops[13].filter = new OpFilter();
200*7c478bd9Sstevel@tonic-gate         ops[13].filter.filterType = OpFilter.EVENT;
201*7c478bd9Sstevel@tonic-gate         ops[13].filter.target = gui.refreshPolicies;
202*7c478bd9Sstevel@tonic-gate         ops[13].filter.id = 1001;
203*7c478bd9Sstevel@tonic-gate         ops[13].action = new OpAction();
204*7c478bd9Sstevel@tonic-gate         ops[13].action.actionType = OpAction.CODE;
205*7c478bd9Sstevel@tonic-gate 
206*7c478bd9Sstevel@tonic-gate         ops[14] = new Op(gui);
207*7c478bd9Sstevel@tonic-gate         ops[14].name = "Op1";
208*7c478bd9Sstevel@tonic-gate         ops[14].filter = new OpFilter();
209*7c478bd9Sstevel@tonic-gate         ops[14].filter.filterType = OpFilter.EVENT;
210*7c478bd9Sstevel@tonic-gate         ops[14].filter.target = gui.browserHelp2;
211*7c478bd9Sstevel@tonic-gate         ops[14].filter.id = 1001;
212*7c478bd9Sstevel@tonic-gate         ops[14].action = new OpAction();
213*7c478bd9Sstevel@tonic-gate         ops[14].action.actionType = OpAction.CODE;
214*7c478bd9Sstevel@tonic-gate 
215*7c478bd9Sstevel@tonic-gate         ops[15] = new Op(gui);
216*7c478bd9Sstevel@tonic-gate         ops[15].name = "Op1";
217*7c478bd9Sstevel@tonic-gate         ops[15].filter = new OpFilter();
218*7c478bd9Sstevel@tonic-gate         ops[15].filter.filterType = OpFilter.EVENT;
219*7c478bd9Sstevel@tonic-gate         ops[15].filter.target = gui.Context;
220*7c478bd9Sstevel@tonic-gate         ops[15].filter.id = 1001;
221*7c478bd9Sstevel@tonic-gate         ops[15].action = new OpAction();
222*7c478bd9Sstevel@tonic-gate         ops[15].action.actionType = OpAction.CODE;
223*7c478bd9Sstevel@tonic-gate 
224*7c478bd9Sstevel@tonic-gate         ops[16] = new Op(gui);
225*7c478bd9Sstevel@tonic-gate         ops[16].name = "Op1";
226*7c478bd9Sstevel@tonic-gate         ops[16].filter = new OpFilter();
227*7c478bd9Sstevel@tonic-gate         ops[16].filter.filterType = OpFilter.EVENT;
228*7c478bd9Sstevel@tonic-gate         ops[16].filter.target = gui.About;
229*7c478bd9Sstevel@tonic-gate         ops[16].filter.id = 1001;
230*7c478bd9Sstevel@tonic-gate         ops[16].action = new OpAction();
231*7c478bd9Sstevel@tonic-gate         ops[16].action.actionType = OpAction.CODE;
232*7c478bd9Sstevel@tonic-gate     }
233*7c478bd9Sstevel@tonic-gate 
handleCallback(int index, Message msg, Event evt)234*7c478bd9Sstevel@tonic-gate     private void handleCallback(int index, Message msg, Event evt) {
235*7c478bd9Sstevel@tonic-gate         switch (index) {
236*7c478bd9Sstevel@tonic-gate 	case 0:
237*7c478bd9Sstevel@tonic-gate             {
238*7c478bd9Sstevel@tonic-gate                 group.checkExit(
239*7c478bd9Sstevel@tonic-gate 				(java.awt.Frame)gui.loginframe.getBody());
240*7c478bd9Sstevel@tonic-gate             }
241*7c478bd9Sstevel@tonic-gate             break;
242*7c478bd9Sstevel@tonic-gate 	case 1:
243*7c478bd9Sstevel@tonic-gate             {
244*7c478bd9Sstevel@tonic-gate                 group.checkHelp(
245*7c478bd9Sstevel@tonic-gate 				(java.awt.Frame)gui.loginframe.getBody());
246*7c478bd9Sstevel@tonic-gate             }
247*7c478bd9Sstevel@tonic-gate             break;
248*7c478bd9Sstevel@tonic-gate 	case 2:
249*7c478bd9Sstevel@tonic-gate             {
250*7c478bd9Sstevel@tonic-gate                 group.checkContextSensitiveHelp(
251*7c478bd9Sstevel@tonic-gate 				(java.awt.Frame)gui.loginframe.getBody());
252*7c478bd9Sstevel@tonic-gate             }
253*7c478bd9Sstevel@tonic-gate             break;
254*7c478bd9Sstevel@tonic-gate 	case 3:
255*7c478bd9Sstevel@tonic-gate             {
256*7c478bd9Sstevel@tonic-gate                 group.checkAbout(
257*7c478bd9Sstevel@tonic-gate 				 (java.awt.Frame)gui.loginframe.getBody());
258*7c478bd9Sstevel@tonic-gate             }
259*7c478bd9Sstevel@tonic-gate             break;
260*7c478bd9Sstevel@tonic-gate 	case 4:
261*7c478bd9Sstevel@tonic-gate             {
262*7c478bd9Sstevel@tonic-gate                 group.exit();
263*7c478bd9Sstevel@tonic-gate             }
264*7c478bd9Sstevel@tonic-gate             break;
265*7c478bd9Sstevel@tonic-gate 	case 5:
266*7c478bd9Sstevel@tonic-gate             {
267*7c478bd9Sstevel@tonic-gate                 group.checkPrintCurPr();
268*7c478bd9Sstevel@tonic-gate             }
269*7c478bd9Sstevel@tonic-gate             break;
270*7c478bd9Sstevel@tonic-gate 	case 6:
271*7c478bd9Sstevel@tonic-gate             {
272*7c478bd9Sstevel@tonic-gate                 group.checkPrintCurPol();
273*7c478bd9Sstevel@tonic-gate             }
274*7c478bd9Sstevel@tonic-gate             break;
275*7c478bd9Sstevel@tonic-gate 	case 7:
276*7c478bd9Sstevel@tonic-gate             {
277*7c478bd9Sstevel@tonic-gate                 group.checkPrintPrList();
278*7c478bd9Sstevel@tonic-gate             }
279*7c478bd9Sstevel@tonic-gate             break;
280*7c478bd9Sstevel@tonic-gate 	case 8:
281*7c478bd9Sstevel@tonic-gate             {
282*7c478bd9Sstevel@tonic-gate                 group.checkPrintPoList();
283*7c478bd9Sstevel@tonic-gate             }
284*7c478bd9Sstevel@tonic-gate             break;
285*7c478bd9Sstevel@tonic-gate 	case 9:
286*7c478bd9Sstevel@tonic-gate             {
287*7c478bd9Sstevel@tonic-gate                 group.checkLogout();
288*7c478bd9Sstevel@tonic-gate             }
289*7c478bd9Sstevel@tonic-gate             break;
290*7c478bd9Sstevel@tonic-gate 	case 10:
291*7c478bd9Sstevel@tonic-gate             {
292*7c478bd9Sstevel@tonic-gate                 group.checkExit(
293*7c478bd9Sstevel@tonic-gate 				(java.awt.Frame)gui.mainframe.getBody());
294*7c478bd9Sstevel@tonic-gate             }
295*7c478bd9Sstevel@tonic-gate             break;
296*7c478bd9Sstevel@tonic-gate 	case 11:
297*7c478bd9Sstevel@tonic-gate             {
298*7c478bd9Sstevel@tonic-gate                 group.checkEditPreferences();
299*7c478bd9Sstevel@tonic-gate             }
300*7c478bd9Sstevel@tonic-gate             break;
301*7c478bd9Sstevel@tonic-gate 	case 12:
302*7c478bd9Sstevel@tonic-gate             {
303*7c478bd9Sstevel@tonic-gate                 group.checkRefreshPrincipals();
304*7c478bd9Sstevel@tonic-gate             }
305*7c478bd9Sstevel@tonic-gate             break;
306*7c478bd9Sstevel@tonic-gate 	case 13:
307*7c478bd9Sstevel@tonic-gate             {
308*7c478bd9Sstevel@tonic-gate                 group.checkRefreshPolicies();
309*7c478bd9Sstevel@tonic-gate             }
310*7c478bd9Sstevel@tonic-gate             break;
311*7c478bd9Sstevel@tonic-gate 	case 14:
312*7c478bd9Sstevel@tonic-gate             {
313*7c478bd9Sstevel@tonic-gate                 group.checkHelp(
314*7c478bd9Sstevel@tonic-gate 				(java.awt.Frame)gui.mainframe.getBody());
315*7c478bd9Sstevel@tonic-gate             }
316*7c478bd9Sstevel@tonic-gate             break;
317*7c478bd9Sstevel@tonic-gate 	case 15:
318*7c478bd9Sstevel@tonic-gate             {
319*7c478bd9Sstevel@tonic-gate                 group.checkContextSensitiveHelp(
320*7c478bd9Sstevel@tonic-gate 				(java.awt.Frame)gui.mainframe.getBody());
321*7c478bd9Sstevel@tonic-gate             }
322*7c478bd9Sstevel@tonic-gate             break;
323*7c478bd9Sstevel@tonic-gate 	case 16:
324*7c478bd9Sstevel@tonic-gate             {
325*7c478bd9Sstevel@tonic-gate                 group.checkAbout(
326*7c478bd9Sstevel@tonic-gate 				 (java.awt.Frame)gui.mainframe.getBody());
327*7c478bd9Sstevel@tonic-gate             }
328*7c478bd9Sstevel@tonic-gate             break;
329*7c478bd9Sstevel@tonic-gate 	default:
330*7c478bd9Sstevel@tonic-gate             throw new Error("Bad callback index: " + index);
331*7c478bd9Sstevel@tonic-gate         }
332*7c478bd9Sstevel@tonic-gate     }
333*7c478bd9Sstevel@tonic-gate 
334*7c478bd9Sstevel@tonic-gate 
335*7c478bd9Sstevel@tonic-gate     // methods from lib/visual/gen/methods.java
336*7c478bd9Sstevel@tonic-gate 
337*7c478bd9Sstevel@tonic-gate     /**
338*7c478bd9Sstevel@tonic-gate      * Converts a string to the specified type.
339*7c478bd9Sstevel@tonic-gate      */
convert(String type, String value)340*7c478bd9Sstevel@tonic-gate     private Object convert(String type, String value) {
341*7c478bd9Sstevel@tonic-gate         return (Converter.getConverter(type).convertFromString(value));
342*7c478bd9Sstevel@tonic-gate     }
343*7c478bd9Sstevel@tonic-gate }
344