|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.Component org.apache.wicket.MarkupContainer org.apache.wicket.markup.html.WebMarkupContainer org.apache.wicket.markup.html.WebMarkupContainerWithAssociatedMarkup org.apache.wicket.markup.html.panel.Panel org.apache.wicket.extensions.ajax.markup.html.AjaxEditableLabel<T> org.apache.wicket.extensions.ajax.markup.html.AjaxEditableChoiceLabel<T>
T
- public class AjaxEditableChoiceLabel<T>
An inplace editor much like AjaxEditableLabel
, but instead of a TextField
a
DropDownChoice
is displayed.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.wicket.extensions.ajax.markup.html.AjaxEditableLabel |
---|
AjaxEditableLabel.EditorAjaxBehavior, AjaxEditableLabel.LabelAjaxBehavior |
Nested classes/interfaces inherited from class org.apache.wicket.Component |
---|
Component.ComponentModelChange, Component.EnabledChange, Component.IVisitor<T extends Component>, Component.VisibilityChange |
Field Summary |
---|
Fields inherited from class org.apache.wicket.Component |
---|
ENABLE, FLAG_CONFIGURED, FLAG_INITIALIZED, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED6, FLAG_RESERVED7, FLAG_RESERVED8, PATH_SEPARATOR, RENDER |
Constructor Summary | |
---|---|
AjaxEditableChoiceLabel(String id)
Construct. |
|
AjaxEditableChoiceLabel(String id,
IModel<T> model)
Construct. |
|
AjaxEditableChoiceLabel(String id,
IModel<T> model,
IModel<? extends List<? extends T>> choices)
Construct. |
|
AjaxEditableChoiceLabel(String id,
IModel<T> model,
IModel<? extends List<? extends T>> choices,
IChoiceRenderer<T> renderer)
Construct. |
|
AjaxEditableChoiceLabel(String id,
IModel<T> model,
List<? extends T> choices)
Construct. |
|
AjaxEditableChoiceLabel(String id,
IModel<T> model,
List<? extends T> choices,
IChoiceRenderer<T> renderer)
Construct. |
|
AjaxEditableChoiceLabel(String id,
List<? extends T> choices)
Construct. |
Method Summary | |
---|---|
protected FormComponent<T> |
newEditor(MarkupContainer parent,
String componentId,
IModel<T> model)
Create a new form component instance to serve as editor. |
protected WebComponent |
newLabel(MarkupContainer parent,
String componentId,
IModel<T> model)
Create a new form component instance to serve as label. |
protected void |
onDetach()
Called to allow a component to detach resources after use. |
protected void |
onModelChanged()
Dummy override to fix WICKET-1239 |
protected void |
onModelChanging()
Dummy override to fix WICKET-1239 |
Methods inherited from class org.apache.wicket.extensions.ajax.markup.html.AjaxEditableLabel |
---|
add, defaultNullLabel, getConverter, getEditor, getLabel, getLabelAjaxEvent, onBeforeRender, onCancel, onEdit, onError, onSubmit, setDefaultModel, setLabel, setRequired, setType |
Methods inherited from class org.apache.wicket.markup.html.panel.Panel |
---|
onComponentTag, onComponentTagBody, renderHead |
Methods inherited from class org.apache.wicket.markup.html.WebMarkupContainerWithAssociatedMarkup |
---|
newHeaderPartContainer, renderHeadFromAssociatedMarkupFile |
Methods inherited from class org.apache.wicket.markup.html.WebMarkupContainer |
---|
getMarkupType, getWebPage, getWebRequest |
Methods inherited from class org.apache.wicket.MarkupContainer |
---|
add, addOrReplace, autoAdd, autoAdd, contains, findMarkupStream, get, get, getAssociatedMarkupStream, getMarkupStream, hasAssociatedMarkup, internalAdd, isTransparentResolver, iterator, iterator, newMarkupResourceStream, onAfterRenderChildren, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderComponentTagBody, renderNext, replace, setMarkupStream, size, swap, toString, toString, visitChildren, visitChildren |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AjaxEditableChoiceLabel(String id)
id
- The component idpublic AjaxEditableChoiceLabel(String id, IModel<T> model)
id
- The component idmodel
- The modelpublic AjaxEditableChoiceLabel(String id, List<? extends T> choices)
id
- The component idchoices
- The collection of choices in the dropdownpublic AjaxEditableChoiceLabel(String id, IModel<T> model, IModel<? extends List<? extends T>> choices)
id
- The component idmodel
- The modelchoices
- The collection of choices in the dropdownpublic AjaxEditableChoiceLabel(String id, IModel<T> model, IModel<? extends List<? extends T>> choices, IChoiceRenderer<T> renderer)
id
- The component idmodel
- The modelchoices
- The collection of choices in the dropdownrenderer
- The rendering enginepublic AjaxEditableChoiceLabel(String id, IModel<T> model, List<? extends T> choices)
id
- The component idmodel
- The modelchoices
- The collection of choices in the dropdownpublic AjaxEditableChoiceLabel(String id, IModel<T> model, List<? extends T> choices, IChoiceRenderer<T> renderer)
id
- The component idmodel
- The modelchoices
- The collection of choices in the dropdownrenderer
- The rendering engineMethod Detail |
---|
protected FormComponent<T> newEditor(MarkupContainer parent, String componentId, IModel<T> model)
AjaxEditableLabel
newEditor
in class AjaxEditableLabel<T>
parent
- The parent componentcomponentId
- Id that should be used by the componentmodel
- The model
AjaxEditableLabel.newEditor(org.apache.wicket.MarkupContainer,
java.lang.String, org.apache.wicket.model.IModel)
protected WebComponent newLabel(MarkupContainer parent, String componentId, IModel<T> model)
AjaxEditableLabel
newLabel
in class AjaxEditableLabel<T>
parent
- The parent componentcomponentId
- Id that should be used by the componentmodel
- The model
AjaxEditableLabel.newLabel(org.apache.wicket.MarkupContainer,
java.lang.String, org.apache.wicket.model.IModel)
protected void onModelChanged()
AjaxEditableLabel
onModelChanged
in class AjaxEditableLabel<T>
AjaxEditableLabel.onModelChanged()
protected void onModelChanging()
AjaxEditableLabel
onModelChanging
in class AjaxEditableLabel<T>
AjaxEditableLabel.onModelChanging()
protected void onDetach()
Component
onDetach
in class Component
Component.onDetach()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |