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]
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled -
Field Summary
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.google.gwt.event.shared.HandlerRegistrationaddCommonHandler(CommonEventHandler handler) voidcreateEditorInstance(IAttribute attribute) 创建编辑器实例voidfromUI()voidhandlerEditorNotify(NotifyKind kind, Object data) voidonAttributePropertyChange(IAttribute senderAttribute) 属性发生变更 更新UI渲染voidsetEditorReadOnly(boolean readOnly) 运行编辑器是否可以编辑voidsetLabelWidth(int width) voidvoidupdateEditorOption(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, setWidgetMethods 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, unsinkEventsMethods 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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
-
Constructor Details
-
AttributeItemEditorProxy
public AttributeItemEditorProxy()
-
-
Method Details
-
createEditorInstance
创建编辑器实例- Parameters:
attribute- 编辑器组件的定义(属性的定义)
-
getAttribute
-
getEditor
-
setLabelWidth
public void setLabelWidth(int width) -
updateEditorOption
-
updateAllEditorOption
public void updateAllEditorOption() -
setEditorReadOnly
public void setEditorReadOnly(boolean readOnly) 运行编辑器是否可以编辑- Parameters:
readOnly-
-
updateUI
public void updateUI()从 attribute获取数据渲染界面 -
fromUI
public void fromUI() -
onAttributePropertyChange
属性发生变更 更新UI渲染- Specified by:
onAttributePropertyChangein interfaceIAttributePropertyChangeCallback- Parameters:
senderAttribute-
-
handlerEditorNotify
- Specified by:
handlerEditorNotifyin interfaceIAttributeEditorNotifyHandler
-