krysalis-barcode/examples/webapp/java/org/krysalis/barcode/webapp BarcodeRequestBean.java,1.3,1.4

[email protected]
Newsgroups gmane.comp.krysalis.cvs
Message-ID <[email protected]>
Update of /cvsroot/krysalis/krysalis-barcode/examples/webapp/java/org/krysalis/barcode/webapp
In directory sc8-pr-cvs1:/tmp/cvs-serv27864/examples/webapp/java/org/krysalis/barcode/webapp

Modified Files:
	BarcodeRequestBean.java 
Log Message:
Add support for font and font size in webapp.
Submitted By: Andrew Nelson <Andrew.Nelson.at.hsc.utah.edu>

Index: BarcodeRequestBean.java
===================================================================
RCS file: /cvsroot/krysalis/krysalis-barcode/examples/webapp/java/org/krysalis/barcode/webapp/BarcodeRequestBean.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** BarcodeRequestBean.java	15 Jun 2003 16:37:58 -0000	1.3
--- BarcodeRequestBean.java	6 Nov 2003 15:10:58 -0000	1.4
***************
*** 75,78 ****
--- 75,80 ----
      private String quietZone;
      private String humanReadable;
+     private String humanReadableSize;
+     private String humanReadableFont;
      private String format;
      private String resolution;
***************
*** 139,142 ****
--- 141,160 ----
      }
  
+     public String getHumanReadableSize() {
+         return humanReadableSize;
+     }
+ 
+     public void setHumanReadableSize(String humanReadableSize) {
+         this.humanReadableSize = humanReadableSize;
+     }
+ 
+     public String getHumanReadableFont() {
+         return humanReadableFont;
+     }
+ 
+     public void setHumanReadableFont(String humanReadableFont) {
+         this.humanReadableFont = humanReadableFont;
+     }
+ 
      public String getFormat() {
          return this.format;
***************
*** 250,254 ****
              sb.append(fmt);
          }
!         
          //Output Format
          String res = getResolution();
--- 268,288 ----
              sb.append(fmt);
          }
!     
!         String humanReadableSize = getHumanReadableSize();
!         if (humanReadableSize != null) {
!             sb.append("&");
!             sb.append(BarcodeServlet.BARCODE_HUMAN_READABLE_SIZE);
!             sb.append("=");
!             sb.append(humanReadableSize);
!         }
! 
!         String humanReadableFont = getHumanReadableFont();
!         if (humanReadableSize != null) {
!             sb.append("&");
!             sb.append(BarcodeServlet.BARCODE_HUMAN_READABLE_FONT);
!             sb.append("=");
!             sb.append(java.net.URLEncoder.encode(humanReadableFont));
!         }
! 
          //Output Format
          String res = getResolution();




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.