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.StringAFTER_LAST_LINEstatic java.lang.StringAFTER_LINE_ENDSstatic java.lang.StringBEFORE_FIRST_LINEstatic java.lang.StringBEFORE_LINE_BEGINSstatic java.lang.StringCENTERstatic java.lang.StringEASTstatic java.lang.StringLINE_ENDstatic java.lang.StringLINE_STARTstatic java.lang.StringNORTHstatic java.lang.StringPAGE_ENDstatic java.lang.StringPAGE_STARTstatic java.lang.StringSOUTHstatic java.lang.StringWEST
-
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 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
-
-
-
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: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
-
-