public class FRTitleLayout extends java.lang.Object implements FRLayoutManager, java.awt.LayoutManager
构造器和说明 |
---|
FRTitleLayout()
构造函数
|
FRTitleLayout(int gap)
标题和主体间隙gap的布局
|
限定符和类型 | 方法和说明 |
---|---|
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp)
增加组件
|
java.lang.Object |
getConstraints(java.awt.Component comp) |
int |
getGap()
返回
Returns the gap between components.
|
boolean |
isResizable()
是否重置大小
|
void |
layoutContainer(java.awt.Container target)
布局刷新
|
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent)
最小大小
|
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent)
最优大小
|
void |
removeLayoutComponent(java.awt.Component comp)
移除组件
|
void |
setGap(int gap)
设置
Sets the gap between components.
|
public static final java.lang.String TITLE
public static final java.lang.String BODY
public FRTitleLayout()
public FRTitleLayout(int gap)
gap
- 间隙值public int getGap()
public void setGap(int gap)
the
- gap between componentspublic void addLayoutComponent(java.lang.String name, java.awt.Component comp)
addLayoutComponent
在接口中 java.awt.LayoutManager
name
- 名字comp
- 组件public void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent
在接口中 java.awt.LayoutManager
comp
- 组件public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
preferredLayoutSize
在接口中 java.awt.LayoutManager
parent
- 父容器public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
minimumLayoutSize
在接口中 java.awt.LayoutManager
parent
- 父容器public void layoutContainer(java.awt.Container target)
layoutContainer
在接口中 java.awt.LayoutManager
target
- 容器public java.lang.Object getConstraints(java.awt.Component comp)
public boolean isResizable()
isResizable
在接口中 FRLayoutManager