public abstract class WSortLayout extends WLayout
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
构造器和说明 |
---|
WSortLayout() |
限定符和类型 | 方法和说明 |
---|---|
void |
addMobileWidget(int index,
java.lang.String widgetName)
将widgetName加到mobileWidgetList中index的位置
|
void |
addMobileWidget(java.lang.String widgetName)
将widgetName加到mobileWidgetList末尾
|
void |
addToMobileList(int index,
java.lang.String widgetName) |
void |
addToMobileList(java.lang.String widgetName) |
void |
adjustOrder(int fromIndex,
int toIndex)
调整控件列表的顺序
|
void |
clearMobileWidgetList()
移出所有mobileWidgetList中的元素
|
JSONArray |
createItemIndexList()
表单主体控件列表有序数组
|
JSONObject |
createJSONConfig(Repository repo,
Calculator c,
NodeVisitor visitor)
返回布局的配置信息, 并且将布局内所有控件的配置信息以JSONArray形式存放在JSONObject的"items"字段
|
java.lang.String |
getMobileWidget(int index)
获取mobileWidgetList中的第index的元素
|
java.util.Iterator<java.lang.String> |
getMobileWidgetIterator()
获取mobileWidgetList的迭代器
|
int |
getMobileWidgetListSize()
返回mobileWidgetList大小
|
java.util.List<java.lang.String> |
getOrderedMobileWidgetList() |
boolean |
isContainsMoibleWidget(java.lang.String widgetName)
mobileWIdgetList中是否包含widgetName
|
boolean |
isSorted() |
void |
readXML(XMLableReader reader)
读取xml
|
void |
removeMobileWidget(int index)
从mobileWidgetList中删除index位置的widget
|
void |
setSorted(boolean sorted) |
void |
updateSortedMobileWidgetList(java.util.List<java.lang.String> sortedList)
用排好序的列表更新现有列表
|
void |
writeXML(XMLPrintWriter writer)
输出xml
|
addWidget, canCurrentMarginAvailable, clone, createJSONItems, createPara4Mobile, equals, getBoundsWidget, getLayoutToolTip, getMinDesignSize, getWidget, getWidget, getWidgetCount, getWidgetIndex, hashCode, isEditor, isScrollable, removeAll, removeWidget, 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 boolean isSorted()
public void setSorted(boolean sorted)
public JSONObject createJSONConfig(Repository repo, Calculator c, NodeVisitor visitor) throws JSONException
WLayout
createJSONConfig
在类中 WLayout
repo
- 文本c
- 指定解析器visitor
- 查找JSONException
- 异常public JSONArray createItemIndexList()
public void readXML(XMLableReader reader)
WLayout
readXML
在接口中 XMLReadable
readXML
在类中 WLayout
reader
- XML读取对象XMLableReader
public void writeXML(XMLPrintWriter writer)
WLayout
public java.util.List<java.lang.String> getOrderedMobileWidgetList()
public void addToMobileList(java.lang.String widgetName)
public void addToMobileList(int index, java.lang.String widgetName)
public void adjustOrder(int fromIndex, int toIndex)
fromIndex
- 调控前toIndex
- 调控后public void updateSortedMobileWidgetList(java.util.List<java.lang.String> sortedList)
sortedList
- 排好序的控件列表public java.util.Iterator<java.lang.String> getMobileWidgetIterator()
public int getMobileWidgetListSize()
public java.lang.String getMobileWidget(int index)
index
- public void addMobileWidget(java.lang.String widgetName)
widgetName
- public void addMobileWidget(int index, java.lang.String widgetName)
index
- widgetName
- public void removeMobileWidget(int index)
index
- public void clearMobileWidgetList()
public boolean isContainsMoibleWidget(java.lang.String widgetName)
widgetName
-