1 25 26 package net.killingar.forum.actions.area.customizer; 27 28 import net.killingar.forum.actions.area.EditMessage; 29 import net.killingar.forum.internal.FieldData; 30 31 public class Quotes extends AbstractParameterizedCustomizer 32 { 33 String quote, description; 35 36 protected void updateParams(FieldData f) 38 { 39 updateParam("quote", f); 40 updateParam("description", f); 41 } 42 43 public void previewMessage(EditMessage in) 44 { 45 FieldData f = new FieldData(in.body); 46 quote = (String )f.getFields().get("quote"); 47 description = (String )f.getFields().get("description"); 48 49 preview(in, f); 50 } 51 52 public boolean editMessagePreProccess(EditMessage in) 53 { 54 if (in.replyMessageID != -1) 55 return true; 56 57 return super.editMessagePreProccess(in); 58 } 59 60 62 public void setQuote(String in) { quote = in; } 64 public void setDescription(String in) { description = in; } 65 66 public String getWriteView() { return "quote-write.jsp"; } 68 public String getMessageView() { return "quote-message.jsp"; } 69 70 public String getQuote() { return quote; } 71 public String getDescription() { return description; } 72 } | Popular Tags |