Package javascript.awt
Class GridBagLayout
- java.lang.Object
-
- javascript.awt.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>columnWidthsdef.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 voidaddInPanel(JSPanel panel, JSComponent component, java.lang.Object constraints)Add a component in a panelvoidresetPanel(JSPanel panel)Resets the panel managed by this layout manager (all custom configurations will be removed)voidsetPanel(JSPanel panel)Sets the panel managed by this layout manager
-
-
-
Method Detail
-
setPanel
public void setPanel(JSPanel panel)
Description copied from interface:LayoutManagerSets the panel managed by this layout manager- Specified by:
setPanelin interfaceLayoutManager- Parameters:
panel- The panel
-
resetPanel
public void resetPanel(JSPanel panel)
Description copied from interface:LayoutManagerResets the panel managed by this layout manager (all custom configurations will be removed)- Specified by:
resetPanelin interfaceLayoutManager- Parameters:
panel- The panel
-
addInPanel
public void addInPanel(JSPanel panel, JSComponent component, java.lang.Object constraints)
Description copied from interface:LayoutManagerAdd a component in a panel- Specified by:
addInPanelin interfaceLayoutManager- Parameters:
panel- The panelcomponent- The componentconstraints- The constraints
-
-