Package javascript.awt
Class BoxLayout
- java.lang.Object
-
- javascript.awt.BoxLayout
-
- All Implemented Interfaces:
LayoutManager
public class BoxLayout extends java.lang.Object implements LayoutManager
The java.awt.BoxLayout clone- Author:
- gianpiero.diblasi
-
-
Constructor Summary
Constructors Constructor Description BoxLayout(JSComponent target, int axis)
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 panelvoid
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
-
-
-
Field Detail
-
X_AXIS
public static final int X_AXIS
- See Also:
- Constant Field Values
-
Y_AXIS
public static final int Y_AXIS
- See Also:
- Constant Field Values
-
LINE_AXIS
public static final int LINE_AXIS
- See Also:
- Constant Field Values
-
PAGE_AXIS
public static final int PAGE_AXIS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BoxLayout
public BoxLayout(JSComponent target, int axis)
Creates the object- Parameters:
target
- The target componentaxis
- The axis
-
-
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 interfaceLayoutManager
- 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 interfaceLayoutManager
- 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 interfaceLayoutManager
- Parameters:
panel
- The panelcomponent
- The componentconstraints
- The constraints
-
-