org.apache.commons.jelly.tags.swt
Class GCTag

java.lang.Object
  extended byorg.apache.commons.jelly.TagSupport
      extended byorg.apache.commons.jelly.tags.swt.GCTag
All Implemented Interfaces:
org.apache.commons.jelly.Tag

public class GCTag
extends org.apache.commons.jelly.TagSupport

Class to create a GC instance within Jelly SWT.

Version:
CVS $Id: GCTag.java 155420 2005-02-26 13:06:03Z dirkv $
Author:
Marcus Crafter

Field Summary
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
GCTag()
           
 
Method Summary
 void doTag(org.apache.commons.jelly.XMLOutput output)
          Creates a GC instance and stores it in the Context under a particular variable name.
 org.eclipse.swt.graphics.Drawable getDrawable()
          Obtain the Drawable name for this GC.
 java.lang.String getVar()
          Obtain the variable name.
 void setDrawable(org.eclipse.swt.graphics.Drawable drawable)
          Set the Drawable name for this GC.
 void setVar(java.lang.String var)
          Sets the variable name.
 
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
 

Constructor Detail

GCTag

public GCTag()
Method Detail

getDrawable

public org.eclipse.swt.graphics.Drawable getDrawable()
Obtain the Drawable name for this GC.

Returns:
a GC Drawable

setDrawable

public void setDrawable(org.eclipse.swt.graphics.Drawable drawable)
Set the Drawable name for this GC.

Parameters:
drawable - a GC Drawable

setVar

public void setVar(java.lang.String var)
Sets the variable name.

Parameters:
var - the variable name of this GC instance

getVar

public java.lang.String getVar()
Obtain the variable name.

Returns:
the variable name of this GC instance

doTag

public void doTag(org.apache.commons.jelly.XMLOutput output)
           throws org.apache.commons.jelly.JellyTagException
Creates a GC instance and stores it in the Context under a particular variable name. Note, GC objects can only be created on Drawable objects.

Parameters:
output - XMLOutput reference
Throws:
org.apache.commons.jelly.JellyTagException - if an error occurs
See Also:
Tag.doTag(org.apache.commons.jelly.XMLOutput)


Copyright © 2002-2006 Apache Software Foundation. All Rights Reserved.