01: package org.objectweb.jonas.webapp.jonasadmin.jonasmqconnect;
02:
03: import org.apache.struts.action.ActionForm;
04:
05: public class DestinationsForm extends ActionForm {
06: /**
07: * debug or not
08: */
09: private boolean debug = false;
10:
11: /**
12: * printe debug msg
13: * @param s msg
14: */
15: private void debug(String s) {
16: if (debug)
17: System.out.println(s);
18: }
19:
20: /**
21: * Selected destinations
22: */
23: private String[] selectedDestinations;
24:
25: /**
26: * Selected destinations
27: * @return the selected destinations
28: */
29: public String[] getSelectedDestinations() {
30: debug("DestinationsForm#getSelectedDestinations()");
31: return selectedDestinations;
32: }
33:
34: /**
35: * selected destinations
36: * @param selectedDestinations the selected destinations to set
37: */
38: public void setSelectedDestinations(String[] selectedDestinations) {
39: debug("DestinationsForm#setSelectedDestinations("
40: + selectedDestinations + ")");
41: this.selectedDestinations = selectedDestinations;
42: }
43: }
|