Interface IAttribute
- All Known Implementing Classes:
AbstractAttribute,CheckBoxAttribute,ColorBoxAttribute,DateTimeAttribute,DropdownAttribute,ImageUploadBoxAttribute,LabelAttribute,PaddingBoxAttribute,ParameterAttribute,SimpleCheckBoxAttribute,SimpleColorBoxAttribute,SimpleDropdownBoxAttribute,SimpleTextBoxAttribute,TextAreaAttribute,TextBoxAttribute
public interface IAttribute
IAttribute
用于描述一个属性
- Author:
- zhang
-
Method Summary
Modifier and TypeMethodDescriptionboolean获取编辑器显示或者隐藏int编辑这个属性需要的属性编辑器信息 将会替代 上面的getEditorCode designOption getOptions等字段 完成后 上面的字段将会被删除getGroup()getIcon()getId()唯一IDgetName()intgetRank()default ParameterValues获取运行时期 的参数getTip()getValue()booleanbooleanvoid属性相关的数据发生变更 通知setAttrVisible(boolean visible) 设置编辑器显示或者隐藏设置属性改变的回调void
-
Method Details
-
getId
String getId()唯一ID- Returns:
-
getName
String getName() -
getAltName
String getAltName() -
getValue
Object getValue() -
setValue
-
getDefaultValue
String getDefaultValue() -
getDescription
String getDescription() -
isReadonly
boolean isReadonly() -
isRequired
boolean isRequired() -
getDataType
int getDataType() -
getValidateRegx
String getValidateRegx() -
getGroup
String getGroup() -
getRank
int getRank() -
getTip
String getTip() -
getErrorTip
String getErrorTip() -
getIcon
String getIcon() -
getOptionProvider
IOptionProvider getOptionProvider() -
getRuntimeParameters
获取运行时期 的参数- Returns:
-
getEditorMetaData
IEditorMetaData getEditorMetaData()编辑这个属性需要的属性编辑器信息 将会替代 上面的getEditorCode designOption getOptions等字段 完成后 上面的字段将会被删除- Returns:
-
getAttrVisible
boolean getAttrVisible()获取编辑器显示或者隐藏- Returns:
-
setAttrVisible
设置编辑器显示或者隐藏- Parameters:
visible-
-
notifyPropertyChange
void notifyPropertyChange()属性相关的数据发生变更 通知 -
setChangeCallback
设置属性改变的回调- Parameters:
callback-- Returns:
-