org.apache.commons.jelly.tags.swing
Class EtchedBorderTag
java.lang.Object
org.apache.commons.jelly.TagSupport
org.apache.commons.jelly.tags.swing.BorderTagSupport
org.apache.commons.jelly.tags.swing.EtchedBorderTag
- All Implemented Interfaces:
- org.apache.commons.jelly.Tag
- public class EtchedBorderTag
- extends BorderTagSupport
Creates an etched border.
The border will either be exported as a variable defined by the 'var' attribute
or will be set on the parent widget's border property
- Version:
- $Revision: 155420 $
- Author:
- Robert McIntosh
Field Summary |
private int |
etchType
|
private java.awt.Color |
highlight
|
private static org.apache.commons.logging.Log |
log
The Log to which logging calls will be made. |
private java.awt.Color |
shadow
|
Fields inherited from class org.apache.commons.jelly.tags.swing.BorderTagSupport |
|
Fields inherited from class org.apache.commons.jelly.TagSupport |
body, context, hasTrimmed, parent, shouldTrim |
Method Summary |
protected javax.swing.border.Border |
createBorder()
Factory method to create a new EtchedBorder instance. |
void |
doTag(org.apache.commons.jelly.XMLOutput output)
|
void |
setEtchType(int type)
Sets the etch type. |
void |
setHighlight(java.awt.Color highlight)
Sets the highlight color |
void |
setTop(java.awt.Color shadow)
Sets the shadow color |
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 |
log
private static final org.apache.commons.logging.Log log
- The Log to which logging calls will be made.
etchType
private int etchType
highlight
private java.awt.Color highlight
shadow
private java.awt.Color shadow
EtchedBorderTag
public EtchedBorderTag()
doTag
public void doTag(org.apache.commons.jelly.XMLOutput output)
throws org.apache.commons.jelly.MissingAttributeException,
org.apache.commons.jelly.JellyTagException
- Specified by:
doTag
in interface org.apache.commons.jelly.Tag
- Overrides:
doTag
in class BorderTagSupport
- Throws:
org.apache.commons.jelly.MissingAttributeException
org.apache.commons.jelly.JellyTagException
setEtchType
public void setEtchType(int type)
- Sets the etch type. Must be either EtchedBorder.LOWERED or EtchedBorder.RAISED
- Parameters:
type
-
setHighlight
public void setHighlight(java.awt.Color highlight)
- Sets the highlight color
- Parameters:
highlight
-
setTop
public void setTop(java.awt.Color shadow)
- Sets the shadow color
- Parameters:
shadow
-
createBorder
protected javax.swing.border.Border createBorder()
- Factory method to create a new EtchedBorder instance.
- Specified by:
createBorder
in class BorderTagSupport