home *** CD-ROM | disk | FTP | other *** search
/ Practical Internet Web Designer 86 / PIWD86.iso / pc / contents / dreamweaver / software / dwmx2004.exe / Disk1 / data1.cab / Configuration_En / Commands / EditOpsCustomObjs.js < prev    next >
Encoding:
JavaScript  |  2003-09-05  |  2.4 KB  |  92 lines

  1. // Copyright 2000, 2001, 2002, 2003 Macromedia, Inc. All rights reserved.
  2.  
  3. // Note: eo is simply short for Edit Ops
  4. // Each form type needed some type of preface because the form types could be reserved
  5. // JavaScript keywords, and eo seemed as good as any
  6.  
  7. function eoDisplayObj(type){
  8.   this.name = "";
  9. }
  10.  
  11. eoText.prototype = new eoDisplayObj;
  12. function eoText(text){
  13.   this.type = "text";
  14.   this.text = text || "";
  15. }
  16.  
  17. eoTextField.prototype = new eoDisplayObj;
  18. function eoTextField(value){
  19.   this.type = "textField";
  20.   this.value = value || "";
  21. }
  22.  
  23. eoFileField.prototype = new eoDisplayObj;
  24. function eoFileField(value){
  25.   this.type = "fileField";
  26.   this.value = value || "";
  27. }
  28.  
  29. eoHiddenField.prototype = new eoDisplayObj;
  30. function eoHiddenField(value){
  31.   this.type = "hiddenField";
  32.   this.value = value || "";
  33. }
  34.  
  35. eoPasswordField.prototype = new eoDisplayObj;
  36. function eoPasswordField(value){
  37.   this.type = "passwordField";
  38.   this.value = value || "";
  39. }
  40.  
  41. eoTextArea.prototype = new eoDisplayObj;
  42. function eoTextArea(value){
  43.   this.type = "textArea";
  44.   this.value = value || "";
  45. }
  46.  
  47. eoCheckBox.prototype = new eoDisplayObj;
  48. function eoCheckBox(checked){
  49.   this.type = "checkBox";
  50.   this.checked = checked || false;
  51. }
  52.  
  53. eoDynamicCheckBox.prototype = new eoDisplayObj;
  54. function eoDynamicCheckBox(checkIf,equalTo){
  55.   this.type = "dynamicCheckBox";
  56.   this.checkIf = checkIf || "";
  57.   this.equalTo = equalTo || "";
  58. }
  59.  
  60. eoMenu.prototype = new eoDisplayObj;
  61. function eoMenu(textArr,valArr,defaultSelected){
  62.   this.type = "menu";
  63.   this.textArr = textArr || "";
  64.   this.valArr  = valArr || "";
  65.   this.defaultSelected = defaultSelected || "";
  66. }
  67.  
  68. eoDynamicMenu.prototype = new eoDisplayObj;
  69. function eoDynamicMenu(recordset,textCol,valCol,defaultSelected){
  70.   this.type = "dynamicMenu";
  71.   this.recordset = recordset || "";
  72.   this.textCol   = textCol || "";
  73.   this.valCol    = valCol || "";
  74.   this.defaultSelected = defaultSelected || "";
  75. }
  76.  
  77. eoRadioGroup.prototype = new eoDisplayObj;
  78. function eoRadioGroup(labelArr,valArr,defaultChecked){
  79.   this.type = "radioGroup";
  80.   this.labelArr = labelArr || "";
  81.   this.valArr   = valArr || "";
  82.   this.defaultChecked = defaultChecked || "";
  83. }
  84.  
  85. eoDynamicRadioGroup.prototype = new eoDisplayObj;
  86. function eoDynamicRadioGroup(recordset,labelCol,valueCol,defaultChecked){
  87.   this.type = "dynamicRadioGroup";
  88.   this.recordset = "";
  89.   this.labelCol  = "";
  90.   this.valCol  = "";
  91.   this.defaultChecked = "";
  92. }