Class SelectField
java.lang.Object
org.xhtmlrenderer.simple.extend.form.FormField
org.xhtmlrenderer.simple.extend.form.SelectField
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
Renderer for ordinary items and headings in a List.private static class
Helper class that makes headings inside a list unselectableprivate static final record
Provides a simple container for name/value data, such as that used by the <option> elements in a <select> list. -
Field Summary
Fields inherited from class org.xhtmlrenderer.simple.extend.form.FormField
intrinsicHeight, intrinsicWidth
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addChildren
(List<SelectField.NameValuePair> list, Element e, int indent) protected void
create()
private List<SelectField.NameValuePair>
protected String[]
protected FormFieldState
private boolean
Methods inherited from class org.xhtmlrenderer.simple.extend.form.FormField
applyComponentStyle, getAttribute, getBox, getComponent, getContext, getElement, getFont, getFormDataStrings, getIntrinsicSize, getLengthValue, getOriginalState, getParentForm, getStyle, getUserAgentCallback, hasAttribute, includeInSubmission, reset
-
Constructor Details
-
SelectField
SelectField(Element e, XhtmlForm form, LayoutContext context, BlockBox box)
-
-
Method Details
-
create
-
loadOriginalState
- Overrides:
loadOriginalState
in classFormField
-
applyOriginalState
protected void applyOriginalState()- Overrides:
applyOriginalState
in classFormField
-
getFieldValues
- Specified by:
getFieldValues
in classFormField
-
createList
-
addChildren
-
shouldRenderAsList
private boolean shouldRenderAsList()
-