java.lang.Object
org.apache.wicket.behavior.Behavior
de.agilecoders.wicket.core.markup.html.bootstrap.block.LabelBehavior
All Implemented Interfaces:
Serializable, IComponentAwareEventSink, IComponentAwareHeaderContributor, IClusterable

public class LabelBehavior extends Behavior
#### Description A Label is a highlighted text with rounded corners. The LabelType defines the color of a labels background. The tag name of a label must be `span`. documentation: http://getbootstrap.com/components/#labels #### Usage ```java // use constructor to set type: component.add(new LabelBehavior(LabelType.Success)); // use setter to set type: component.add(new LabelBehavior() .setType(LabelType.Success)); ``` ```html <span wicket:id="componentId">content</span> ```
See Also:
  • Constructor Details

    • LabelBehavior

      public LabelBehavior()
      Construct.
    • LabelBehavior

      public LabelBehavior(LabelType type)
      Construct.
      Parameters:
      type - The type of the label
    • LabelBehavior

      public LabelBehavior(IModel<LabelType> type)
      Construct.
      Parameters:
      type - The type of the label as model
  • Method Details