37c1f17d286907123ac96be9fd82d0a96cdb82b6.svn-base 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /*
  2. * Created on 2006-6-8 Administrator
  3. */
  4. package com.sysmodel.collectmodel.xmlmodel.impl;
  5. import com.sysmodel.collectmodel.xmlmodel.able.Action;
  6. public class ActionImpl implements Action, Cloneable{
  7. private String type = "";
  8. private String value = "";
  9. private int appendSpace = 0;
  10. private String method = "";
  11. private String returnURL = "";
  12. private String dojoType = "";
  13. public String getDojoType() {
  14. return dojoType;
  15. }
  16. public void setDojoType(String dojoType) {
  17. this.dojoType = dojoType;
  18. }
  19. public int getAppendSpace() {
  20. return appendSpace;
  21. }
  22. public void setAppendSpace(int appendSpace) {
  23. this.appendSpace = appendSpace;
  24. }
  25. public String getType() {
  26. return type;
  27. }
  28. public void setType(String type) {
  29. this.type = type;
  30. }
  31. public String getValue() {
  32. return value;
  33. }
  34. public void setValue(String value) {
  35. this.value = value;
  36. }
  37. public String getReturnURL() {
  38. return returnURL;
  39. }
  40. public void setReturnURL(String returnURL) {
  41. this.returnURL = returnURL;
  42. }
  43. public String getMethod() {
  44. return method;
  45. }
  46. public void setMethod(String method) {
  47. this.method = method;
  48. }
  49. public String appendSpace() {
  50. StringBuffer sb = new StringBuffer();
  51. int m = 0;
  52. for (int i = 0; i < appendSpace; i++) {
  53. m = i + 1;
  54. }
  55. sb.append("&nbsp;" + m);
  56. return sb.toString();
  57. }
  58. public Object clone() {
  59. ActionImpl o = null;
  60. try {
  61. o = (ActionImpl) super.clone();
  62. } catch (CloneNotSupportedException e) {
  63. e.printStackTrace();
  64. }
  65. return o;
  66. }
  67. }