- Timestamp:
- 2003-08-18T13:50:54+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/build/CollectionConstructor.java
r4852 r5148 11 11 12 12 /** the site in which building is to take place */ 13 protected String site_home _= null;13 protected String site_home = null; 14 14 /** the name of the collection */ 15 protected String collection_name _= null;15 protected String collection_name = null; 16 16 /** the stage of construction */ 17 protected int process_type _= -1;17 protected int process_type = -1; 18 18 /** other arguments/parameters for the construction process - in a paramList */ 19 protected Element process_params _= null;19 protected Element process_params = null; 20 20 /** the list of listeners for the process */ 21 protected EventListenerList listeners _= null;21 protected EventListenerList listeners = null; 22 22 /** A flag used to determine if this process has been asked to cancel. */ 23 protected boolean cancel _= false;23 protected boolean cancel = false; 24 24 25 25 public CollectionConstructor(String name) { 26 26 super(name); 27 listeners_= new EventListenerList();27 this.listeners = new EventListenerList(); 28 28 } 29 29 … … 34 34 } 35 35 public void stopAction() { 36 cancel_= true;36 this.cancel = true; 37 37 } 38 38 39 39 public void setActionType(int type) { 40 process_type_= type;40 this.process_type = type; 41 41 } 42 42 public void setSiteHome(String site_home) { 43 site_home_= site_home;43 this.site_home = site_home; 44 44 } 45 45 public void setCollectionName(String coll_name) { 46 collection_name_= coll_name;46 this.collection_name = coll_name; 47 47 } 48 48 public void setProcessParams(Element params) { 49 process_params_= params;49 this.process_params = params; 50 50 } 51 51 public boolean addListener(ConstructionListener listener) { 52 listeners_.add(ConstructionListener.class, listener);52 this.listeners.add(ConstructionListener.class, listener); 53 53 return true; 54 54 } 55 55 public boolean removeListener(ConstructionListener listener) { 56 listeners_.remove(ConstructionListener.class, listener);56 this.listeners.remove(ConstructionListener.class, listener); 57 57 return true; 58 58 } 59 59 60 60 protected void sendProcessBegun(ConstructionEvent evt) { 61 Object[] concerned = listeners_.getListenerList();61 Object[] concerned = this.listeners.getListenerList(); 62 62 for(int i = 0; i < concerned.length ; i+=2) { 63 63 if(concerned[i] == ConstructionListener.class) { … … 67 67 } 68 68 protected void sendProcessComplete(ConstructionEvent evt) { 69 Object[] concerned = listeners_.getListenerList();69 Object[] concerned = this.listeners.getListenerList(); 70 70 for(int i = 0; i < concerned.length ; i+=2) { 71 71 if(concerned[i] == ConstructionListener.class) { … … 77 77 protected void sendProcessStatus(ConstructionEvent evt) { 78 78 79 Object[] concerned = listeners_.getListenerList();79 Object[] concerned = this.listeners.getListenerList(); 80 80 for(int i = 0; i < concerned.length ; i+=2) { 81 81 if(concerned[i] == ConstructionListener.class) { … … 86 86 protected void sendMessage(ConstructionEvent evt) { 87 87 88 Object[] concerned = listeners_.getListenerList();88 Object[] concerned = this.listeners.getListenerList(); 89 89 for(int i = 0; i < concerned.length ; i+=2) { 90 90 if(concerned[i] == ConstructionListener.class) {
Note:
See TracChangeset
for help on using the changeset viewer.