Class AttributeItemEditorProxy
- java.lang.Object
-
- com.google.gwt.user.client.ui.UIObject
-
- com.google.gwt.user.client.ui.Widget
-
- com.google.gwt.user.client.ui.Composite
-
- cn.mapway.ui.client.mvc.attribute.editor.proxy.AttributeItemEditorProxy
-
- All Implemented Interfaces:
IAttributeEditorNotifyHandler,IAttributePropertyChangeCallback,HasCommonHandlers,com.google.gwt.event.logical.shared.HasAttachHandlers,com.google.gwt.event.shared.HasHandlers,com.google.gwt.user.client.EventListener,com.google.gwt.user.client.ui.HasVisibility,com.google.gwt.user.client.ui.IsRenderable,com.google.gwt.user.client.ui.IsWidget
public class AttributeItemEditorProxy extends com.google.gwt.user.client.ui.Composite implements HasCommonHandlers, IAttributeEditorNotifyHandler, IAttributePropertyChangeCallback
所有编辑器组件的一个代理 [name : EDITOR]
-
-
Constructor Summary
Constructors Constructor Description AttributeItemEditorProxy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.gwt.event.shared.HandlerRegistrationaddCommonHandler(CommonEventHandler handler)voidcreateEditorInstance(IAttribute attribute)创建编辑器实例voidfromUI()IAttributegetAttribute()IAttributeEditorgetEditor()voidhandlerEditorNotify(NotifyKind kind, Object data)voidonAttributePropertyChange(IAttribute senderAttribute)属性发生变更 更新UI渲染voidsetEditorReadOnly(boolean readOnly)运行编辑器是否可以编辑voidsetLabelWidth(int width)voidupdateAllEditorOption()voidupdateEditorOption(String key, Object value)voidupdateUI()从 attribute获取数据渲染界面-
Methods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
-
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
-
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
-
-
-
-
Method Detail
-
createEditorInstance
public void createEditorInstance(IAttribute attribute)
创建编辑器实例- Parameters:
attribute- 编辑器组件的定义(属性的定义)
-
getAttribute
public IAttribute getAttribute()
-
getEditor
public IAttributeEditor getEditor()
-
setLabelWidth
public void setLabelWidth(int width)
-
updateAllEditorOption
public void updateAllEditorOption()
-
setEditorReadOnly
public void setEditorReadOnly(boolean readOnly)
运行编辑器是否可以编辑- Parameters:
readOnly-
-
addCommonHandler
public com.google.gwt.event.shared.HandlerRegistration addCommonHandler(CommonEventHandler handler)
- Specified by:
addCommonHandlerin interfaceHasCommonHandlers
-
updateUI
public void updateUI()
从 attribute获取数据渲染界面
-
fromUI
public void fromUI()
-
onAttributePropertyChange
public void onAttributePropertyChange(IAttribute senderAttribute)
属性发生变更 更新UI渲染- Specified by:
onAttributePropertyChangein interfaceIAttributePropertyChangeCallback- Parameters:
senderAttribute-
-
handlerEditorNotify
public void handlerEditorNotify(NotifyKind kind, Object data)
- Specified by:
handlerEditorNotifyin interfaceIAttributeEditorNotifyHandler
-
-