Module wicket.bootstrap.core
Class InputBehavior
java.lang.Object
org.apache.wicket.behavior.Behavior
de.agilecoders.wicket.core.markup.html.bootstrap.behavior.BootstrapBaseBehavior
de.agilecoders.wicket.core.markup.html.bootstrap.form.InputBehavior
- All Implemented Interfaces:
Serializable,IComponentAwareEventSink,IComponentAwareHeaderContributor,IClusterable
An
InputBehavior controls the size of an input tag.- Author:
- miha
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classTransforms aFeedbackMessageto a css class name.static enumHolder class for all possible input element height sizes -
Constructor Summary
ConstructorsConstructorDescriptionConstruct.InputBehavior(InputBehavior.Size heightSize) Construct.InputBehavior(InputBehavior.Size heightSize, SpanType columnSize) InputBehavior(SpanType columnSize) Construct. -
Method Summary
Modifier and TypeMethodDescriptionvoidafterRender(Component component) voidbeforeRender(Component component) protected Function<FeedbackMessage,String> voidonComponentTag(Component component, ComponentTag tag) size(InputBehavior.Size heightSize) sets the size of input tagsets the size of input tagMethods 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
bind, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onConfigure, onEvent, onException, onRemove, onTag, unbind
-
Constructor Details
-
InputBehavior
public InputBehavior()Construct. UsesInputBehavior.Size.Mediumas default size. -
InputBehavior
Construct.- Parameters:
columnSize- the column size of input tag.
-
InputBehavior
Construct.- Parameters:
heightSize- the height size of input tag.
-
InputBehavior
-
-
Method Details
-
size
sets the size of input tag- Parameters:
spanType- the column size to use- Returns:
- this instance for chaining
-
size
sets the size of input tag- Parameters:
heightSize- the height size to use- Returns:
- this instance for chaining
-
onComponentTag
- Overrides:
onComponentTagin classBehavior
-
beforeRender
- Overrides:
beforeRenderin classBehavior
-
afterRender
- Overrides:
afterRenderin classBehavior
-
newFeedbackMessageToCssClassNameTransformer
- Returns:
- new function that transforms a
FeedbackMessageto a css class name
-