You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by js...@apache.org on 2003/02/20 19:07:18 UTC

cvs commit: jakarta-commons/jelly/jelly-tags/swt/src/java/org/apache/commons/jelly/tags/swt ImageTag.java

jstrachan    2003/02/20 10:07:18

  Modified:    jelly/jelly-tags/swt/src/java/org/apache/commons/jelly/tags/swt
                        ImageTag.java
  Log:
  added patch supplied by Christiaan ten Klooster to support images
  
  http://jira.werken.com/secure/ViewIssue.jspa?key=JELLY-33
  
  Revision  Changes    Path
  1.2       +5 -1      jakarta-commons/jelly/jelly-tags/swt/src/java/org/apache/commons/jelly/tags/swt/ImageTag.java
  
  Index: ImageTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/jelly/jelly-tags/swt/src/java/org/apache/commons/jelly/tags/swt/ImageTag.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ImageTag.java	7 Feb 2003 12:53:55 -0000	1.1
  +++ ImageTag.java	20 Feb 2003 18:07:18 -0000	1.2
  @@ -59,9 +59,9 @@
   import org.apache.commons.jelly.JellyTagException;
   import org.apache.commons.jelly.TagSupport;
   import org.apache.commons.jelly.XMLOutput;
  -
   import org.eclipse.swt.graphics.Image;
   import org.eclipse.swt.widgets.Button;
  +import org.eclipse.swt.widgets.Decorations;
   import org.eclipse.swt.widgets.Item;
   import org.eclipse.swt.widgets.Label;
   import org.eclipse.swt.widgets.Widget;
  @@ -134,6 +134,10 @@
   			
   		} else if (parent instanceof Item) {
   			Item item = (Item) parent;
  +			item.setImage(image);
  +			
  +		} else if (parent instanceof Decorations) {
  +			Decorations item = (Decorations) parent;
   			item.setImage(image);
   			
   		} else {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org