|
||||||||||
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.markup.html.WebComponent org.apache.wicket.markup.html.basic.MultiLineLabel
public class MultiLineLabel
A MultiLineLabel component replaces its body with the model object.
Unlike Label
, MultiLineLabel
shows text that spans multiple lines by inserting
line breaks (BR
tags) for newlines and paragraph markers (P
tags) for
sequences of more than one newline.
Field Summary |
---|
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 | |
---|---|
MultiLineLabel(String id)
Constructor. |
|
MultiLineLabel(String id,
IModel<?> model)
|
|
MultiLineLabel(String id,
String label)
Convenience constructor. |
Method Summary | |
---|---|
protected void |
onComponentTag(ComponentTag tag)
Processes the component tag. |
void |
onComponentTagBody(MarkupStream markupStream,
ComponentTag openTag)
Processes the body. |
Methods inherited from class org.apache.wicket.markup.html.WebComponent |
---|
onRender |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MultiLineLabel(String id)
id
- See ComponentLabel.Label(String)
public MultiLineLabel(String id, String label)
id
- See Componentlabel
- The label textComponent.Component(String, IModel)
public MultiLineLabel(String id, IModel<?> model)
Component.Component(String, IModel)
Method Detail |
---|
public void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag)
Component
onComponentTagBody
in class Component
markupStream
- The markup streamopenTag
- The open tag for the bodyprotected void onComponentTag(ComponentTag tag)
Component
onComponentTag
in class Component
tag
- Tag to modify
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |