001: package org.objectweb.jonas.webapp.jonasadmin.jonasmqconnect;
002:
003: import java.util.ArrayList;
004:
005: import org.apache.struts.action.ActionForm;
006:
007: public class DestinationDeleteForm extends ActionForm {
008: /**
009: * debug or not
010: */
011: private boolean debug = false;
012:
013: /**
014: * printe debug msg
015: * @param s msg
016: */
017: private void debug(String s) {
018: if (debug)
019: System.out.println(s);
020: }
021:
022: /**
023: * Selected destinations
024: */
025: private String[] selectedDestinations;
026:
027: /**
028: * Selected destinations in string
029: */
030: private String destinationsStr;
031:
032: /**
033: * Selected destinations
034: */
035: private ArrayList destinations;
036:
037: /**
038: * remove Physical Destination ?
039: */
040: private String deletePhysicalDestination = null;
041:
042: /**
043: * Selected destinations
044: * @return the selected destinations
045: */
046: public String[] getSelectedDestinations() {
047: debug("DestinationDeleteForm#getSelectedDestinations()");
048: return selectedDestinations;
049: }
050:
051: /**
052: * selected destinations
053: * @param selectedDestinations the selected destinations to set
054: */
055: public void setSelectedDestinations(String[] selectedDestinations) {
056: debug("DestinationDeleteForm#setSelectedDestinations("
057: + selectedDestinations + ")");
058: this .selectedDestinations = selectedDestinations;
059: }
060:
061: /**
062: * destinations
063: * @return the destinations
064: */
065: public ArrayList getDestinations() {
066: debug("DestinationDeleteForm#getDestinations()");
067: return destinations;
068: }
069:
070: /**
071: * @param destinations the selected destinations to set
072: */
073: public void setDestinations(ArrayList destinations) {
074: debug("DestinationDeleteForm#setDestinations(" + destinations
075: + ")");
076: this .destinations = destinations;
077: }
078:
079: /**
080: * @return the removePhysicalDestination
081: */
082: public String getDeletePhysicalDestination() {
083: debug("DestinationDeleteForm#getDeletePhysicalDestination()");
084: return deletePhysicalDestination;
085: }
086:
087: /**
088: * @param deletePhysicalDestination the deletePhysicalDestination to set
089: */
090: public void setDeletePhysicalDestination(
091: String deletePhysicalDestination) {
092: debug("DestinationDeleteForm#setDeletePhysicalDestination("
093: + deletePhysicalDestination + ")");
094: this .deletePhysicalDestination = deletePhysicalDestination;
095: }
096:
097: /**
098: * get DestinationsStr
099: * @return the destinationsStr
100: */
101: public String getDestinationsStr() {
102: debug("DestinationDeleteForm#getDestinationsStr()");
103: return destinationsStr;
104: }
105:
106: /**
107: * set DestinationsStr
108: * @param destinationsStr destinations String
109: */
110: public void setDestinationsStr(String destinationsStr) {
111: debug("DestinationDeleteForm#setDestinationsStr("
112: + destinationsStr + ")");
113: this.destinationsStr = destinationsStr;
114: }
115: }
|