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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.google.gwt.event.shared.HandlerRegistration
     
    void
    创建编辑器实例
    void
     
     
     
    void
     
    void
    属性发生变更 更新UI渲染
    void
    setEditorReadOnly(boolean readOnly)
    运行编辑器是否可以编辑
    void
    setLabelWidth(int width)
     
    void
     
    void
     
    void
    从 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.gwt.event.shared.HasHandlers

    fireEvent
  • Constructor Details

    • AttributeItemEditorProxy

      public AttributeItemEditorProxy()
  • Method Details

    • createEditorInstance

      public void createEditorInstance(IAttribute attribute)
      创建编辑器实例
      Parameters:
      attribute - 编辑器组件的定义(属性的定义)
    • getAttribute

      public IAttribute getAttribute()
    • getEditor

      public IAttributeEditor getEditor()
    • setLabelWidth

      public void setLabelWidth(int width)
    • updateEditorOption

      public void updateEditorOption(String key, Object value)
    • 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:
      addCommonHandler in interface HasCommonHandlers
    • updateUI

      public void updateUI()
      从 attribute获取数据渲染界面
    • fromUI

      public void fromUI()
    • onAttributePropertyChange

      public void onAttributePropertyChange(IAttribute senderAttribute)
      属性发生变更 更新UI渲染
      Specified by:
      onAttributePropertyChange in interface IAttributePropertyChangeCallback
      Parameters:
      senderAttribute -
    • handlerEditorNotify

      public void handlerEditorNotify(NotifyKind kind, Object data)
      Specified by:
      handlerEditorNotify in interface IAttributeEditorNotifyHandler