Class BBContainerWrapper

    • Constructor Detail

      • BBContainerWrapper

        public BBContainerWrapper​(BBContainer container)
        Constructor
      • BBContainerWrapper

        public BBContainerWrapper​(BBContainer container,
                                  Object layout)
        Constructor
    • Method Detail

      • getContainer

        public BBContainer getContainer()
        Returns:
        the container
      • getComponents

        public ComponentWrapper[] getComponents()
        Description copied from interface: ContainerWrapper
        Returns the components of the container that wrapper is wrapping.
        Specified by:
        getComponents in interface ContainerWrapper
        Returns:
        The components of the container that wrapper is wrapping. Never null.
      • getComponentCount

        public int getComponentCount()
        Description copied from interface: ContainerWrapper
        Returns the number of components that this parent has.
        Specified by:
        getComponentCount in interface ContainerWrapper
        Returns:
        The number of components that this parent has.
      • getLayout

        public Object getLayout()
        Description copied from interface: ContainerWrapper
        Returns the LayoutHandler (in Swing terms) that is handling the layout of this container. If there exist no such class the method should return the same as ComponentWrapper.getComponent(), which is the container itself.
        Specified by:
        getLayout in interface ContainerWrapper
        Returns:
        The layout handler instance. Never null.
      • setLayout

        public void setLayout​(Object layout)
        Parameters:
        layout - the layout to set
      • isLeftToRight

        public boolean isLeftToRight()
        Description copied from interface: ContainerWrapper
        Returns if this container is using left-to-right component ordering.
        Specified by:
        isLeftToRight in interface ContainerWrapper
        Returns:
        If this container is using left-to-right component ordering.
      • setLeftToRight

        public void setLeftToRight​(boolean l2r)
      • paintDebugCell

        public void paintDebugCell​(int x,
                                   int y,
                                   int width,
                                   int height)
        Description copied from interface: ContainerWrapper
        Paints a cell to indicate where it is.
        Specified by:
        paintDebugCell in interface ContainerWrapper
        Parameters:
        x - The x coordinate to start the drawing.
        y - The x coordinate to start the drawing.
        width - The width to draw/fill
        height - The height to draw/fill
      • getComponentType

        public int getComponentType​(boolean disregardScrollPane)
        Description copied from interface: ComponentWrapper
        Returns the type of component that this wrapper is wrapping.

        This method can be invoked often so the result should be cached.

        Specified by:
        getComponentType in interface ComponentWrapper
        Overrides:
        getComponentType in class BBComponentWrapper
        Parameters:
        disregardScrollPane - Is true any wrapping scroll pane should be disregarded and the type of the scrolled component should be returned.
        Returns:
        The type of component that this wrapper is wrapping. E.g. ComponentWrapper.TYPE_LABEL.
      • getComponentWrapperList

        public List<BBComponentWrapper> getComponentWrapperList()
        Returns:
        the componentWrapperList
      • setComponentWrapperList

        public void setComponentWrapperList​(List<BBComponentWrapper> componentWrapperList)
        Parameters:
        componentWrapperList - the componentWrapperList to set
      • getComponentToComponentWrapperMap

        public Map<BBComponent,​BBComponentWrapper> getComponentToComponentWrapperMap()
        Returns:
        the componentToComponentWrapperMap
      • setComponentToComponentWrapperMap

        public void setComponentToComponentWrapperMap​(Map<BBComponent,​BBComponentWrapper> componentToComponentWrapperMap)
        Parameters:
        componentToComponentWrapperMap - the componentToComponentWrapperMap to set
      • getControlToComponentWrapperMap

        public Map<com.basis.bbj.proxies.sysgui.BBjControl,​BBComponentWrapper> getControlToComponentWrapperMap()
        Returns:
        the controlToComponentWrapperMap
      • setControlToComponentWrapperMap

        public void setControlToComponentWrapperMap​(Map<com.basis.bbj.proxies.sysgui.BBjControl,​BBComponentWrapper> controlToComponentWrapperMap)
        Parameters:
        controlToComponentWrapperMap - the controlToComponentWrapperMap to set
      • getComponentWrapperToCCMap

        public Map<ComponentWrapper,​CC> getComponentWrapperToCCMap()
        Returns:
        the componentWrapperToCCMap
      • setComponentWrapperToCCMap

        public void setComponentWrapperToCCMap​(Map<ComponentWrapper,​CC> componentWrapperToCCMap)
        Parameters:
        componentWrapperToCCMap - the componentWrapperToCCMap to set
      • getComponentToHashcodeMap

        public Map<BBComponent,​Integer> getComponentToHashcodeMap()
        Returns:
        the componentToHashcodeMap
      • setComponentToHashcodeMap

        public void setComponentToHashcodeMap​(Map<BBComponent,​Integer> componentToHashcodeMap)
        Parameters:
        componentToHashcodeMap - the componentToHashcodeMap to set