public abstract class WSplitLayout extends WLayout
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
ASIDE |
static java.lang.String |
CENTER |
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
构造器和说明 |
---|
WSplitLayout() |
限定符和类型 | 方法和说明 |
---|---|
void |
addAside(Widget widget)
添加靠边的组件
|
void |
addCenter(Widget widget)
添加中间的组件
|
void |
addWidget(Widget widget,
java.lang.Object constraints)
添加控件
|
java.lang.Object |
clone()
克隆
|
JSONObject |
createJSONConfig(Repository repo,
Calculator c,
NodeVisitor toFindChart)
以JSONObject方式返回水平分割布局的配置信息, 并且将水平分割布局内所有控件的配置信息以JSONArray形式存放在JSONObject的"items"
字段下,而"ratio"字段将决定水平分割布局内控件的分割比例。
|
protected JSONArray |
createJSONItems(Repository repo,
Calculator c,
NodeVisitor toFindChart)
以JSONArray方式返回布局内所有控件的配置信息。
|
java.lang.String |
getLayoutToolTip()
获取容器的提示
|
Widget |
getLayoutWidget(java.lang.Object constraints) |
java.awt.Dimension |
getMinDesignSize()
获取容器的设计最小dimension
|
double |
getRatio() |
void |
readXML(XMLableReader reader)
读取xml
|
void |
removeAll()
删除所有控件
|
void |
removeWidget(Widget widget)
删除控件
|
void |
setRatio(double ratio) |
void |
writeXML(XMLPrintWriter writer)
输出xml
|
addWidget, canCurrentMarginAvailable, createPara4Mobile, equals, getBoundsWidget, getWidget, getWidget, getWidgetCount, getWidgetIndex, hashCode, isEditor, isScrollable, replace, resize, setBounds, setCompVisible, setScrollable, setWidgetIndex, supportedEvents, toImage
getCompInterval, getHgap, getVgap, getXType, 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 CENTER
public static final java.lang.String ASIDE
public double getRatio()
public void setRatio(double ratio)
public void addWidget(Widget widget, java.lang.Object constraints)
widget
- 控件constraints
- 类型public void addCenter(Widget widget)
widget
- 控件public void addAside(Widget widget)
widget
- 添加控件public Widget getLayoutWidget(java.lang.Object constraints)
public void removeWidget(Widget widget)
removeWidget
在类中 WLayout
widget
- 控件public java.lang.String getLayoutToolTip()
WLayout
getLayoutToolTip
在类中 WLayout
public java.awt.Dimension getMinDesignSize()
WLayout
getMinDesignSize
在类中 WLayout
public JSONObject createJSONConfig(Repository repo, Calculator c, NodeVisitor toFindChart) throws JSONException
createJSONConfig
在类中 WLayout
repo
- : see Repository 请求c
- : 指定解析器toFindChart
- 查找JSONException
- 异常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
- 如果克隆失败则抛出此异常