1 6 7 package com.quikj.application.web.talk.jspbeans; 8 9 import javax.servlet.jsp.*; 10 import java.io.*; 11 12 16 public class ChatStatusBarTag extends javax.servlet.jsp.tagext.TagSupport 17 { 18 19 20 private String width = "*"; 21 22 23 private String bgcolor = "lightgrey"; 24 25 26 private String label = "Please wait while we connect to an operator..."; 27 28 29 public ChatStatusBarTag() 30 { 31 } 32 33 public int doStartTag() 34 { 35 try 36 { 37 JspWriter out = pageContext.getOut(); 38 39 out.println("<div id=\"status_bar\" style=\"width:" 40 + width 41 + ";height:30;" 42 + "background-color:" 43 + bgcolor + "\">"); 44 out.println (label + "</div>"); 45 46 } 47 catch (IOException ex) 48 { 49 return SKIP_PAGE; 50 } 51 52 return EVAL_PAGE; 53 } 54 55 59 public String getWidth() 60 { 61 return this.width; 62 } 63 64 68 public void setWidth(String width) 69 { 70 this.width = width; 71 } 72 73 77 public String getBgcolor() 78 { 79 return this.bgcolor; 80 } 81 82 86 public void setBgcolor(String bgcolor) 87 { 88 this.bgcolor = bgcolor; 89 } 90 91 95 public String getLabel() 96 { 97 return this.label; 98 } 99 100 104 public void setLabel(String label) 105 { 106 this.label = label; 107 } 108 109 } 110 | Popular Tags |