Package javascript.awt
Class BorderLayout
- java.lang.Object
-
- javascript.awt.BorderLayout
-
- All Implemented Interfaces:
LayoutManager
public class BorderLayout extends java.lang.Object implements LayoutManager
The java.awt.BorderLayout clone- Author:
- gianpiero.diblasi
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
AFTER_LAST_LINE
static java.lang.String
AFTER_LINE_ENDS
static java.lang.String
BEFORE_FIRST_LINE
static java.lang.String
BEFORE_LINE_BEGINS
static java.lang.String
CENTER
static java.lang.String
EAST
static java.lang.String
LINE_END
static java.lang.String
LINE_START
static java.lang.String
NORTH
static java.lang.String
PAGE_END
static java.lang.String
PAGE_START
static java.lang.String
SOUTH
static java.lang.String
WEST
-
Constructor Summary
Constructors Constructor Description BorderLayout(int hGap, int vGap)
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
-
NORTH
public static final java.lang.String NORTH
- See Also:
- Constant Field Values
-
SOUTH
public static final java.lang.String SOUTH
- See Also:
- Constant Field Values
-
EAST
public static final java.lang.String EAST
- See Also:
- Constant Field Values
-
WEST
public static final java.lang.String WEST
- See Also:
- Constant Field Values
-
CENTER
public static final java.lang.String CENTER
- See Also:
- Constant Field Values
-
BEFORE_FIRST_LINE
public static final java.lang.String BEFORE_FIRST_LINE
- See Also:
- Constant Field Values
-
AFTER_LAST_LINE
public static final java.lang.String AFTER_LAST_LINE
- See Also:
- Constant Field Values
-
BEFORE_LINE_BEGINS
public static final java.lang.String BEFORE_LINE_BEGINS
- See Also:
- Constant Field Values
-
AFTER_LINE_ENDS
public static final java.lang.String AFTER_LINE_ENDS
- See Also:
- Constant Field Values
-
PAGE_START
public static final java.lang.String PAGE_START
- See Also:
- Constant Field Values
-
PAGE_END
public static final java.lang.String PAGE_END
- See Also:
- Constant Field Values
-
LINE_START
public static final java.lang.String LINE_START
- See Also:
- Constant Field Values
-
LINE_END
public static final java.lang.String LINE_END
- See Also:
- Constant Field Values
-
-
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
-
-