Interface IAttribute
-
- All Known Implementing Classes:
AbstractAttribute,CheckBoxAttribute,ColorBoxAttribute,DateTimeAttribute,DropdownAttribute,ImageUploadBoxAttribute,LabelAttribute,PaddingBoxAttribute,ParameterAttribute,SimpleCheckBoxAttribute,SimpleColorBoxAttribute,SimpleDropdownBoxAttribute,SimpleTextBoxAttribute,TextAreaAttribute,TextBoxAttribute
public interface IAttributeIAttribute 用于描述一个属性- Author:
- zhang
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StringgetAltName()booleangetAttrVisible()获取编辑器显示或者隐藏intgetDataType()StringgetDefaultValue()StringgetDescription()IEditorMetaDatagetEditorMetaData()编辑这个属性需要的属性编辑器信息 将会替代 上面的getEditorCode designOption getOptions等字段 完成后 上面的字段将会被删除StringgetErrorTip()StringgetGroup()StringgetIcon()StringgetId()唯一IDStringgetName()IOptionProvidergetOptionProvider()intgetRank()default ParameterValuesgetRuntimeParameters()获取运行时期 的参数StringgetTip()StringgetValidateRegx()ObjectgetValue()booleanisReadonly()booleanisRequired()voidnotifyPropertyChange()属性相关的数据发生变更 通知IAttributesetAttrVisible(boolean visible)设置编辑器显示或者隐藏IAttributesetChangeCallback(IAttributePropertyChangeCallback callback)设置属性改变的回调voidsetValue(Object value)
-
-
-
Method Detail
-
getId
String getId()
唯一ID- Returns:
-
getName
String getName()
-
getAltName
String getAltName()
-
getValue
Object getValue()
-
setValue
void setValue(Object value)
-
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
default ParameterValues getRuntimeParameters()
获取运行时期 的参数- Returns:
-
getEditorMetaData
IEditorMetaData getEditorMetaData()
编辑这个属性需要的属性编辑器信息 将会替代 上面的getEditorCode designOption getOptions等字段 完成后 上面的字段将会被删除- Returns:
-
getAttrVisible
boolean getAttrVisible()
获取编辑器显示或者隐藏- Returns:
-
setAttrVisible
IAttribute setAttrVisible(boolean visible)
设置编辑器显示或者隐藏- Parameters:
visible-
-
notifyPropertyChange
void notifyPropertyChange()
属性相关的数据发生变更 通知
-
setChangeCallback
IAttribute setChangeCallback(IAttributePropertyChangeCallback callback)
设置属性改变的回调- Parameters:
callback-- Returns:
-
-