Class FormField
java.lang.Object
org.xhtmlrenderer.simple.extend.form.FormField
- Direct Known Subclasses:
InputField
,SelectField
,TextAreaField
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate JComponent
private final Element
private FormFieldState
private final XhtmlForm
private final BlockBox
private final LayoutContext
protected Integer
protected Integer
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
FormField
(Element e, XhtmlForm form, LayoutContext context, BlockBox box) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
abstract @Nullable JComponent
create()
protected String
getAttribute
(String attributeName) getBox()
protected Element
protected abstract String[]
getFont()
protected static Integer
getLengthValue
(CalculatedStyle style, CSSName cssName) protected FormFieldState
getStyle()
protected UserAgentCallback
protected boolean
hasAttribute
(String attributeName) boolean
includeInSubmission
(JComponent source) Returns true if the value of the current FormField should be sent along with the current submission.private void
protected FormFieldState
void
reset()
private static Color
-
Field Details
-
_parentForm
-
_element
-
_originalState
-
_component
-
context
-
box
-
intrinsicWidth
-
intrinsicHeight
-
-
Constructor Details
-
FormField
-
-
Method Details
-
getElement
-
getComponent
-
getParentForm
-
getIntrinsicSize
-
reset
public void reset() -
getUserAgentCallback
-
getOriginalState
-
hasAttribute
-
getAttribute
-
initialize
private void initialize() -
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
-
toColor
-
getFont
-
getLengthValue
-