1 25 26 29 package net.killingar.forum.actions.strip; 30 31 public class Edit extends net.killingar.forum.actions.comic.ActionComicsSupport 32 { 33 35 net.killingar.forum.internal.Strip strip = new net.killingar.forum.internal.Strip(); 37 long stripID = -1; 38 39 41 43 public void setStripID(long inStripID) { stripID = inStripID; } 45 46 public net.killingar.forum.internal.Strip getStrip() { return strip; } 48 49 protected String doExecute() 51 { 52 try 53 { 54 if (strip.getId() == -1) 55 { 56 strip = comicmgr.getStrip(stripID); 57 return INPUT; 58 } 59 60 comicmgr.changeStrip(strip); 61 } 62 catch (Exception e) 63 { 64 e.printStackTrace(); 65 addErrorMessage("executing "+getClass().toString()+" action failed, exception thrown: "+e.toString()); 66 return ERROR; 67 } 68 69 return SUCCESS; 70 } 71 } 72 | Popular Tags |