Author: manaRH
Date: 2009-12-10 08:38:14 -0500 (Thu, 10 Dec 2009)
New Revision: 11806
Modified:
branches/enterprise/JBPAPP_4_3_FP01/examples/itext/extra/PDFRenderKit.java
branches/enterprise/JBPAPP_4_3_FP01/examples/itext/extra/PDFResponseWriter.java
branches/enterprise/JBPAPP_4_3_FP01/examples/itext/extra/SeamFaceletViewHandler.java
branches/enterprise/JBPAPP_4_3_FP01/examples/itext/extra/TextRenderer.java
branches/enterprise/JBPAPP_4_3_FP01/examples/itext/src/org/jboss/seam/example/pdf/DynamicChart.java
branches/enterprise/JBPAPP_4_3_FP01/examples/itext/src/org/jboss/seam/example/pdf/SwingComponent.java
Log:
JBPAPP-3185
Modified: branches/enterprise/JBPAPP_4_3_FP01/examples/itext/extra/PDFRenderKit.java
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/examples/itext/extra/PDFRenderKit.java 2009-12-10
10:56:24 UTC (rev 11805)
+++ branches/enterprise/JBPAPP_4_3_FP01/examples/itext/extra/PDFRenderKit.java 2009-12-10
13:38:14 UTC (rev 11806)
@@ -18,7 +18,7 @@
Map<String,Renderer> renderers = new HashMap<String,Renderer>();
public ResponseStream createResponseStream(OutputStream stream) {
- System.out.println("RESPONSE STREAM!");
+// System.out.println("RESPONSE STREAM!");
return null;
}
@@ -32,17 +32,17 @@
}
public ResponseStateManager getResponseStateManager() {
- System.out.println("GET RESPONSE STATE MANAGER");
+// System.out.println("GET RESPONSE STATE MANAGER");
return null;
}
public Renderer getRenderer(String family, String rendererType) {
- System.out.println("GET RENDERER: " + family + "/" +
rendererType);
+// System.out.println("GET RENDERER: " + family + "/" +
rendererType);
return renderers.get(key(family,rendererType));
}
public void addRenderer(String family, String rendererType, Renderer renderer) {
- System.out.println("ADD RENDER " + family + "/" +
rendererType + ":" + renderer);
+// System.out.println("ADD RENDER " + family + "/" +
rendererType + ":" + renderer);
renderers.put(key(family,rendererType), renderer);
}
Modified: branches/enterprise/JBPAPP_4_3_FP01/examples/itext/extra/PDFResponseWriter.java
===================================================================
---
branches/enterprise/JBPAPP_4_3_FP01/examples/itext/extra/PDFResponseWriter.java 2009-12-10
10:56:24 UTC (rev 11805)
+++
branches/enterprise/JBPAPP_4_3_FP01/examples/itext/extra/PDFResponseWriter.java 2009-12-10
13:38:14 UTC (rev 11806)
@@ -22,7 +22,6 @@
public PDFResponseWriter(FacesContext context, Writer writer)
{
- System.out.println("Context is " + context);
this.writer = writer;
this.context = context;
}
Modified:
branches/enterprise/JBPAPP_4_3_FP01/examples/itext/extra/SeamFaceletViewHandler.java
===================================================================
---
branches/enterprise/JBPAPP_4_3_FP01/examples/itext/extra/SeamFaceletViewHandler.java 2009-12-10
10:56:24 UTC (rev 11805)
+++
branches/enterprise/JBPAPP_4_3_FP01/examples/itext/extra/SeamFaceletViewHandler.java 2009-12-10
13:38:14 UTC (rev 11806)
@@ -63,9 +63,9 @@
{
initialize(context); // shouldn't have to do this
- System.out.println("Building: " + viewToRender + " -> " +
viewToRender.getChildCount());
+// System.out.println("Building: " + viewToRender + " -> "
+ viewToRender.getChildCount());
buildView(context, viewToRender);
- System.out.println("Built: " + viewToRender + " -> " +
viewToRender.getChildCount());
+// System.out.println("Built: " + viewToRender + " -> "
+ viewToRender.getChildCount());
}
}
Modified: branches/enterprise/JBPAPP_4_3_FP01/examples/itext/extra/TextRenderer.java
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/examples/itext/extra/TextRenderer.java 2009-12-10
10:56:24 UTC (rev 11805)
+++ branches/enterprise/JBPAPP_4_3_FP01/examples/itext/extra/TextRenderer.java 2009-12-10
13:38:14 UTC (rev 11806)
@@ -21,18 +21,18 @@
UIComponent component)
throws IOException
{
- System.out.println("BEGIN RENDER " + component);
+// System.out.println("BEGIN RENDER " + component);
}
public void encodeEnd(FacesContext context,
UIComponent component)
throws IOException
{
- System.out.println("END RENDER " + component);
+// System.out.println("END RENDER " + component);
if (component instanceof ValueHolder) {
ValueHolder holder = (ValueHolder) component;
Object value = holder.getValue();
- System.out.println("*VALUE IS " + value);
+// System.out.println("*VALUE IS " + value);
if (value != null) {
Chunk c = new Chunk(value.toString());
Modified:
branches/enterprise/JBPAPP_4_3_FP01/examples/itext/src/org/jboss/seam/example/pdf/DynamicChart.java
===================================================================
---
branches/enterprise/JBPAPP_4_3_FP01/examples/itext/src/org/jboss/seam/example/pdf/DynamicChart.java 2009-12-10
10:56:24 UTC (rev 11805)
+++
branches/enterprise/JBPAPP_4_3_FP01/examples/itext/src/org/jboss/seam/example/pdf/DynamicChart.java 2009-12-10
13:38:14 UTC (rev 11806)
@@ -307,12 +307,11 @@
}
public void removeSeries(String id) {
- System.out.println("REMOVE: " + id);
+ //System.out.println("REMOVE: " + id);
}
public void newSeries() {
String newId = findUniqueSeriesId();
- System.out.println("** series " + newId);
Data set = new Data();
set.setId(newId);
Modified:
branches/enterprise/JBPAPP_4_3_FP01/examples/itext/src/org/jboss/seam/example/pdf/SwingComponent.java
===================================================================
---
branches/enterprise/JBPAPP_4_3_FP01/examples/itext/src/org/jboss/seam/example/pdf/SwingComponent.java 2009-12-10
10:56:24 UTC (rev 11805)
+++
branches/enterprise/JBPAPP_4_3_FP01/examples/itext/src/org/jboss/seam/example/pdf/SwingComponent.java 2009-12-10
13:38:14 UTC (rev 11806)
@@ -4,20 +4,24 @@
import javax.swing.*;
import org.jboss.seam.annotations.Create;
+import org.jboss.seam.annotations.Logger;
import org.jboss.seam.annotations.Name;
+import org.jboss.seam.log.Log;
@Name("swing")
public class SwingComponent
{
+
+ @Logger
+ private Log log;
+
@Create
public void init() {
try {
UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
} catch(Exception e) {
- System.out.println("Error setting Java LAF: " + e);
- }
-
- System.out.println("** " + UIManager.getLookAndFeel());
+ log.error("Error setting Java LAF: " + e);
+ }
}
public Component getButton() {
Show replies by date