|
||||||||||
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 org.apache.wicket.extensions.markup.html.basic.SmartLinkMultiLineLabel
public class SmartLinkMultiLineLabel
If you have email addresses or web URLs in the data that you are displaying, then you can automatically display those pieces of data as hyperlinks, you will not have to take any action to convert that data.
Email addresses will be wrapped with a <a href="mailto:xxx">xxx</a> tag, where "xxx" is the email address that was detected.
Web URLs will be wrapped with a <a href="xxx">xxx</a> tag, where "xxx" is the URL that was detected (it can be any valid URL type, http://, https://, ftp://, etc...)
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 | |
---|---|
SmartLinkMultiLineLabel(java.lang.String id,
IModel<java.lang.String> model)
Construct. |
|
SmartLinkMultiLineLabel(java.lang.String id,
java.lang.String label)
|
Method Summary | |
---|---|
protected ILinkParser |
getLinkParser()
Get the link parser. |
protected java.lang.CharSequence |
getSmartLink(java.lang.CharSequence text)
Get the text after parsing by the link parser. |
void |
onComponentTagBody(MarkupStream markupStream,
ComponentTag openTag)
Processes the body. |
Methods inherited from class org.apache.wicket.markup.html.basic.MultiLineLabel |
---|
onComponentTag |
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 SmartLinkMultiLineLabel(java.lang.String id, java.lang.String label)
MultiLineLabel.MultiLineLabel(String, String)
public SmartLinkMultiLineLabel(java.lang.String id, IModel<java.lang.String> model)
id
- The non-null id of this componentmodel
- The component's modelMethod Detail |
---|
public void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag)
onComponentTagBody
in class MultiLineLabel
markupStream
- The markup streamopenTag
- The open tag for the bodyprotected ILinkParser getLinkParser()
protected java.lang.CharSequence getSmartLink(java.lang.CharSequence text)
text
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |