Class AbstractAttribute
java.lang.Object
cn.mapway.ui.client.mvc.attribute.AbstractAttribute
- All Implemented Interfaces:
IAttribute
- Direct Known Subclasses:
CheckBoxAttribute,ColorBoxAttribute,DateTimeAttribute,DropdownAttribute,ImageUploadBoxAttribute,LabelAttribute,PaddingBoxAttribute,ParameterAttribute,SimpleCheckBoxAttribute,SimpleColorBoxAttribute,SimpleDropdownBoxAttribute,SimpleTextBoxAttribute,TextAreaAttribute,TextBoxAttribute
AbstractAttribute
提供大部分的属性定义接口
- Author:
- zhang
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringstatic final Stringprotected intprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected IOptionProviderprotected Integerprotected Booleanprotected Booleanprotected Stringprotected Stringprotected Boolean -
Constructor Summary
ConstructorsConstructorDescriptionAbstractAttribute(String name) AbstractAttribute(String name, String alterName) AbstractAttribute(String name, String alterName, String customEditCode) 构建一个自定义模块的属性 -
Method Summary
Modifier and TypeMethodDescriptionfindParameterValue(String key) 查找 [key] 的参数信息boolean获取编辑器显示或者隐藏int编辑这个属性需要的属性编辑器信息 将会替代 上面的getEditorCode designOption getOptions等字段 完成后 上面的字段将会被删除getGroup()getIcon()getId()唯一IDgetName()intgetRank()获取运行时期 的参数getTip()booleanbooleanvoid属性发生变化 通知UIparseEditor(String editor) editor JSON字符串中包含了所有的额编辑器信息 处理编辑器代码 editorCode 以及设计器的参数 designOpotionsparseParameters(String parameters) 解析设计器的组件参数replaceParameter(String key, Object value, boolean init) 替换参数setAltName(String altName) setAttrVisible(boolean visible) 设置编辑器显示或者隐藏设置属性改变的回调setDataType(int dataType) setDefaultValue(String defaultValue) setDescription(String description) setEditorData(IEditorMetaData editorData) setErrorTip(String errorTip) setOptionProvider(IOptionProvider optionProvider) setRank(int rank) setReadOnly(boolean readOnly) setRequired(boolean required) setValidateRegx(String validateRegx) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface cn.mapway.ui.client.mvc.attribute.IAttribute
getValue, setValue
-
Field Details
-
BASIC_GROUP
- See Also:
-
altName
-
dataType
protected int dataType -
defaultValue
-
description
-
readOnly
-
required
-
validator
-
group
-
rank
-
tip
-
errorTip
-
icon
-
optionProvider
-
name
-
visible
-
-
Constructor Details
-
AbstractAttribute
-
AbstractAttribute
-
AbstractAttribute
构建一个自定义模块的属性- Parameters:
name- 输出名称customEditCode- 编辑器代码
-
AbstractAttribute
public AbstractAttribute()
-
-
Method Details
-
getId
Description copied from interface:IAttribute唯一ID- Specified by:
getIdin interfaceIAttribute- Returns:
-
getRuntimeParameters
Description copied from interface:IAttribute获取运行时期 的参数- Specified by:
getRuntimeParametersin interfaceIAttribute- Returns:
-
parseParameters
解析设计器的组件参数- Parameters:
parameters- is a list [{IAttribute},{IAttribute}]- Returns:
-
parseEditor
editor JSON字符串中包含了所有的额编辑器信息 处理编辑器代码 editorCode 以及设计器的参数 designOpotions- Returns:
-
getName
- Specified by:
getNamein interfaceIAttribute
-
setName
-
getAltName
- Specified by:
getAltNamein interfaceIAttribute
-
setAltName
-
getDefaultValue
- Specified by:
getDefaultValuein interfaceIAttribute
-
setDefaultValue
-
getDescription
- Specified by:
getDescriptionin interfaceIAttribute
-
setDescription
-
isReadonly
public boolean isReadonly()- Specified by:
isReadonlyin interfaceIAttribute
-
setReadOnly
-
isRequired
public boolean isRequired()- Specified by:
isRequiredin interfaceIAttribute
-
setRequired
-
getDataType
public int getDataType()- Specified by:
getDataTypein interfaceIAttribute
-
setDataType
-
getValidateRegx
- Specified by:
getValidateRegxin interfaceIAttribute
-
setValidateRegx
-
getGroup
- Specified by:
getGroupin interfaceIAttribute
-
setGroup
-
getRank
public int getRank()- Specified by:
getRankin interfaceIAttribute
-
setRank
-
getTip
- Specified by:
getTipin interfaceIAttribute
-
setTip
-
getErrorTip
- Specified by:
getErrorTipin interfaceIAttribute
-
setErrorTip
-
getIcon
- Specified by:
getIconin interfaceIAttribute
-
setIcon
-
getOptionProvider
- Specified by:
getOptionProviderin interfaceIAttribute
-
setOptionProvider
-
getEditorMetaData
Description copied from interface:IAttribute编辑这个属性需要的属性编辑器信息 将会替代 上面的getEditorCode designOption getOptions等字段 完成后 上面的字段将会被删除- Specified by:
getEditorMetaDatain interfaceIAttribute- Returns:
-
setEditorData
-
getAttrVisible
public boolean getAttrVisible()Description copied from interface:IAttribute获取编辑器显示或者隐藏- Specified by:
getAttrVisiblein interfaceIAttribute- Returns:
-
setAttrVisible
设置编辑器显示或者隐藏- Specified by:
setAttrVisiblein interfaceIAttribute- Parameters:
visible-- Returns:
-
notifyPropertyChange
public void notifyPropertyChange()属性发生变化 通知UI- Specified by:
notifyPropertyChangein interfaceIAttribute
-
setChangeCallback
Description copied from interface:IAttribute设置属性改变的回调- Specified by:
setChangeCallbackin interfaceIAttribute- Returns:
-
param
-
findParameterValue
查找 [key] 的参数信息- Parameters:
key-- Returns:
-
replaceParameter
替换参数- Parameters:
key-value-init-- Returns:
-