org.xhtmlrenderer.simple.extend.form
Class FormField

java.lang.Object
  extended by org.xhtmlrenderer.simple.extend.form.FormField
Direct Known Subclasses:
InputField

public abstract class FormField
extends java.lang.Object


Field Summary
protected  java.lang.Integer intrinsicHeight
           
protected  java.lang.Integer intrinsicWidth
           
 
Constructor Summary
FormField(org.w3c.dom.Element e, XhtmlForm form, LayoutContext context, BlockBox box)
           
 
Method Summary
protected  void applyComponentStyle(javax.swing.JComponent comp)
           
protected  void applyOriginalState()
           
abstract  javax.swing.JComponent create()
           
protected  java.lang.String getAttribute(java.lang.String attributeName)
           
 BlockBox getBox()
           
 javax.swing.JComponent getComponent()
           
 LayoutContext getContext()
           
protected  org.w3c.dom.Element getElement()
           
protected abstract  java.lang.String[] getFieldValues()
           
 java.awt.Font getFont()
           
 java.lang.String[] getFormDataStrings()
           
 java.awt.Dimension getIntrinsicSize()
           
protected static java.lang.Integer getLengthValue(CalculatedStyle style, CSSName cssName)
           
protected  FormFieldState getOriginalState()
           
 XhtmlForm getParentForm()
           
 CalculatedStyle getStyle()
           
protected  UserAgentCallback getUserAgentCallback()
           
protected  boolean hasAttribute(java.lang.String attributeName)
           
 boolean includeInSubmission(javax.swing.JComponent source)
          Returns true if the value of the current FormField should be sent along with the current submission.
protected  FormFieldState loadOriginalState()
           
 void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

intrinsicWidth

protected java.lang.Integer intrinsicWidth

intrinsicHeight

protected java.lang.Integer intrinsicHeight
Constructor Detail

FormField

public FormField(org.w3c.dom.Element e,
                 XhtmlForm form,
                 LayoutContext context,
                 BlockBox box)
Method Detail

getElement

protected org.w3c.dom.Element getElement()

getComponent

public javax.swing.JComponent getComponent()

getParentForm

public XhtmlForm getParentForm()

getIntrinsicSize

public java.awt.Dimension getIntrinsicSize()

reset

public void reset()

getUserAgentCallback

protected UserAgentCallback getUserAgentCallback()

getOriginalState

protected FormFieldState getOriginalState()

hasAttribute

protected boolean hasAttribute(java.lang.String attributeName)

getAttribute

protected java.lang.String getAttribute(java.lang.String attributeName)

create

public abstract javax.swing.JComponent create()

loadOriginalState

protected FormFieldState loadOriginalState()

applyOriginalState

protected void applyOriginalState()

includeInSubmission

public boolean includeInSubmission(javax.swing.JComponent source)
Returns true if the value of the current FormField should be sent along with the current submission. This is used so that only the value of the submit button that is used to trigger the form's submission is sent.

Parameters:
source - The JComponent that caused the submission
Returns:
true if it should

getFormDataStrings

public java.lang.String[] getFormDataStrings()

getFieldValues

protected abstract java.lang.String[] getFieldValues()

getBox

public BlockBox getBox()

getContext

public LayoutContext getContext()

getStyle

public CalculatedStyle getStyle()

applyComponentStyle

protected void applyComponentStyle(javax.swing.JComponent comp)

getFont

public java.awt.Font getFont()

getLengthValue

protected static java.lang.Integer getLengthValue(CalculatedStyle style,
                                                  CSSName cssName)


Copyright © 2014. All Rights Reserved.