Class GridBagLayout

  • All Implemented Interfaces:
    LayoutManager

    public class GridBagLayout
    extends java.lang.Object
    implements LayoutManager
    The java.awt.GridBagLayout clone
    Author:
    gianpiero.diblasi
    • Field Summary

      Fields 
      Modifier and Type Field Description
      def.js.Array<java.lang.Double> columnWidths  
      def.js.Array<java.lang.Double> rowHeights  
    • Constructor Summary

      Constructors 
      Constructor Description
      GridBagLayout()
      Creates the object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addInPanel​(JSPanel panel, JSComponent component, java.lang.Object constraints)
      Add a component in a panel
      void resetPanel​(JSPanel panel)
      Resets the panel managed by this layout manager (all custom configurations will be removed)
      void setPanel​(JSPanel panel)
      Sets the panel managed by this layout manager
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • columnWidths

        public def.js.Array<java.lang.Double> columnWidths
      • rowHeights

        public def.js.Array<java.lang.Double> rowHeights
    • Constructor Detail

      • GridBagLayout

        public GridBagLayout()
        Creates the object
    • Method Detail

      • setPanel

        public void setPanel​(JSPanel panel)
        Description copied from interface: LayoutManager
        Sets the panel managed by this layout manager
        Specified by:
        setPanel in interface LayoutManager
        Parameters:
        panel - The panel
      • resetPanel

        public void resetPanel​(JSPanel panel)
        Description copied from interface: LayoutManager
        Resets the panel managed by this layout manager (all custom configurations will be removed)
        Specified by:
        resetPanel in interface LayoutManager
        Parameters:
        panel - The panel
      • addInPanel

        public void addInPanel​(JSPanel panel,
                               JSComponent component,
                               java.lang.Object constraints)
        Description copied from interface: LayoutManager
        Add a component in a panel
        Specified by:
        addInPanel in interface LayoutManager
        Parameters:
        panel - The panel
        component - The component
        constraints - The constraints