Class MUITabBar

    • Constructor Detail

      • MUITabBar

        public MUITabBar()
        Creates the container without name with a null value.
      • MUITabBar

        public MUITabBar​(Atom propertyAtom)
        Creates the container with the specified name with a null value.
        Parameters:
        propertyAtom - the property atom.
      • MUITabBar

        public MUITabBar​(Atom propertyAtom,
                         GProp<?>[] properties)
                  throws PropException
        Creates the container with the specified name and properties.
        Parameters:
        propertyAtom - the property atom.
        properties - the property array value for the container.
        Throws:
        PropException - when properties are not correctly defined.
    • Method Detail

      • hasImplicitAlignFillX

        public boolean hasImplicitAlignFillX()
        Returns if the component has implicit component horizontal fill.
        Overrides:
        hasImplicitAlignFillX in class UIContainer
        Returns:
        Always true: true means component will always fill the space in X.
      • hasImplicitHeight

        public boolean hasImplicitHeight()
        Verifies if the component has an implicit height.

        This means a height that is either present due to the component or that the height has explicitly been set, or that it is in a container that sets the outer bounds of the component.

        Overrides:
        hasImplicitHeight in class UIComp
        Returns:
        true.
      • canAlignX

        public boolean canAlignX()
        Returns if the component can be aligned left, right, center, or horizontal fill.
        Overrides:
        canAlignX in class UIComp
        Returns:
        false, swap container takes up entire width.
      • canAlignY

        public boolean canAlignY()
        Returns if the component can be aligned top, bottom, middle or vertical fill.
        Overrides:
        canAlignY in class UIComp
        Returns:
        false, swap container takes up entire height.
      • getCenterButtons

        public boolean getCenterButtons()
        Gets the center button option.
        Returns:
        The center option.
      • setCenterButtons

        public boolean setCenterButtons​(boolean on)
        Sets the center button option.
        Parameters:
        on - Set the center option.
        Returns:
        true for value changed, false for no change.
      • getType

        public MUITabBar.Type getType()
        Gets the tab bar type.
        Returns:
        The bar type.
      • setType

        public boolean setType​(MUITabBar.Type on)
        Sets the tab bar type.
        Parameters:
        on - Set the bar type.
        Returns:
        true for value changed, false for no change.
      • getFillButtons

        public int getFillButtons()
        Gets the fill button option (0=auto, 1=always, 2=never).
        Returns:
        The fill option.
      • setFillButtons

        public boolean setFillButtons​(int on)
        Sets the fill button option (0=auto, 1=always, 2=never).
        Parameters:
        on - Set the fill option.
        Returns:
        true for value changed, false for no change.