Interface ILayoutDataAlignY

    • Field Detail

      • ALIGN_Y_NAME

        static final java.lang.String ALIGN_Y_NAME
        The name of the alignment property.
        See Also:
        Constant Field Values
      • ALIGN_Y_MIDDLE

        static final int ALIGN_Y_MIDDLE
        Align Y value: middle (or center) = 2.
        See Also:
        Constant Field Values
    • Method Detail

      • getAlignPropY

        default IntProp getAlignPropY()
        Returns the alignment property in Y.
        Returns:
        The property, or null if undefined.
      • setAlignY

        default int setAlignY​(int align)
        Aligns the component horizontally.
        Parameters:
        align - Alignment value:
        - ALIGN_Y_TOP (1=top),
        - ALIGN_Y_MIDDLE (2=middle),
        - ALIGN_Y_BOTTOM (3=bottom),
        - ALIGN_Y_FILL (4=fill).
        Returns:
        The current align value or -1 for operation not valid. The value is never zero, it defaults to ALIGN_Y_TOP (1=top) or if it has implicit fill, it will be ALIGN_Y_FILL (4=fill).
      • setAlignY

        default int setAlignY​(int align,
                              IComplexOperation op)
        Aligns the component horizontally.
        Parameters:
        align - Alignment value:
        - ALIGN_Y_TOP (1=top),
        - ALIGN_Y_MIDDLE (2=middle),
        - ALIGN_Y_BOTTOM (3=bottom),
        - ALIGN_Y_FILL (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_Y_TOP (1=top) or if it has implicit fill, it will be ALIGN_Y_FILL (4=fill).
      • getDefaultAlignY

        default int getDefaultAlignY()
        Returns the default alignment value in Y.
        Returns:
        ALIGN_Y_TOP (1=top) is the default.
      • hasFillY

        default boolean hasFillY()
        Returns if the component is filled in Y, implicitly or from the alignment value.
        Returns:
        true if filled vertically, false otherwise.
      • verifyAlignY

        default void verifyAlignY​(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.