Interface IAttributeEditor
-
- All Superinterfaces:
IData,IProvideSize
- All Known Implementing Classes:
AbstractAttributeEditor,CheckBoxAttributeEditor,ColorBoxAttributeEditor,DateTimeAttributeEditor,DropdownAttributeEditor,EditorSelectAttributeEditor,IconAttributeEditor,ImageUploadAttributeEditor,LabelAttributeEditor,PaddingBoxAttributeEditor,SliderAttributeEditor,TextAreaAttributeEditor,TextboxAttributeEditor
public interface IAttributeEditor extends IProvideSize, IData
属性编辑器的约束接口 2.提供一个缺省的大小 D is design option data type
-
-
Field Summary
Fields Modifier and Type Field Description static StringCATALOG_BUSINESSstatic StringCATALOG_DESIGNstatic StringCATALOG_RUNTIMEstatic StringCATALOG_SYSTEMstatic StringCATALOG_UNKNOWN
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voideditAttribute(ParameterValues runtimeParameters, IAttribute attribute)设置属性代理对象voidfromUI()从UI将数据传输到对象中IAttributegetAttribute()获取编辑器对应的属性定义StringgetCode()编辑器的唯一识别代码default IEditorDesignergetDesigner()获取编辑器参数设计组件 缺省返回null 不需要设计com.google.gwt.user.client.ui.WidgetgetDisplayWidget()显示显示面板default StringgetEditorTip()根据用户的参数信息 提示给用户SizegetSize()编辑器的缺省大小voidsetEditorNotifyHandler(IAttributeEditorNotifyHandler notifyHandler)voidsetReadonly(boolean readonly)voidsetValueChangedHandler(IAttributeEditorValueChangedHandler handler)属性变化通知事件voidsetVisible(boolean visible)设置编辑器显示或者隐藏voidupdateAllEditorOption()voidupdateEditorOption(String key, Object value)voidupdateUI()从 attribtue 中获取Value更新界面-
Methods inherited from interface cn.mapway.ui.client.mvc.window.IProvideSize
requireDefaultSize
-
-
-
-
Field Detail
-
CATALOG_RUNTIME
static final String CATALOG_RUNTIME
- See Also:
- Constant Field Values
-
CATALOG_DESIGN
static final String CATALOG_DESIGN
- See Also:
- Constant Field Values
-
CATALOG_BUSINESS
static final String CATALOG_BUSINESS
- See Also:
- Constant Field Values
-
CATALOG_UNKNOWN
static final String CATALOG_UNKNOWN
- See Also:
- Constant Field Values
-
CATALOG_SYSTEM
static final String CATALOG_SYSTEM
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCode
String getCode()
编辑器的唯一识别代码- Returns:
-
getDisplayWidget
com.google.gwt.user.client.ui.Widget getDisplayWidget()
显示显示面板- Returns:
-
setReadonly
void setReadonly(boolean readonly)
-
setVisible
void setVisible(boolean visible)
设置编辑器显示或者隐藏- Parameters:
visible-
-
editAttribute
void editAttribute(ParameterValues runtimeParameters, IAttribute attribute)
设置属性代理对象- Parameters:
runtimeParameters- 编辑器的选项 由编辑器自己决定里面的值attribute-
-
getAttribute
IAttribute getAttribute()
获取编辑器对应的属性定义- Returns:
-
getSize
Size getSize()
编辑器的缺省大小- Returns:
-
updateAllEditorOption
void updateAllEditorOption()
-
setValueChangedHandler
void setValueChangedHandler(IAttributeEditorValueChangedHandler handler)
属性变化通知事件- Parameters:
handler-
-
setEditorNotifyHandler
void setEditorNotifyHandler(IAttributeEditorNotifyHandler notifyHandler)
-
getDesigner
default IEditorDesigner getDesigner()
获取编辑器参数设计组件 缺省返回null 不需要设计- Returns:
-
getEditorTip
default String getEditorTip()
根据用户的参数信息 提示给用户- Returns:
-
updateUI
void updateUI()
从 attribtue 中获取Value更新界面
-
fromUI
void fromUI()
从UI将数据传输到对象中
-
-