Module wicket.bootstrap.core
Class BorderBehavior
java.lang.Object
org.apache.wicket.behavior.Behavior
de.agilecoders.wicket.core.markup.html.bootstrap.behavior.BootstrapBaseBehavior
de.agilecoders.wicket.core.markup.html.bootstrap.utilities.BorderBehavior
- All Implemented Interfaces:
Serializable,IComponentAwareEventSink,IComponentAwareHeaderContributor,IClusterable
Behavior that adds different border utility classes to components.
https://getbootstrap.com/docs/5.3/utilities/borders/
- Author:
- Jan Ferko
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumBorder colors built on our theme colors.static enumClasses to easily round its corners.static enumEnum of available border types.static enumEnum of available border types. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncolor(BorderBehavior.Color color) Sets new border color.color(IModel<BorderBehavior.Color> colorModel) Sets new border color.voidonComponentTag(Component component, ComponentTag tag) radius(BorderBehavior.Radius radius) Sets new type of rounding border corners.radius(IModel<BorderBehavior.Radius> radiusModel) Sets new type of rounding border corners.type(BorderBehavior.Type type) Sets new border type.type(IModel<BorderBehavior.Type> typeModel) Sets new border type.width(BorderBehavior.Width width) Sets new border width.width(IModel<BorderBehavior.Width> widthModel) Sets new border width.Methods inherited from class de.agilecoders.wicket.core.markup.html.bootstrap.behavior.BootstrapBaseBehavior
addTo, getBootstrapSettings, instance, removeFrom, renderHead, renderHeadMethods inherited from class org.apache.wicket.behavior.Behavior
afterRender, beforeRender, bind, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onConfigure, onEvent, onException, onRemove, onTag, unbind
-
Constructor Details
-
BorderBehavior
public BorderBehavior()Constructs new instance of default border.
-
-
Method Details
-
onComponentTag
- Overrides:
onComponentTagin classBehavior
-
color
Sets new border color.- Parameters:
color- the new border color
-
color
Sets new border color.- Parameters:
colorModel- the new border color
-
radius
Sets new type of rounding border corners.- Parameters:
radius- the new rounding border corners type.
-
radius
Sets new type of rounding border corners.- Parameters:
radiusModel- the model for the rounding border corners type
-
type
Sets new border type.- Parameters:
type- the type of border
-
type
Sets new border type.- Parameters:
typeModel- the model for the type of border
-
width
Sets new border width.- Parameters:
width- the width of the border
-
width
Sets new border width.- Parameters:
widthModel- the model for the width of the border
-