Interface ILayoutDataAlignX

    • Field Detail

      • ALIGN_X_NAME

        static final java.lang.String ALIGN_X_NAME
        The name of the alignment property.
        See Also:
        Constant Field Values
    • Method Detail

      • 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.
      • 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.