public class WHorizontalBoxLayout extends WLayout
限定符和类型 | 字段和说明 |
---|---|
static int |
CENTER |
static int |
DEFAULT_HGAP |
static int |
DEFAULT_VGAP |
protected WTabDisplayPosition |
displayPosition |
static int |
LEFT |
static int |
RIGHT |
DEFAULT_HEIGHT, 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
构造器和说明 |
---|
WHorizontalBoxLayout() |
WHorizontalBoxLayout(int align) |
WHorizontalBoxLayout(int align,
int hgap,
int vgap) |
限定符和类型 | 方法和说明 |
---|---|
void |
addWidget(Widget widget)
添加控件
|
void |
addWidget(Widget widget,
int idx)
添加控件
|
void |
addWidthWidget(Widget widget,
int width)
添加控件
|
java.lang.Object |
clone()
克隆
|
JSONObject |
createJSONConfig(Repository repo,
Calculator c,
NodeVisitor toFindChart)
以JSONObject方式返回水平盒子布局的配置信息, 并且将水平盒子布局内所有控件的配置信息以JSONArray形式存放在JSONObject的"items"
字段下,而"alignment"字段将决定水平盒子布局内控件的分布方式,包括左、中、右。
|
int |
getAlignment() |
WTabDisplayPosition |
getDisplayPosition() |
java.lang.String |
getLayoutToolTip()
获取容器的提示
|
java.awt.Dimension |
getMinDesignSize()
获取容器的设计最小dimension
|
int |
getWidthAtWidget(Widget wgt) |
java.lang.String |
getXType()
控件xType,每个控件的特有标记和控件一一对应
|
void |
readXML(XMLableReader reader)
读取xml
|
void |
removeWidget(Widget widget)
删除指定控件
|
void |
setAlignment(int align) |
void |
setDisplayPosition(WTabDisplayPosition displayPosition) |
protected void |
setWidthAtIndex(int index,
int width)
设置指定位置的宽度
|
void |
setWidthAtWidget(Widget wgt,
int width) |
void |
writeXML(XMLPrintWriter writer)
输出xml
|
canCurrentMarginAvailable, createJSONItems, 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 LEFT
public static final int CENTER
public static final int RIGHT
public static final int DEFAULT_HGAP
public static final int DEFAULT_VGAP
protected WTabDisplayPosition displayPosition
public WHorizontalBoxLayout()
public WHorizontalBoxLayout(int align)
public WHorizontalBoxLayout(int align, int hgap, int vgap)
public WTabDisplayPosition getDisplayPosition()
public void setDisplayPosition(WTabDisplayPosition displayPosition)
public int getAlignment()
public void setAlignment(int align)
public java.lang.String getXType()
Widget
getXType
在类中 AbstractGapWidget
public void addWidget(Widget widget, int idx)
widget
- 当前控件idx
- 序号public void addWidthWidget(Widget widget, int width)
widget
- 当前控件width
- 宽度public void removeWidget(Widget widget)
removeWidget
在类中 WLayout
widget
- 指定控件public int getWidthAtWidget(Widget wgt)
public void setWidthAtWidget(Widget wgt, int width)
protected void setWidthAtIndex(int index, int width)
index
- 指定序列width
- 设定的宽度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
- : 上下文信息c
- : 指定解析器toFindChart
- 查找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
- 如果克隆失败则抛出此异常