org.apache.tapestry5.corelib.internal
Class HiddenFieldPositioner

java.lang.Object
  extended by org.apache.tapestry5.corelib.internal.HiddenFieldPositioner

public class HiddenFieldPositioner
extends Object

Used to position a hidden field (as part of a form-related component). Hidden fields are not allowed to go just anywhere, there are rules, dicatated by the (X)HTML schema, about where they are allowed. We use the MarkupWriterListener interface to monitor elements as they are started and ended to find a place to put content.


Constructor Summary
HiddenFieldPositioner(MarkupWriter writer, HiddenFieldLocationRules rules)
           
 
Method Summary
 Element getElement()
          Returns the hidden field element, which can have its attributes filled in.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HiddenFieldPositioner

public HiddenFieldPositioner(MarkupWriter writer,
                             HiddenFieldLocationRules rules)
Method Detail

getElement

public Element getElement()
Returns the hidden field element, which can have its attributes filled in.

Returns:
the element
Throws:
IllegalStateException - if the element was not placed.


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