source: ether_megapoli/trunk/service/implementation/com/medias/megapoli/struts/forms/DeleteForm.java @ 151

Last change on this file since 151 was 151, checked in by vmipsl, 13 years ago

Import medias files and cleanup

  • Property svn:executable set to *
File size: 836 bytes
Line 
1package com.medias.megapoli.struts.forms;
2
3import org.apache.struts.validator.ValidatorForm;
4
5/**
6 * @author combaz
7 *
8 * Created on 11 mars 2005
9 */
10public class DeleteForm extends ValidatorForm {
11        /**
12     *
13     */
14    private static final long serialVersionUID = 1L;
15    private String path;
16        private String name;
17       
18        /**
19         * @return Returns the name.
20         */
21        public String getName() {
22                return name;
23        }
24        /**
25         * @param name The name to set.
26         */
27        public void setName(String name) {
28                this.name = name;
29        }
30        /**
31         * @return Returns the path.
32         */
33        public String getPath() {
34                return path;
35        }
36        /**
37         * @param path The path to set.
38         */
39        public void setPath(String path) {
40                this.path = path;
41                this.setName(path.substring(path.lastIndexOf("/")+1));
42        }
43       
44        public void setFieldsToNull() {
45                this.setPath(null);
46                this.setName(null);
47        }
48}
Note: See TracBrowser for help on using the repository browser.