org.apache.commons.jelly.tags.swt
Class ImageTag
java.lang.Object
|
+--org.apache.commons.jelly.TagSupport
|
+--org.apache.commons.jelly.tags.swt.ImageTag
- All Implemented Interfaces:
- org.apache.commons.jelly.Tag
- public class ImageTag
- extends org.apache.commons.jelly.TagSupport
This creates an image on the parent Widget.
- Version:
- CVS ImageTag.java,v 1.5 2004/09/07 02:41:40 dion Exp
- Author:
- Christiaan ten Klooster
Fields inherited from class org.apache.commons.jelly.TagSupport |
body, context, hasTrimmed, parent, shouldTrim |
Method Summary |
void |
doTag(org.apache.commons.jelly.XMLOutput output)
|
org.eclipse.swt.widgets.Widget |
getParentWidget()
|
java.lang.String |
getResource()
Obtains the resource |
java.lang.String |
getSrc()
Method getSrc. |
java.lang.String |
getVar()
Obtain the variable name. |
void |
setResource(java.lang.String resource)
Sets the resource |
void |
setSrc(java.lang.String src)
Sets the src. |
void |
setVar(java.lang.String var)
Sets the variable name |
protected void |
setWidgetImage(org.eclipse.swt.widgets.Widget parent,
org.eclipse.swt.graphics.Image image)
Add image to a widget |
Methods inherited from class org.apache.commons.jelly.TagSupport |
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageTag
public ImageTag()
setResource
public void setResource(java.lang.String resource)
- Sets the resource
- Parameters:
resource
- image resource location
getResource
public java.lang.String getResource()
- Obtains the resource
- Returns:
- the image resource
setVar
public void setVar(java.lang.String var)
- Sets the variable name
getVar
public java.lang.String getVar()
- Obtain the variable name.
- Returns:
- String the variable name
setSrc
public void setSrc(java.lang.String src)
- Sets the src.
- Parameters:
src
- The src to set
getSrc
public java.lang.String getSrc()
- Method getSrc.
- Returns:
- String
getParentWidget
public org.eclipse.swt.widgets.Widget getParentWidget()
- Returns:
- the parent widget which this widget will be added to.
doTag
public void doTag(org.apache.commons.jelly.XMLOutput output)
throws org.apache.commons.jelly.JellyTagException
- Overrides:
doTag
in class org.apache.commons.jelly.TagSupport
- See Also:
Tag.doTag(org.apache.commons.jelly.XMLOutput)
setWidgetImage
protected void setWidgetImage(org.eclipse.swt.widgets.Widget parent,
org.eclipse.swt.graphics.Image image)
throws org.apache.commons.jelly.JellyTagException
- Add image to a widget
- Parameters:
parent
- image
- - Throws:
org.apache.commons.jelly.JellyTagException
-
Copyright © 2002-2004 Apache Software Foundation. All Rights Reserved.