Class CPanel

    • Constructor Detail

      • CPanel

        public CPanel​(LayoutManager layout,
                      boolean isDoubleBuffered)
        Creates a new AdempierePanel with the specified layout manager and buffering strategy.
        Parameters:
        layout - the LayoutManager to use
        isDoubleBuffered - a boolean, true for double-buffering, which uses additional memory space to achieve fast, flicker-free updates
      • CPanel

        public CPanel​(LayoutManager layout)
        Create a new buffered CPanel with the specified layout manager
        Parameters:
        layout - the LayoutManager to use
      • CPanel

        public CPanel​(boolean isDoubleBuffered)
        Creates a new CPanel with FlowLayout and the specified buffering strategy. If isDoubleBuffered is true, the CPanel will use a double buffer.
        Parameters:
        isDoubleBuffered - a boolean, true for double-buffering, which uses additional memory space to achieve fast, flicker-free updates
      • CPanel

        public CPanel()
        Creates a new CPanel with a double buffer and a flow layout.
      • CPanel

        public CPanel​(CompiereColor bc)
        Creates a new CPanel with a double buffer and a flow layout.
        Parameters:
        bc - Initial Background Color
    • Method Detail

      • setBackground

        public void setBackground​(Color bg)
        Set Background - ignored by UI -
        Overrides:
        setBackground in class JComponent
        Parameters:
        bg - ignored
      • setBackgroundColor

        public void setBackgroundColor​(CompiereColor bg)
        Set Background
        Parameters:
        bg - AdempiereColor for Background, if null set standard background
      • getBackgroundColor

        public CompiereColor getBackgroundColor()
        Get Background
        Returns:
        Color for Background
      • setTabLevel

        public void setTabLevel​(int level)
        Set Tab Hierarchy Level. Has only effect, if tabs are on left or right side
        Parameters:
        level -
      • getTabLevel

        public int getTabLevel()
        Get Tab Hierarchy Level
        Returns:
        Tab Level
      • toString

        public String toString()
        String representation
        Overrides:
        toString in class Component
        Returns:
        String representation