You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by kl...@apache.org on 2003/07/26 08:49:32 UTC
cvs commit: jakarta-poi/src/contrib/src/org/apache/poi/contrib/poibrowser PropertySetDescriptorRenderer.java
klute 2003/07/25 23:49:32
Modified: src/contrib/src/org/apache/poi/contrib/poibrowser
PropertySetDescriptorRenderer.java
Log:
Bug 21775
Revision Changes Path
1.5 +19 -8 jakarta-poi/src/contrib/src/org/apache/poi/contrib/poibrowser/PropertySetDescriptorRenderer.java
Index: PropertySetDescriptorRenderer.java
===================================================================
RCS file: /home/cvs/jakarta-poi/src/contrib/src/org/apache/poi/contrib/poibrowser/PropertySetDescriptorRenderer.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- PropertySetDescriptorRenderer.java 22 Feb 2003 13:39:24 -0000 1.4
+++ PropertySetDescriptorRenderer.java 26 Jul 2003 06:49:32 -0000 1.5
@@ -58,13 +58,21 @@
package org.apache.poi.contrib.poibrowser;
-import java.awt.*;
+import java.awt.Color;
+import java.awt.Component;
+import java.awt.Font;
import java.util.Iterator;
import java.util.List;
-import javax.swing.*;
-import javax.swing.tree.*;
-import org.apache.poi.hpsf.*;
-import org.apache.poi.hpsf.wellknown.*;
+
+import javax.swing.JPanel;
+import javax.swing.JTextArea;
+import javax.swing.JTree;
+import javax.swing.tree.DefaultMutableTreeNode;
+
+import org.apache.poi.hpsf.Property;
+import org.apache.poi.hpsf.PropertySet;
+import org.apache.poi.hpsf.Section;
+import org.apache.poi.hpsf.SummaryInformation;
/**
* <p>Renders a {@link PropertySetDescriptor} by more or less dumping
@@ -148,7 +156,8 @@
for (Iterator i = sections.iterator(); i.hasNext();)
{
Section s = (Section) i.next();
- b.append(toString(s, "Section " + count++));
+ String d = toString(s, "Section " + count++);
+ b.append(d);
}
return b.toString();
}
@@ -184,8 +193,10 @@
b.append(' ');
b.append("0x" + Codec.hexEncode(b2, 4, b2.length - 4));
}
- else
+ else if (value != null)
b.append(value.toString());
+ else
+ b.append("null");
}
return b.toString();
}