public class WParameterLayout extends WAbsoluteLayout
WAbsoluteLayout.BoundsWidget
STATE_FIT, STATE_FIXED
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
构造器和说明 |
---|
WParameterLayout() |
限定符和类型 | 方法和说明 |
---|---|
void |
addToMobileList(int index,
java.lang.String widgetName) |
JSONObject |
createJSONConfig(Repository repo,
Calculator c,
NodeVisitor toFindChart)
以JSONObject方式返回布局的配置信息, 并且将布局内所有控件的配置信息以JSONArray形式存放在JSONObject的"items" 字段下。
|
void |
createPara4Mobile(Repository repo,
JSONObject jo,
Form form)
生成移动端所用的参数面板控件信息
|
int |
getDesignWidth() |
java.awt.Dimension |
getMinDesignSize()
获取容器的设计最小dimension
|
int |
getPosition() |
MobileParamStyleProvider |
getProvider() |
java.lang.String[][] |
getWidgetNameTag()
获取参数界面的移动端控件列表
|
java.lang.String |
getXType()
控件xType,每个控件的特有标记和控件一一对应
|
boolean |
isDelayDisplayContent()
点击查询前不显示正文内容
|
boolean |
isDisplay()
是否显示参数界面
|
boolean |
isUseParamsTemplate()
是否显示参数模板界面
|
void |
readXML(XMLableReader reader)
读取xml
|
void |
refreshTagList()
刷新参数界面的移动端控件列表
Y轴方向的map(unsort), key为widget.y, value为当前行上的所有widget.x
X轴方向的map(unsort), key为widget.x, value为(x,y)坐标上的所有控件的控件名,即多个控件重叠在一起
8.0之后的布局嵌套布局也得类似考虑
|
void |
removeWidget(Widget widget)
移除指定的widget
|
void |
setDelayDisplayContent(boolean delayDisplayContent) |
void |
setDesignWidth(int width) |
void |
setDisplay(boolean display) |
void |
setNameTagModified(java.lang.String widgetName,
java.lang.Boolean isModified) |
void |
setPosition(int position) |
void |
setProvider(MobileParamStyleProvider provider) |
void |
setUseParamsTemplate(boolean useParamsTemplate) |
protected void |
writeScalingAttrXML(XMLPrintWriter writer) |
void |
writeXML(XMLPrintWriter writer)
输出xml
|
addConnector, clearLinkLine, connectorCount, createJSONItems, getBoundsWidget, getCompState, getConnector, getConnectorIndex, getCoveredConnectors, getDesigningResolution, getLayoutToolTip, isHasResize, removeConnector, resize, setBounds, setCompState, setDesigningResolution, setHasResize
addMobileWidget, addMobileWidget, addToMobileList, adjustOrder, clearMobileWidgetList, createItemIndexList, getMobileWidget, getMobileWidgetIterator, getMobileWidgetListSize, getOrderedMobileWidgetList, isContainsMoibleWidget, isSorted, removeMobileWidget, setSorted, updateSortedMobileWidgetList
addWidget, canCurrentMarginAvailable, clone, equals, getWidget, getWidget, getWidgetCount, getWidgetIndex, hashCode, isEditor, isScrollable, removeAll, replace, 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 boolean isDisplay()
public boolean isUseParamsTemplate()
public void setUseParamsTemplate(boolean useParamsTemplate)
public void setDisplay(boolean display)
public boolean isDelayDisplayContent()
public void setDelayDisplayContent(boolean delayDisplayContent)
public int getPosition()
public void setPosition(int position)
public int getDesignWidth()
public void setDesignWidth(int width)
public java.lang.String getXType()
Widget
getXType
在类中 WAbsoluteLayout
public java.awt.Dimension getMinDesignSize()
WLayout
getMinDesignSize
在类中 WAbsoluteLayout
public JSONObject createJSONConfig(Repository repo, Calculator c, NodeVisitor toFindChart) throws JSONException
createJSONConfig
在类中 WAbsoluteLayout
repo
- : 看 Repositoryc
- : 指定解析器toFindChart
- 查找JSONException
- 报错public java.lang.String[][] getWidgetNameTag()
public void removeWidget(Widget widget)
WLayout
removeWidget
在类中 WLayout
widget
- 控件public void refreshTagList()
Y轴方向的map(unsort), key为widget.y, value为当前行上的所有widget.x X轴方向的map(unsort), key为widget.x, value为(x,y)坐标上的所有控件的控件名,即多个控件重叠在一起 8.0之后的布局嵌套布局也得类似考虑
public void setNameTagModified(java.lang.String widgetName, java.lang.Boolean isModified)
public void addToMobileList(int index, java.lang.String widgetName)
addToMobileList
在类中 WSortLayout
public void createPara4Mobile(Repository repo, JSONObject jo, Form form) throws JSONException
createPara4Mobile
在类中 WLayout
repo
- 会话环境jo
- 传给移动端的jsonform
- 当前表单对象JSONException
public void readXML(XMLableReader reader)
WLayout
readXML
在接口中 XMLReadable
readXML
在类中 WAbsoluteLayout
reader
- XML读取对象XMLableReader
protected void writeScalingAttrXML(XMLPrintWriter writer)
writeScalingAttrXML
在类中 WAbsoluteLayout
public void writeXML(XMLPrintWriter writer)
WLayout
writeXML
在接口中 XMLWriter
writeXML
在类中 WAbsoluteLayout
writer
- the PrintWriter.public MobileParamStyleProvider getProvider()
public void setProvider(MobileParamStyleProvider provider)