Class FormField
java.lang.Object
com.openhtmltopdf.simple.extend.form.FormField
- Direct Known Subclasses:
InputField
public abstract class FormField extends Object
-
Field Summary
Fields Modifier and Type Field Description protected IntegerintrinsicHeightprotected IntegerintrinsicWidth -
Constructor Summary
Constructors Constructor Description FormField(Element e, XhtmlForm form, LayoutContext context, BlockBox box) -
Method Summary
Modifier and Type Method Description protected voidapplyComponentStyle(JComponent comp)protected voidapplyOriginalState()abstract JComponentcreate()protected StringgetAttribute(String attributeName)BlockBoxgetBox()JComponentgetComponent()LayoutContextgetContext()protected ElementgetElement()protected abstract String[]getFieldValues()FontgetFont()String[]getFormDataStrings()DimensiongetIntrinsicSize()protected static IntegergetLengthValue(CalculatedStyle style, CSSName cssName)protected FormFieldStategetOriginalState()XhtmlFormgetParentForm()CalculatedStylegetStyle()protected UserAgentCallbackgetUserAgentCallback()protected booleanhasAttribute(String attributeName)booleanincludeInSubmission(JComponent source)Returns true if the value of the current FormField should be sent along with the current submission.protected FormFieldStateloadOriginalState()voidreset()
-
Field Details
-
Constructor Details
-
Method Details
-
getElement
-
getComponent
-
getParentForm
-
getIntrinsicSize
-
reset
public void reset() -
getUserAgentCallback
-
getOriginalState
-
hasAttribute
-
getAttribute
-
create
-
loadOriginalState
-
applyOriginalState
protected void applyOriginalState() -
includeInSubmission
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
-
getFieldValues
-
getBox
-
getContext
-
getStyle
-
applyComponentStyle
-
getFont
-
getLengthValue
-