org.apache.commons.jelly.tags.swing
Class EmptyBorderTag

java.lang.Object
  extended byorg.apache.commons.jelly.TagSupport
      extended byorg.apache.commons.jelly.tags.swing.BorderTagSupport
          extended byorg.apache.commons.jelly.tags.swing.EmptyBorderTag
All Implemented Interfaces:
org.apache.commons.jelly.Tag

public class EmptyBorderTag
extends BorderTagSupport

Creates an empty 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
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
EmptyBorderTag()
           
 
Method Summary
protected  javax.swing.border.Border createBorder()
          Factory method to create a new EmptyBorder instance.
 void doTag(org.apache.commons.jelly.XMLOutput output)
           
 void setBottom(int bottom)
          Sets the bottom inset
 void setLeft(int left)
          Sets the left inset
 void setRight(int right)
          Sets the right inset
 void setTop(int top)
          Sets the top inset
 
Methods inherited from class org.apache.commons.jelly.tags.swing.BorderTagSupport
setVar
 
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

EmptyBorderTag

public EmptyBorderTag()
Method Detail

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

setLeft

public void setLeft(int left)
Sets the left inset

Parameters:
left -

setRight

public void setRight(int right)
Sets the right inset

Parameters:
right -

setTop

public void setTop(int top)
Sets the top inset

Parameters:
top -

setBottom

public void setBottom(int bottom)
Sets the bottom inset

Parameters:
bottom -

createBorder

protected javax.swing.border.Border createBorder()
Factory method to create a new EmptyBorder instance.

Specified by:
createBorder in class BorderTagSupport


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