Interface IPLBlockElement<IMPLTYPE extends IPLBlockElement<IMPLTYPE>>

Type Parameters:
IMPLTYPE - Implementation type
All Superinterfaces:
com.helger.commons.traits.IGenericImplTrait<IMPLTYPE>, com.helger.commons.id.IHasID<String>, IPLElement<IMPLTYPE>, IPLHasBorder<IMPLTYPE>, IPLHasFillColor<IMPLTYPE>, IPLHasHorizontalAlignment<IMPLTYPE>, IPLHasMargin<IMPLTYPE>, IPLHasMarginBorderPadding<IMPLTYPE>, IPLHasOutline, IPLHasPadding<IMPLTYPE>, IPLHasVerticalAlignment<IMPLTYPE>, IPLObject<IMPLTYPE>, IPLRenderableObject<IMPLTYPE>, IPLVisitable
All Known Implementing Classes:
AbstractPLBlockElement, AbstractPLBox, PLBox, PLTableCell

public interface IPLBlockElement<IMPLTYPE extends IPLBlockElement<IMPLTYPE>> extends IPLElement<IMPLTYPE>, IPLHasHorizontalAlignment<IMPLTYPE>, IPLHasVerticalAlignment<IMPLTYPE>
Base interface for block elements. Compared to normal elements (IPLElement) they additionally have a horizontal alignment (IPLHasHorizontalAlignment) and vertical alignment (IPLHasVerticalAlignment).
Author:
Philip Helger
  • Field Details

    • DEFAULT_FULL_WIDTH

      static final boolean DEFAULT_FULL_WIDTH
      By default all block elements are full width.
      See Also:
    • DEFAULT_CLIP_CONTENT

      static final boolean DEFAULT_CLIP_CONTENT
      By default content is not clipped
      See Also:
  • Method Details

    • isFullWidth

      boolean isFullWidth()
      Returns:
      Should the element occupy the full width? The default is DEFAULT_FULL_WIDTH.
    • setFullWidth

      @Nonnull IMPLTYPE setFullWidth(boolean bFullWidth)
      Set usage of full width.
      Parameters:
      bFullWidth - true to enable full width, false to use only what is available.
      Returns:
      this for chaining
    • isClipContent

      boolean isClipContent()
      Returns:
      true if any overflowing content should be clipped, false if not. Default is DEFAULT_CLIP_CONTENT.
      Since:
      7.3.1
    • setClipContent

      @Nonnull IMPLTYPE setClipContent(boolean bClipContent)
      Enable the clipping of content, so that only the content inside the rendering area is shown. Similar to CSS style overflow:hidden. This usually only makes sense if a maximum width or height is defined additionally.
      Parameters:
      bClipContent - true to enable it, false to disable it.
      Returns:
      this for chaining
      Since:
      7.3.1