|
||||||||||
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.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 |
Field Summary |
---|
Fields inherited from class org.apache.wicket.markup.html.panel.Panel |
---|
PANEL |
Fields inherited from class org.apache.wicket.Component |
---|
ENABLE, FLAG_INITIALIZED, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER |
Constructor Summary | |
---|---|
AjaxEditableChoiceLabel(java.lang.String id)
Construct. |
|
AjaxEditableChoiceLabel(java.lang.String id,
IModel<T> model)
Construct. |
|
AjaxEditableChoiceLabel(java.lang.String id,
IModel<T> model,
IModel<? extends java.util.List<? extends T>> choices)
Construct. |
|
AjaxEditableChoiceLabel(java.lang.String id,
IModel<T> model,
IModel<? extends java.util.List<? extends T>> choices,
IChoiceRenderer<T> renderer)
Construct. |
|
AjaxEditableChoiceLabel(java.lang.String id,
IModel<T> model,
java.util.List<? extends T> choices)
Construct. |
|
AjaxEditableChoiceLabel(java.lang.String id,
IModel<T> model,
java.util.List<? extends T> choices,
IChoiceRenderer<T> renderer)
Construct. |
|
AjaxEditableChoiceLabel(java.lang.String id,
java.util.List<? extends T> choices)
Construct. |
Method Summary | |
---|---|
protected FormComponent<T> |
newEditor(MarkupContainer parent,
java.lang.String componentId,
IModel<T> model)
Create a new form component instance to serve as editor. |
protected WebComponent |
newLabel(MarkupContainer parent,
java.lang.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 |
---|
newMarkupSourcingStrategy |
Methods inherited from class org.apache.wicket.markup.html.WebMarkupContainer |
---|
getWebPage, getWebRequest |
Methods inherited from class org.apache.wicket.MarkupContainer |
---|
add, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, hasAssociatedMarkup, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onComponentTagBody, onMarkupAttached, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildren |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AjaxEditableChoiceLabel(java.lang.String id)
id
- The component idpublic AjaxEditableChoiceLabel(java.lang.String id, IModel<T> model)
id
- The component idmodel
- The modelpublic AjaxEditableChoiceLabel(java.lang.String id, java.util.List<? extends T> choices)
id
- The component idchoices
- The collection of choices in the dropdownpublic AjaxEditableChoiceLabel(java.lang.String id, IModel<T> model, IModel<? extends java.util.List<? extends T>> choices)
id
- The component idmodel
- The modelchoices
- The collection of choices in the dropdownpublic AjaxEditableChoiceLabel(java.lang.String id, IModel<T> model, IModel<? extends java.util.List<? extends T>> choices, IChoiceRenderer<T> renderer)
id
- The component idmodel
- The modelchoices
- The collection of choices in the dropdownrenderer
- The rendering enginepublic AjaxEditableChoiceLabel(java.lang.String id, IModel<T> model, java.util.List<? extends T> choices)
id
- The component idmodel
- The modelchoices
- The collection of choices in the dropdownpublic AjaxEditableChoiceLabel(java.lang.String id, IModel<T> model, java.util.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, java.lang.String componentId, IModel<T> model)
newEditor
in class AjaxEditableLabel<T>
parent
- The parent componentcomponentId
- Id that should be used by the componentmodel
- The model
protected WebComponent newLabel(MarkupContainer parent, java.lang.String componentId, IModel<T> model)
newLabel
in class AjaxEditableLabel<T>
parent
- The parent componentcomponentId
- Id that should be used by the componentmodel
- The model
protected void onModelChanged()
onModelChanged
in class AjaxEditableLabel<T>
protected void onModelChanging()
onModelChanging
in class AjaxEditableLabel<T>
protected void onDetach()
onDetach
in class Component
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |