Module wicket.bootstrap.core
Class IconBehavior
java.lang.Object
org.apache.wicket.behavior.Behavior
de.agilecoders.wicket.core.markup.html.bootstrap.image.IconBehavior
- All Implemented Interfaces:
Serializable,IComponentAwareEventSink,IComponentAwareHeaderContributor,IClusterable
An Icon component displays a non localizable image (icon) resource.
- Author:
- miha
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIconBehavior(IconType type) Construct.IconBehavior(IModel<IconType> type) Construct. -
Method Summary
Modifier and TypeMethodDescriptionvoidfinal booleanvoidonComponentTag(Component component, ComponentTag tag) voidonConfigure(Component component) final IconBehaviorsets a new icon typefinal IconTypetype()Methods inherited from class org.apache.wicket.behavior.Behavior
afterRender, beforeRender, bind, canCallListener, getStatelessHint, isEnabled, isTemporary, onAttribute, onEvent, onException, onRemove, onTag, renderHead, unbind
-
Constructor Details
-
IconBehavior
Construct.- Parameters:
type- The type of the icon, e.g. Search, Home, User,...
-
IconBehavior
Construct.- Parameters:
type- The type of the icon, e.g. Search, Home, User,...
-
-
Method Details
-
onComponentTag
- Overrides:
onComponentTagin classBehavior
-
onConfigure
- Overrides:
onConfigurein classBehavior
-
hasIconType
public final boolean hasIconType()- Returns:
- true, if an
IconTypeis set
-
setType
sets a new icon type- Returns:
- this instance for chaining
-
type
- Returns:
- the current icon type
-
detach
-