Class UIMenuBar

    • Constructor Detail

      • UIMenuBar

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

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

        public UIMenuBar​(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

      • isContextMenuSupported

        public boolean isContextMenuSupported()
        Returns if the context menu is supported for this component or not.
        Returns:
        false as the Menu Bar does not support context menus.
      • 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.
      • canFillY

        public boolean canFillY()
        Returns if the component can fill in Y or not.
        Overrides:
        canFillY in class UIComp
        Returns:
        Always false, a checkbox cannot be filled.
      • canRequestFocus

        public java.lang.String canRequestFocus()
        Returns if this component can receive focus. Focus capable components may override to return null for success, or other error message.
        Specified by:
        canRequestFocus in interface IPropCnr
        Overrides:
        canRequestFocus in class UIComp
        Returns:
        "Menu bar not focusable" always.
      • couldRequestFocusIfVirtualized

        public java.lang.String couldRequestFocusIfVirtualized​(boolean ignoreStates)
        Returns if this component could receive focus if it would be virtualized. Focus capable components may override to return null for success, or other error message.
        Parameters:
        ignoreStates - Flag indicating that states should be ignored, such as visible or enabled. If false, hidden or disabled components return an error message.
        Returns:
        "Menu bar not focusable" always.