Module wicket.bootstrap.core
Class QuoteBehavior
java.lang.Object
org.apache.wicket.behavior.Behavior
de.agilecoders.wicket.core.markup.html.bootstrap.block.QuoteBehavior
- All Implemented Interfaces:
Serializable,IComponentAwareEventSink,IComponentAwareHeaderContributor,IClusterable
#### Description
Block-level element for quoting content from another source.
#### Usage
```java
component.add(new QuoteBehavior()
.pullRight()); // set content right aligned (optional, default: left)
```
```html
<blockquote wicket:id="componentId">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante venenatis.</p>
<small>Someone famous</small>
</blockquote>
```- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidonComponentTag(Component component, ComponentTag tag) final QuoteBehaviorpullLeft()sets the floating of the quote to "left".final QuoteBehaviorsets the floating of the quote to "right".voidMethods inherited from class org.apache.wicket.behavior.Behavior
afterRender, beforeRender, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onConfigure, onEvent, onException, onRemove, onTag, renderHead
-
Constructor Details
-
QuoteBehavior
public QuoteBehavior()Construct.
-
-
Method Details
-
onComponentTag
- Overrides:
onComponentTagin classBehavior
-
pullRight
sets the floating of the quote to "right".- Returns:
- this component's instance
-
pullLeft
sets the floating of the quote to "left".- Returns:
- this component's instance
-
bind
-
unbind
-