public class CheckBoxGroup extends ButtonGroup
FieldEditor.DependenceNameSpace
model, widgetValue
allowBlank, errorMessage, fontSize
AFTEREDIT, AFTERINIT, BEFOREEDIT, CHANGE, DEFAULT_FONT_SIZE, disabled, EVENT_CLICK, EVENT_STATECHANGE, invisible, STOPEDIT, widgetName, XML_TAG
TYPE_BOOLEAN, TYPE_DATABINDING, TYPE_DATE, TYPE_FORMULA, TYPE_NUMBER, TYPE_STRING, TYPE_TABLEDATA
构造器和说明 |
---|
CheckBoxGroup() |
限定符和类型 | 方法和说明 |
---|---|
JSONObject |
createJSONConfig(Repository repo,
Calculator c,
NodeVisitor nodeVisitor)
以JSONObject方式返回Widget的配置信息
|
java.lang.Object |
dealWithPresentableValue(java.lang.String value)
控件所在单元格设置了形态的话,某些控件需要对value值特殊处理,
比如树控件可能需要将字符串当成json格式解析
其他类似有类似需求,就要重写此方法
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDataBindDefaultValue(Calculator calculator)
当控件值是绑定字段时,计算控件值用于给参数赋默认值
|
java.lang.String |
getDelimiter() |
java.lang.String |
getEndSymbol() |
java.lang.String |
getFormatText()
获取控件设置的format
|
java.lang.String |
getStartSymbol() |
java.lang.String |
getXType()
控件xType,每个控件的特有标记和控件一一对应
|
int |
hashCode()
获取哈希值
|
boolean |
isChooseAll()
是否需要全选
|
boolean |
isReturnString()
是否返回字符串
|
java.lang.String |
parseDefaultValue(java.lang.Object defaultValue)
将默认值转换成字符串用于控件依赖计算
|
void |
readXML(XMLableReader reader)
Read XML.
|
void |
setChooseAll(boolean chooseAll) |
void |
setDelimiter(java.lang.String delimiter) |
void |
setEndSymbol(java.lang.String end) |
void |
setReturnString(boolean returnString) |
void |
setStartSymbol(java.lang.String start) |
boolean |
supportMultiple()
是否支持多选
|
java.awt.image.BufferedImage |
toImage(java.lang.Object value,
int pxWidth,
int pxHeight,
Style style)
将当前单元格里的控件转化为图片, 主要用于打印复选框与复选框组
|
void |
writeXML(XMLPrintWriter writer)
Write XML.
|
clone, getColumnsInRow, getValueType, isAdaptive, isEditor, setAdaptive, setColumnsInRow, supportedEvents
createJSONData, createJSONData, createJSONDataByDefaultValue, createValueResult, dependence, getDependenceMap, getDictionary, getModuleValue, getViewValue, getWidgetValue, hasDataOnInit, isRemoveRepeat, setDependenceMap, setDictionary, setRemoveRepeat, setWidgetValue
getErrorMessage, getFontSize, isAllowBlank, setAllowBlank, setErrorMessage, setFontSize, setWaterMarkConfig, toJSONString
acceptType, changeOnlyVisibleAuthorityState, changeUsableAuthorityState, changeVisibleAuthorityState, cleanAuthority, dealInvisible, getContentHeight, getContentWidth, getDescription, getDisableAction, getEnableAction, getInvisibleAction, getLabelName, getVisibleAction, getWidgetName, getWidgetPrivilegeControl, isChartRelated, isDirtyWidget, isDoneUsableAuthority, isDoneVisibleAuthority, isEnabled, isUsableAuthority, isVisible, isVisibleAuthority, resize, 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 java.lang.String getXType()
Widget
public boolean isChooseAll()
public void setChooseAll(boolean chooseAll)
public java.lang.String getDelimiter()
public void setDelimiter(java.lang.String delimiter)
public java.lang.String getStartSymbol()
public void setStartSymbol(java.lang.String start)
public java.lang.String getEndSymbol()
public void setEndSymbol(java.lang.String end)
public boolean isReturnString()
public void setReturnString(boolean returnString)
public JSONObject createJSONConfig(Repository repo, Calculator c, NodeVisitor nodeVisitor) throws JSONException
createJSONConfig
在类中 ButtonGroup
repo
- 参数repoc
- 指定解析器nodeVisitor
- 节点访问JSONException
- 异常public java.awt.image.BufferedImage toImage(java.lang.Object value, int pxWidth, int pxHeight, Style style)
public java.lang.Object dealWithPresentableValue(java.lang.String value) throws java.lang.Exception
Widget
dealWithPresentableValue
在类中 Widget
value
- 控件值java.lang.Exception
public void readXML(XMLableReader reader)
Widget
readXML
在接口中 XMLReadable
readXML
在类中 ButtonGroup
reader
- XML读取对象XMLableReader
public void writeXML(XMLPrintWriter writer)
Widget
writeXML
在接口中 XMLWriter
writeXML
在类中 ButtonGroup
writer
- the PrintWriter.public boolean equals(java.lang.Object obj)
equals
在类中 ButtonGroup
public java.lang.String getDataBindDefaultValue(Calculator calculator)
DataControl
getDataBindDefaultValue
在接口中 DataControl
getDataBindDefaultValue
在类中 WriteUnableRepeatEditor
calculator
- 依赖数据public java.lang.String parseDefaultValue(java.lang.Object defaultValue)
WriteUnableRepeatEditor
parseDefaultValue
在类中 WriteUnableRepeatEditor
defaultValue
- 默认值变成字符串public boolean supportMultiple()
WriteUnableRepeatEditor
supportMultiple
在类中 WriteUnableRepeatEditor
public int hashCode()
hashCode
在类中 ButtonGroup
public java.lang.String getFormatText()
DataControl