|
||||||||||
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.AjaxEditableMultiLineLabel<T>
T
- Model object typepublic class AjaxEditableMultiLineLabel<T>
An inplace editor much like AjaxEditableLabel
, but now with support for multi line
content and a text area
as its editor.
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 | |
---|---|
AjaxEditableMultiLineLabel(String id)
Construct. |
|
AjaxEditableMultiLineLabel(String id,
IModel<T> model)
Construct. |
Method Summary | |
---|---|
protected String |
defaultNullLabel()
Override this to display a different value when the model object is null. |
int |
getCols()
Gets text area's number of columns. |
protected String |
getLabelAjaxEvent()
By default this returns "onclick" uses can overwrite this on which event the label behavior should be triggered |
int |
getRows()
Gets text area's number of rows. |
protected FormComponent<T> |
newEditor(MarkupContainer parent,
String componentId,
IModel<T> model)
Create a new form component instance to serve as editor. |
protected MultiLineLabel |
newLabel(MarkupContainer parent,
String componentId,
IModel<T> model)
Create a new form component instance to serve as label. |
protected void |
onModelChanged()
Dummy override to fix WICKET-1239 |
protected void |
onModelChanging()
Dummy override to fix WICKET-1239 |
void |
setCols(int cols)
Sets text area's number of columns. |
void |
setRows(int rows)
Sets text area's number of rows. |
Methods inherited from class org.apache.wicket.extensions.ajax.markup.html.AjaxEditableLabel |
---|
add, getConverter, getEditor, getLabel, 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 AjaxEditableMultiLineLabel(String id)
id
- The component idpublic AjaxEditableMultiLineLabel(String id, IModel<T> model)
id
- The component idmodel
- The modelMethod Detail |
---|
protected MultiLineLabel 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 String getLabelAjaxEvent()
getLabelAjaxEvent
in class AjaxEditableLabel<T>
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)
public final int getCols()
public final void setCols(int cols)
cols
- text area's number of columnspublic final int getRows()
public final void setRows(int rows)
rows
- text area's number of rowsprotected String defaultNullLabel()
...
defaultNullLabel
in class AjaxEditableLabel<T>
protected void onModelChanged()
AjaxEditableLabel
onModelChanged
in class AjaxEditableLabel<T>
Component.onModelChanged()
protected void onModelChanging()
AjaxEditableLabel
onModelChanging
in class AjaxEditableLabel<T>
Component.onModelChanging()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |