public class WBorderLayout extends WLayout
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
CENTER |
static java.lang.String[] |
DEFAULT_DIRECTIONS |
static int |
DEFAULT_SIZE |
static java.lang.String |
EAST |
static java.lang.String |
NORTH |
static java.lang.String |
SOUTH |
static java.lang.String |
WEST |
DEFAULT_HEIGHT, DEFAULT_WIDTH, EVENT_AFTERINIT, EVENT_CLICK, MIN_HEIGHT, MIN_WIDTH, widgetList, XML_TAG
compInterval, hgap, vgap
background, borderStyle, margin
AFTEREDIT, AFTERINIT, BEFOREEDIT, CHANGE, DEFAULT_FONT_SIZE, disabled, EVENT_STATECHANGE, invisible, STOPEDIT, widgetName
构造器和说明 |
---|
WBorderLayout() |
WBorderLayout(int hgap,
int vgap) |
WBorderLayout(int hgap,
int vgap,
java.lang.String[] directions) |
WBorderLayout(java.lang.String widgetName) |
限定符和类型 | 方法和说明 |
---|---|
void |
addCenter(Widget widget)
增加组件
|
void |
addEast(Widget widget)
增加组件
|
void |
addNorth(Widget widget)
增加组件
|
void |
addSouth(Widget widget)
增加组件
|
void |
addWest(Widget widget)
增加组件
|
java.lang.Object |
clone()
克隆
|
protected JSONArray |
createJSONItems(Repository repo,
Calculator c,
NodeVisitor toFindChart)
以JSONArray方式返回布局内所有控件的配置信息。
|
java.lang.String |
getCenterTitle() |
java.lang.Object |
getConstraints(Widget widget)
获取控件的方位
|
java.lang.String[] |
getDirections() |
int |
getEastSize() |
java.lang.String |
getEastTitle() |
java.lang.String |
getLayoutToolTip()
获取容器的提示
|
Widget |
getLayoutWidget(java.lang.Object constraints)
根据方位获取控件
|
java.awt.Dimension |
getMinDesignSize()
获取容器的设计最小dimension
|
int |
getNorthSize() |
java.lang.String |
getNorthTitle() |
int |
getSouthSize() |
java.lang.String |
getSouthTitle() |
int |
getWestSize() |
java.lang.String |
getWestTitle() |
Widget |
getWidget(int index)
获取指定index的widget
|
int |
getWidgetCount()
获取widget的数量
|
java.lang.String |
getXType()
控件xType,每个控件的特有标记和控件一一对应
|
void |
readXML(XMLableReader reader)
读取xml
|
void |
refreshDirections(java.lang.String[] directions)
更新定位
|
void |
removeAll()
移除所有
|
void |
removeWidget(Widget widget)
移除组件
|
void |
setCenterTitle(java.lang.String centerTitle) |
void |
setDirections(java.lang.String[] directions) |
void |
setEastSize(int eastSize) |
void |
setEastTitle(java.lang.String eastTitle) |
void |
setNorthSize(int northSize) |
void |
setNorthTitle(java.lang.String northTitle) |
void |
setSouthSize(int southSize) |
void |
setSouthTitle(java.lang.String southTitle) |
void |
setWestSize(int westSize) |
void |
setWestTitle(java.lang.String westTitle) |
void |
writeXML(XMLPrintWriter writer)
输出xml
|
addWidget, canCurrentMarginAvailable, createJSONConfig, createPara4Mobile, equals, getBoundsWidget, getWidget, getWidgetIndex, hashCode, isEditor, isScrollable, replace, resize, setBounds, setCompVisible, setScrollable, setWidgetIndex, supportedEvents, toImage
getCompInterval, getHgap, getVgap, setCompInterval, setHgap, setVgap
addWidgetAttrMark, clearMargin, getBackground, getBorderStyle, getMargin, getWidgetAttrMark, readExtra, setBackground, setBorderStyle, setBorderStyleNoBackground, setMargin
acceptType, changeOnlyVisibleAuthorityState, changeUsableAuthorityState, changeVisibleAuthorityState, cleanAuthority, dealInvisible, dealWithPresentableValue, getContentHeight, getContentWidth, getDescription, getDisableAction, getEnableAction, getInvisibleAction, getLabelName, getVisibleAction, getWidgetName, getWidgetPrivilegeControl, hasDataOnInit, isChartRelated, isDirtyWidget, isDoneUsableAuthority, isDoneVisibleAuthority, isEnabled, isUsableAuthority, isVisible, isVisibleAuthority, resize, setChartRelated, setDescription, setEnabled, setLabelName, setVisible, setWidgetName, setWidgetPrivilegeControl, supportMobile, toImage, toString, updateChildBounds, value2Config
addListener, clearListeners, createJSONListener, createListeners, dealWithListener4Compatible, getConvertMap, getListener, getListenerSize
copy, getId, getNameSpace, setId, setNameSpace
getClassInfo, getData, invalidate, isLoad, setClassInfo, setData
public static final java.lang.String NORTH
public static final java.lang.String SOUTH
public static final java.lang.String EAST
public static final java.lang.String WEST
public static final java.lang.String CENTER
public static final java.lang.String[] DEFAULT_DIRECTIONS
public static final int DEFAULT_SIZE
public WBorderLayout()
public WBorderLayout(java.lang.String widgetName)
public WBorderLayout(int hgap, int vgap)
public WBorderLayout(int hgap, int vgap, java.lang.String[] directions)
public java.lang.String getXType()
Widget
getXType
在类中 AbstractGapWidget
public java.lang.String[] getDirections()
public void setDirections(java.lang.String[] directions)
public void refreshDirections(java.lang.String[] directions)
directions
- 位置public void addNorth(Widget widget)
widget
- 组件public void addSouth(Widget widget)
widget
- 组件public void addWest(Widget widget)
widget
- 组件public void addEast(Widget widget)
widget
- 组件public void addCenter(Widget widget)
widget
- 组件public int getEastSize()
public void setEastSize(int eastSize)
public int getNorthSize()
public void setNorthSize(int northSize)
public int getSouthSize()
public void setSouthSize(int southSize)
public int getWestSize()
public void setWestSize(int westSize)
public java.lang.String getCenterTitle()
public void setCenterTitle(java.lang.String centerTitle)
public java.lang.String getEastTitle()
public void setEastTitle(java.lang.String eastTitle)
public java.lang.String getNorthTitle()
public void setNorthTitle(java.lang.String northTitle)
public java.lang.String getSouthTitle()
public void setSouthTitle(java.lang.String southTitle)
public java.lang.String getWestTitle()
public void setWestTitle(java.lang.String westTitle)
public java.lang.Object getConstraints(Widget widget)
widget
- public Widget getLayoutWidget(java.lang.Object constraints)
constraints
- public int getWidgetCount()
WLayout
getWidgetCount
在类中 WLayout
public void removeWidget(Widget widget)
removeWidget
在类中 WLayout
widget
- 组件public java.lang.String getLayoutToolTip()
WLayout
getLayoutToolTip
在类中 WLayout
public java.awt.Dimension getMinDesignSize()
WLayout
getMinDesignSize
在类中 WLayout
protected JSONArray createJSONItems(Repository repo, Calculator c, NodeVisitor toFindChart) throws JSONException
createJSONItems
在类中 WLayout
repo
- : see Repositoryc
- : 指定解析器JSONException
public void readXML(XMLableReader reader)
WLayout
readXML
在接口中 XMLReadable
readXML
在类中 WLayout
reader
- XML读取对象XMLableReader
public void writeXML(XMLPrintWriter writer)
WLayout
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
WLayout
clone
在接口中 FCloneable
clone
在类中 WLayout
java.lang.CloneNotSupportedException
- 如果克隆失败则抛出此异常