|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.jelly.TagSupport org.apache.commons.jelly.tags.swt.FontTag
Class to create a Font
instance within Jelly SWT.
Field Summary |
Fields inherited from class org.apache.commons.jelly.TagSupport |
body, context, hasTrimmed, parent, shouldTrim |
Constructor Summary | |
FontTag()
|
Method Summary | |
void |
doTag(org.apache.commons.jelly.XMLOutput output)
Creates a Font instance as defined by the type, size and style
attributes, and stores this Font instance in the Context so that
it can be referenced in the Jelly script. |
org.eclipse.swt.widgets.Widget |
getParentWidget()
|
int |
getSize()
Obtain the Font size |
java.lang.String |
getStyle()
Obtain the style of this Font |
java.lang.String |
getType()
Obtain the Font type name |
java.lang.String |
getVar()
Obtain the variable name. |
void |
setSize(int size)
Set the size of this Font |
void |
setStyle(java.lang.String style)
Set the style of this Font (eg. bold, normal, italics) |
void |
setType(java.lang.String type)
Set the type of this Font |
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 |
public FontTag()
Method Detail |
public void setType(java.lang.String type)
Font
type
- Font
type namepublic java.lang.String getType()
Font
type name
Font
type namepublic void setSize(int size)
Font
size
- Font
sizepublic int getSize()
Font
size
Font
sizepublic void setStyle(java.lang.String style)
Font
(eg. bold, normal, italics)
style
- the style of this Font
public java.lang.String getStyle()
Font
Font
public void setVar(java.lang.String var)
var
- the variable name of this Font
instancepublic java.lang.String getVar()
Font
instancepublic org.eclipse.swt.widgets.Widget getParentWidget()
Device
referencepublic void doTag(org.apache.commons.jelly.XMLOutput output) throws org.apache.commons.jelly.JellyTagException
Font
instance as defined by the type, size and style
attributes, and stores this Font
instance in the Context so that
it can be referenced in the Jelly script.
output
- XMLOutput
reference
org.apache.commons.jelly.JellyTagException
- if an error occursTag.doTag(org.apache.commons.jelly.XMLOutput)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |