public abstract class FormField extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Integer |
intrinsicHeight |
protected Integer |
intrinsicWidth |
| Constructor and Description |
|---|
FormField(Element e,
XhtmlForm form,
LayoutContext context,
BlockBox box) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyComponentStyle(JComponent comp) |
protected void |
applyOriginalState() |
abstract JComponent |
create() |
protected String |
getAttribute(String attributeName) |
BlockBox |
getBox() |
JComponent |
getComponent() |
LayoutContext |
getContext() |
protected Element |
getElement() |
protected abstract String[] |
getFieldValues() |
Font |
getFont() |
String[] |
getFormDataStrings() |
Dimension |
getIntrinsicSize() |
protected static Integer |
getLengthValue(CalculatedStyle style,
CSSName cssName) |
protected FormFieldState |
getOriginalState() |
XhtmlForm |
getParentForm() |
CalculatedStyle |
getStyle() |
protected UserAgentCallback |
getUserAgentCallback() |
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.
|
protected FormFieldState |
loadOriginalState() |
void |
reset() |
protected Integer intrinsicWidth
protected Integer intrinsicHeight
public FormField(Element e, XhtmlForm form, LayoutContext context, BlockBox box)
protected Element getElement()
public JComponent getComponent()
public XhtmlForm getParentForm()
public Dimension getIntrinsicSize()
public void reset()
protected UserAgentCallback getUserAgentCallback()
protected FormFieldState getOriginalState()
protected boolean hasAttribute(String attributeName)
public abstract JComponent create()
protected FormFieldState loadOriginalState()
protected void applyOriginalState()
public boolean includeInSubmission(JComponent source)
source - The JComponent that caused the submissionpublic String[] getFormDataStrings()
protected abstract String[] getFieldValues()
public BlockBox getBox()
public LayoutContext getContext()
public CalculatedStyle getStyle()
protected void applyComponentStyle(JComponent comp)
public Font getFont()
protected static Integer getLengthValue(CalculatedStyle style, CSSName cssName)
Copyright © 2020. All rights reserved.