java.lang.Object
java.lang.Enum<Width>
de.agilecoders.wicket.core.markup.html.bootstrap.common.Width
All Implemented Interfaces:
ICssClassNameModifier, ICssClassNameProvider, Serializable, Comparable<Width>, Constable, IClusterable

public enum Width extends Enum<Width> implements ICssClassNameProvider, ICssClassNameModifier
Defines all possible layout dimensions.
Author:
miha
  • Enum Constant Details

    • SPAN1

      public static final Width SPAN1
    • SPAN2

      public static final Width SPAN2
    • SPAN3

      public static final Width SPAN3
    • SPAN4

      public static final Width SPAN4
    • SPAN5

      public static final Width SPAN5
    • SPAN6

      public static final Width SPAN6
    • SPAN7

      public static final Width SPAN7
    • SPAN8

      public static final Width SPAN8
    • SPAN9

      public static final Width SPAN9
    • SPAN10

      public static final Width SPAN10
    • SPAN11

      public static final Width SPAN11
    • SPAN12

      public static final Width SPAN12
  • Method Details

    • values

      public static Width[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Width valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • addTo

      public void addTo(Component component)
      adds width css class name modifier to given component
      Parameters:
      component - to append the css class
    • cssClassName

      public String cssClassName()
      Specified by:
      cssClassName in interface ICssClassNameProvider
      Returns:
      a css class name
    • newCssClassNameModifier

      public CssClassNameAppender newCssClassNameModifier()
      Specified by:
      newCssClassNameModifier in interface ICssClassNameModifier
      Returns:
      a AttributeModifier which contains the css class name