public abstract class FormField extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected Integer |
intrinsicHeight |
protected Integer |
intrinsicWidth |
| 构造器和说明 |
|---|
FormField(Element e,
XhtmlForm form,
LayoutContext context,
BlockBox box) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 © 2019. All Rights Reserved.