1 27 package olstore.form; 28 29 31 import java.util.Vector; 32 33 import olstore.dto.PropertyValue; 34 35 36 public class CreateTypeForm extends DemoBaseForm { 37 38 39 private String Name = null; 40 41 private String NumProps = null; 42 private String Submit = null; 43 44 private Vector Properties = new Vector() ; 45 46 47 public String getName () { 48 return this.Name; 49 } 50 public void setName ( String name ) { 51 this.Name = name; 52 } 53 54 55 61 public PropertyValue getProp (int index) { 62 if ( index >= Properties.size() ) { 63 int size = Properties.size(); 64 for ( int i =0; i < (index-size) + 1 ; i++ ) { 65 Properties.add ( new PropertyValue() ); 66 } 67 } 68 return (PropertyValue) Properties.get ( index ); 69 } 70 71 public void setProp ( int index, PropertyValue property ) { 72 Properties.set ( index, property ); 73 } 74 75 78 public Vector getProperties( ) { 79 return Properties; 80 } 81 82 public void setProperties ( Vector props ) { 83 Properties = props; 84 } 85 86 87 public String getNumProps () { 89 return this.NumProps; 90 } 91 public void setNumProps ( String numProps) { 92 this.NumProps = numProps; 93 } 94 95 public String getSubmitType () { 96 return this.Submit; 97 } 98 public void setSubmitType ( String submit ) { 99 this.Submit = submit; 100 } 101 102 } 103 | Popular Tags |