XFA4J

com.adobe.xfa.template.containers
Class Container

java.lang.Object
  extended by com.adobe.xfa.Obj
      extended by com.adobe.xfa.Node
          extended by com.adobe.xfa.Element
              extended by com.adobe.xfa.ProtoableNode
                  extended by com.adobe.xfa.template.containers.Container
Direct Known Subclasses:
Draw, Field, Subform

public class Container
extends ProtoableNode

A base class to represent all XFA objects that are containers.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.adobe.xfa.Node
Node.ChangeLogger
 
Field Summary
 
Fields inherited from class com.adobe.xfa.Node
CREATE_ALWAYS_NEW, CREATE_IF_NOT_EXIST, CREATE_MUST_NOT_EXIST, CREATE_REPLACE
 
Method Summary
 boolean isHeightGrowable()
          Returns whether or not this container's height is growable.
 boolean isWidthGrowable()
          Returns whether or not this container's width is growable.
 void setAttribute(Attribute attr, int eTag)
          Sets an attribute of this element.
 
Methods inherited from class com.adobe.xfa.ProtoableNode
reResolveProto
 
Methods inherited from class com.adobe.xfa.Element
appendChild, assignNode, getAttr, getAttribute, getElement, getFirstXFAChild, getFirstXMLChild, getInstalledLocale, getLastXMLChild, getModel, getName, getNodes, getNS, getNumAttrs, getPrefix, getText, getXFAChild, getXMLChild, isInstalledLocaleAmbient, loadXML, saveXML, setAttribute, setAttribute, setLocalName, setName, setNS, setQName
 
Methods inherited from class com.adobe.xfa.Node
checkAncestorPerms, checkDescendentPerms, checkPerms, cleanDirtyFlags, compareVersions, getData, getDynamicScriptProp, getNextXFASibling, getNextXMLSibling, getOwnerDocument, getPreviousXMLSibling, getSOMExpression, getXFAChildCount, getXFAParent, getXMLChildCount, getXMLParent, hasChanged, remove, resolveNode, resolveNode, resolveNodes, setNextXMLSibling, setPermsLock, setXMLParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isHeightGrowable

public boolean isHeightGrowable()
Returns whether or not this container's height is growable. If true, then the container is considered growable between range of [minH, maxH] or [0, infinity] when not specified.

Returns:
true if this containers height can grow, false otherwise

isWidthGrowable

public boolean isWidthGrowable()
Returns whether or not this container's width is growable. If true then the container is considered growable between range of [minH, maxH] or [0, infinity] when not specified.

Returns:
true if this containers height can grow, false otherwise

setAttribute

public void setAttribute(Attribute attr,
                         int eTag)
Sets an attribute of this element. This method treats the w/h attributes and their min/max counterparts as mutually exclusive - setting w/h will remove any min/max and vice versa.

In addition, there are clear rules to resolve conflicts:

  1. If h/w is specified, then the container is not growable and any min/max value is irrelevant.
  2. Otherwise the container is considered growable. Any min/max attribute that are specified will indicate the range of growableness. The default range is [0, infinity].

In terms of setting min/max values, this method will guard against setting min > max.

Overrides:
setAttribute in class ProtoableNode
Parameters:
attr - the attribute.
eTag - The XFA tag name of the attribute being set.
See Also:
ProtoableNode.setAttribute(Attribute, int), Container.isWidthGrowable(), Container.isHeightGrowable()

XFA4J

© 2005 Adobe Systems Incorporated. All Rights Reserved.