public class WVerticalBoxLayout extends WLayout
限定符和类型 | 字段和说明 |
---|---|
static int |
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
构造器和说明 |
---|
WVerticalBoxLayout() |
WVerticalBoxLayout(int hgap,
int vgap) |
限定符和类型 | 方法和说明 |
---|---|
void |
addWidget(Widget widget)
添加控件
|
void |
addWidget(Widget widget,
int idx)
添加控件
|
java.lang.Object |
clone()
克隆
|
protected JSONArray |
createJSONItems(Repository repo,
Calculator c,
NodeVisitor toFindChart)
以JSONArray方式返回布局内所有控件的配置信息。
|
int |
getHeightAtWidget(Widget wgt) |
java.lang.String |
getLayoutToolTip()
获取容器的提示
|
java.awt.Dimension |
getMinDesignSize()
获取容器的设计最小dimension
|
java.lang.String |
getXType()
控件xType,每个控件的特有标记和控件一一对应
|
void |
readXML(XMLableReader reader)
读取xml
|
void |
removeWidget(Widget widget)
删除控件
|
void |
setHeightAtWidget(Widget wgt,
int height) |
void |
writeXML(XMLPrintWriter writer)
输出xml
|
canCurrentMarginAvailable, createJSONConfig, createPara4Mobile, equals, getBoundsWidget, getWidget, getWidget, getWidgetCount, getWidgetIndex, hashCode, isEditor, isScrollable, removeAll, 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 int DEFAULT_HEIGHT
public WVerticalBoxLayout()
public WVerticalBoxLayout(int hgap, int vgap)
public java.lang.String getXType()
Widget
getXType
在类中 AbstractGapWidget
public void addWidget(Widget widget, int idx)
widget
- 控件idx
- 序号public void removeWidget(Widget widget)
removeWidget
在类中 WLayout
widget
- 控件public int getHeightAtWidget(Widget wgt)
public void setHeightAtWidget(Widget wgt, int height)
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
- 如果克隆失败则抛出此异常