Interface ILayoutDataAlignX

All Superinterfaces:
IGProp<GProp<?>[]>, IPropCnr
All Known Implementing Classes:
AbsoluteData, BorderData, EAbsoluteData, EBorderData, EFlexData, EGridData, EPanelData, ESwapData, ETabData, FlexData, GridData, PanelData, SwapData, TabData

public interface ILayoutDataAlignX extends IPropCnr
Interface for tagging layout data to mark it as horizontal align capable.
Author:
Christopher Mindus
  • Field Details

  • Method Details

    • getAlignPropX

      default IntProp getAlignPropX()
      Returns the alignment property in X.
      Returns:
      The property, or null if undefined.
    • setAlignX

      default int setAlignX(int align)
      Aligns the component horizontally.
      Parameters:
      align - Alignment value:
      - ALIGN_X_LEFT (1=left),
      - ALIGN_X_CENTER (2=center),
      - ALIGN_X_RIGHT (3=right),
      - ALIGN_X_FILL (4=fill).
      Returns:
      The current align value or -1 for operation not valid. The value is never zero, it defaults to ALIGN_X_LEFT (1=left) or if it has implicit fill, it will be ALIGN_X_FILL (4=fill).
    • setAlignX

      default int setAlignX(int align, IComplexOperation op)
      Aligns the component horizontally.
      Parameters:
      align - Alignment value: 1=left, 2=center, 3=right, 4=fill.
      op - Complex operation to perform the change, null for testing (align value is ignored).
      Returns:
      The current align value or -1 for operation not valid. The value is never zero, it defaults to ALIGN_X_LEFT (1=left) or if it has implicit fill, it will be ALIGN_X_FILL (4=fill).
    • getDefaultAlignX

      default int getDefaultAlignX()
      Returns the default alignment value in X.
      Returns:
      ALIGN_X_LEFT (1=left) is the default.
    • getAlignX

      default int getAlignX()
      Returns the alignment in X.
      Returns:
      Alignment value:
      - ALIGN_X_LEFT (1=left),
      - ALIGN_X_CENTER (2=center),
      - ALIGN_X_RIGHT (3=right),
      - ALIGN_X_FILL (4=fill).
    • hasFillX

      default boolean hasFillX()
      Returns if the component is filled in X, implicitly or from the alignment value.
      Returns:
      true if filled horizontally, false otherwise.
    • verifyAlignX

      default void verifyAlignX(UIComp comp, PropVerification verification)
      Verifies if the component has implicit horizontal fill alignment and therefore that the align setting is undefined or matches.
      Parameters:
      comp - The component.
      verification - The property verification class.