|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.Component
org.apache.wicket.MarkupContainer
org.apache.wicket.markup.html.WebMarkupContainer
org.apache.wicket.markup.html.panel.Panel
org.apache.wicket.extensions.markup.html.repeater.tree.content.StyledLinkLabel<T>
public abstract class StyledLinkLabel<T>
A styled link with a label.
newLinkComponent(String, IModel)
,
getStyleClass()
,
Serialized FormField 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 | |
---|---|
StyledLinkLabel(String id,
IModel<T> model)
|
Method Summary | |
---|---|
IModel<T> |
getModel()
|
T |
getModelObject()
|
protected abstract String |
getStyleClass()
Get a style class for the link. |
protected boolean |
isClickable()
Clicking is disabled by default, override this method if you want your link to be enabled. |
protected Component |
newLabelComponent(String id,
IModel<T> model)
Hook method to create a new label component. |
protected IModel<?> |
newLabelModel(IModel<T> model)
Create the model for the label, defaults to the model itself. |
protected MarkupContainer |
newLinkComponent(String id,
IModel<T> model)
Hook method to create a new link component. |
protected void |
onClick(AjaxRequestTarget target)
Hook method to be notified of a click on the link. |
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, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onComponentTagBody, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, 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 StyledLinkLabel(String id, IModel<T> model)
Method Detail |
---|
public IModel<T> getModel()
public T getModelObject()
protected MarkupContainer newLinkComponent(String id, IModel<T> model)
AjaxFallbackLink
which invokes
onClick(AjaxRequestTarget)
only if isClickable()
returns true
.
isClickable()
,
onClick(AjaxRequestTarget)
protected Component newLabelComponent(String id, IModel<T> model)
id
- model
-
newLabelModel(IModel)
protected IModel<?> newLabelModel(IModel<T> model)
model
-
protected abstract String getStyleClass()
protected boolean isClickable()
newLinkComponent(String, IModel)
,
isClickable()
protected void onClick(AjaxRequestTarget target)
target
- newLinkComponent(String, IModel)
,
isClickable()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |