Class ColumnViewElement

java.lang.Object
com.foreach.across.modules.web.ui.elements.ContainerViewElement
com.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
com.foreach.across.modules.bootstrapui.elements.ColumnViewElement
All Implemented Interfaces:
com.foreach.across.modules.web.ui.elements.HtmlViewElement, com.foreach.across.modules.web.ui.MutableViewElement, com.foreach.across.modules.web.ui.ViewElement

@Deprecated public class ColumnViewElement extends com.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
Deprecated.

Represents a Bootstrap column div, supporting Grid.DeviceGridLayout configuration using setLayouts(Collection) and addLayout(Grid.DeviceGridLayout...).

Example:

new ColumnViewElement().addLayout( Grid.Device.MD.width(6) );

Author:
Arne Vandamme
  • Constructor Details

    • ColumnViewElement

      public ColumnViewElement()
      Deprecated.
  • Method Details

    • setLayouts

      public ColumnViewElement setLayouts(Grid.DeviceGridLayout... layouts)
      Deprecated.
      Set all device related layouts for this column. Replaces any previously registered, use addLayout(Grid.DeviceGridLayout...) if you want to add a single layout.
      Parameters:
      layouts - to be used
    • setLayouts

      public ColumnViewElement setLayouts(Collection<Grid.DeviceGridLayout> layouts)
      Deprecated.
      Set all device related layouts for this column.
      Parameters:
      layouts - to be used
    • getLayouts

      public Collection<Grid.DeviceGridLayout> getLayouts()
      Deprecated.
      Get all device layout configurations attached to this column.
      Returns:
      copy of the layout collection
    • addLayout

      public ColumnViewElement addLayout(Grid.DeviceGridLayout... layouts)
      Deprecated.
      Add a device layout configuration for this column.
      Parameters:
      layouts - to add
    • removeLayout

      public ColumnViewElement removeLayout(Grid.DeviceGridLayout... layouts)
      Deprecated.
      Remove one or more layouts from this column.
      Parameters:
      layouts - to remove
    • clearLayouts

      public ColumnViewElement clearLayouts()
      Deprecated.
    • addCssClass

      public ColumnViewElement addCssClass(String... cssClass)
      Deprecated.
      Specified by:
      addCssClass in interface com.foreach.across.modules.web.ui.elements.HtmlViewElement
      Overrides:
      addCssClass in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
    • removeCssClass

      public ColumnViewElement removeCssClass(String... cssClass)
      Deprecated.
      Specified by:
      removeCssClass in interface com.foreach.across.modules.web.ui.elements.HtmlViewElement
      Overrides:
      removeCssClass in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
    • setAttributes

      public ColumnViewElement setAttributes(Map<String,Object> attributes)
      Deprecated.
      Specified by:
      setAttributes in interface com.foreach.across.modules.web.ui.elements.HtmlViewElement
      Overrides:
      setAttributes in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
    • setAttribute

      public ColumnViewElement setAttribute(String attributeName, Object attributeValue)
      Deprecated.
      Specified by:
      setAttribute in interface com.foreach.across.modules.web.ui.elements.HtmlViewElement
      Overrides:
      setAttribute in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
    • addAttributes

      public ColumnViewElement addAttributes(Map<String,Object> attributes)
      Deprecated.
      Specified by:
      addAttributes in interface com.foreach.across.modules.web.ui.elements.HtmlViewElement
      Overrides:
      addAttributes in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
    • removeAttribute

      public ColumnViewElement removeAttribute(String attributeName)
      Deprecated.
      Specified by:
      removeAttribute in interface com.foreach.across.modules.web.ui.elements.HtmlViewElement
      Overrides:
      removeAttribute in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
    • setCustomTemplate

      public ColumnViewElement setCustomTemplate(String customTemplate)
      Deprecated.
      Specified by:
      setCustomTemplate in interface com.foreach.across.modules.web.ui.MutableViewElement
      Overrides:
      setCustomTemplate in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
    • setElementType

      protected ColumnViewElement setElementType(String elementType)
      Deprecated.
      Overrides:
      setElementType in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
    • addChild

      public ColumnViewElement addChild(com.foreach.across.modules.web.ui.ViewElement element)
      Deprecated.
      Overrides:
      addChild in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
    • addChildren

      public ColumnViewElement addChildren(Collection<? extends com.foreach.across.modules.web.ui.ViewElement> elements)
      Deprecated.
      Overrides:
      addChildren in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
    • addFirstChild

      public ColumnViewElement addFirstChild(com.foreach.across.modules.web.ui.ViewElement element)
      Deprecated.
      Overrides:
      addFirstChild in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
    • clearChildren

      public ColumnViewElement clearChildren()
      Deprecated.
      Overrides:
      clearChildren in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
    • apply

      public ColumnViewElement apply(Consumer<com.foreach.across.modules.web.ui.elements.ContainerViewElement> consumer)
      Deprecated.
      Overrides:
      apply in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
    • applyUnsafe

      public <U extends com.foreach.across.modules.web.ui.ViewElement> ColumnViewElement applyUnsafe(Consumer<U> consumer)
      Deprecated.
      Overrides:
      applyUnsafe in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
    • setTagName

      protected ColumnViewElement setTagName(String tagName)
      Deprecated.
      Overrides:
      setTagName in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
    • setHtmlId

      public ColumnViewElement setHtmlId(String htmlId)
      Deprecated.
      Specified by:
      setHtmlId in interface com.foreach.across.modules.web.ui.elements.HtmlViewElement
      Overrides:
      setHtmlId in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElement