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

java.lang.Object
  extended by org.apache.commons.jelly.TagSupport
      extended by org.apache.commons.jelly.DynaTagSupport
          extended by org.apache.commons.jelly.MapTagSupport
              extended by org.apache.commons.jelly.tags.core.UseBeanTag
                  extended by org.apache.commons.jelly.tags.swing.DialogTag
All Implemented Interfaces:
org.apache.commons.jelly.DynaTag, org.apache.commons.jelly.impl.BeanSource, org.apache.commons.jelly.Tag, ContainerTag

public class DialogTag
extends org.apache.commons.jelly.tags.core.UseBeanTag
implements ContainerTag

Creates a Swing Dialog. A JDialog needs to have it's owner set in the constructor, which is why this class is needed instead of just using a BeanFactory.

Version:
$Revision: 155420 $
Author:
Dave Pekarek Krohn

Field Summary
private static org.apache.commons.logging.Log log
          The Log to which logging calls will be made.
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
DialogTag()
           
 
Method Summary
 void addChild(java.awt.Component component, java.lang.Object constraints)
          Adds a component to the dialog.
protected  java.lang.Object newInstance(java.lang.Class theClass, java.util.Map attributes, org.apache.commons.jelly.XMLOutput output)
          Creates a JDialog.
 
Methods inherited from class org.apache.commons.jelly.tags.core.UseBeanTag
addIgnoreProperty, convertToClass, doTag, getBean, getDefaultClass, getIgnorePropertySet, isIgnoreUnknownProperties, loadClass, processBean, setBean, setBeanProperties, setIgnoreUnknownProperties, validateBeanProperties
 
Methods inherited from class org.apache.commons.jelly.MapTagSupport
createAttributes, getAttributes, setAttribute
 
Methods inherited from class org.apache.commons.jelly.DynaTagSupport
getAttributeType
 
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
 
Methods inherited from interface org.apache.commons.jelly.Tag
getBody, getContext, getParent, invokeBody, setBody, setContext, setParent
 

Field Detail

log

private static final org.apache.commons.logging.Log log
The Log to which logging calls will be made.

Constructor Detail

DialogTag

public DialogTag()
Method Detail

newInstance

protected java.lang.Object newInstance(java.lang.Class theClass,
                                       java.util.Map attributes,
                                       org.apache.commons.jelly.XMLOutput output)
                                throws org.apache.commons.jelly.JellyTagException
Creates a JDialog. The constructor used depends on the value of the owner attribute.

Overrides:
newInstance in class org.apache.commons.jelly.tags.core.UseBeanTag
Throws:
org.apache.commons.jelly.JellyTagException

addChild

public void addChild(java.awt.Component component,
                     java.lang.Object constraints)
Adds a component to the dialog.

Specified by:
addChild in interface ContainerTag