com.taobao.weex.dom.flex.CSSLayoutContext Java Examples

The following examples show how to use com.taobao.weex.dom.flex.CSSLayoutContext. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DOMActionContextImpl.java    From ucar-weex-core with Apache License 2.0 5 votes vote down vote up
/**
 * Create an instance of {@link DOMActionContextImpl},
 * One {@link WXSDKInstance} corresponding to one and only one {@link DOMActionContextImpl}.
 * And all the instance of {@link WXDomManager} share the same {@link WXRenderManager}.
 * @param instanceId the id of the {@link WXSDKInstance}.
 *                   One {@link WXSDKInstance} corresponding to one {@link DOMActionContextImpl},
 *                   and vice versa.
 * @param renderManager This acts as the Receiver of the command pattern
 */
public DOMActionContextImpl(String instanceId, WXRenderManager renderManager) {
  mDestroy = false;
  mInstanceId = instanceId;
  mLayoutContext = new CSSLayoutContext();
  mRegistry = new ConcurrentHashMap<>();
  mNormalTasks = new ArrayList<>();
  animations = new LinkedHashSet<>();
  mWXRenderManager = renderManager;
  mAddDOMConsumer = new AddDOMConsumer(mRegistry);
  mUnregisterDomConsumer = new RemoveElementConsumer(mRegistry);
}
 
Example #2
Source File: WXDomStatement.java    From weex-uikit with MIT License 5 votes vote down vote up
/**
 * Create an instance of {@link WXDomStatement},
 * One {@link WXSDKInstance} corresponding to one and only one {@link WXDomStatement}.
 * And all the instance of {@link WXDomManager} share the same {@link WXRenderManager}.
 * @param instanceId the id of the {@link WXSDKInstance}.
 *                   One {@link WXSDKInstance} corresponding to one {@link WXDomStatement},
 *                   and vice versa.
 * @param renderManager This acts as the Receiver of the command pattern
 */
public WXDomStatement(String instanceId, WXRenderManager renderManager) {
  mDestroy = false;
  mInstanceId = instanceId;
  mLayoutContext = new CSSLayoutContext();
  mRegistry = new ConcurrentHashMap<>();
  mNormalTasks = new ArrayList<>();
  animations = new LinkedHashSet<>();
  mWXRenderManager = renderManager;
  mAddDOMConsumer = new AddDOMConsumer(mRegistry);
}
 
Example #3
Source File: WXDomStatement.java    From weex with Apache License 2.0 5 votes vote down vote up
/**
 * Create an instance of {@link WXDomStatement},
 * One {@link WXSDKInstance} corresponding to one and only one {@link WXDomStatement}.
 * And all the instance of {@link WXDomManager} share the same {@link WXRenderManager}.
 * @param instanceId the id of the {@link WXSDKInstance}.
 *                   One {@link WXSDKInstance} corresponding to one {@link WXDomStatement},
 *                   and vice versa.
 * @param renderManager This acts as the Receiver of the command pattern
 */
public WXDomStatement(String instanceId, WXRenderManager renderManager) {
  mDestroy = false;
  mInstanceId = instanceId;
  mLayoutContext = new CSSLayoutContext();
  mRegistry = new ConcurrentHashMap<>();
  mNormalTasks = new ArrayList<>();
  mUpdate = new HashSet<>();
  mWXRenderManager = renderManager;
}