• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java WXDiv类的典型用法和代码示例

java 2次浏览

本文整理汇总了Java中com.taobao.weex.ui.component.WXDiv的典型用法代码示例。如果您正苦于以下问题:Java WXDiv类的具体用法?Java WXDiv怎么用?Java WXDiv使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

WXDiv类属于com.taobao.weex.ui.component包,在下文中一共展示了WXDiv类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: setUp

点赞 3

import com.taobao.weex.ui.component.WXDiv; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
    WXDiv div = WXDivTest.create();
    ComponentTest.create(div);
    listComponent = create(div);
    ComponentTest.create(listComponent);

    fakeCell = new WXCell(WXSDKInstanceTest.createInstance(),new TestDomObject(),null,false);

    c1 = new WXCell(WXSDKInstanceTest.createInstance(),new TestDomObject(),null,false);
    c2 = new WXCell(WXSDKInstanceTest.createInstance(),new TestDomObject(),null,false);
    c3 = new WXCell(WXSDKInstanceTest.createInstance(),new TestDomObject(),null,false);

    mFakeDataSource = new ArrayList<>();
    mFakeDataSource.add(c1);
    mFakeDataSource.add(c2);
    mFakeDataSource.add(c3);

    mockedEventTrigger = mock(EventTrigger.class);

    mFakeDragHelper = new DefaultDragHelper(mFakeDataSource,listComponent.getHostView().getInnerView(), mockedEventTrigger);
}
 

开发者ID:weexext,
项目名称:ucar-weex-core,
代码行数:23,
代码来源:DefaultDragHelperTest.java

示例2: setUp

点赞 2

import com.taobao.weex.ui.component.WXDiv; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
  WXDiv div = WXDivTest.create();
  ComponentTest.create(div);
  component = create(div);
  ComponentTest.create(component);
}
 

开发者ID:weexext,
项目名称:ucar-weex-core,
代码行数:8,
代码来源:WXListComponentTest.java

示例3: testParseTransforms

点赞 2

import com.taobao.weex.ui.component.WXDiv; //导入依赖的package包/类
@Test
public void testParseTransforms() throws Exception {
  WXDiv div = WXDivTest.create();
  ComponentTest.create(div);

  WXDomObject dom = new WXListDomObject();
  dom.getAttrs().put(WXListComponent.TRANSFORM,"scale(0.9,0.8);translate(10,20);opacity(0.5);rotate(100)");
  component = create(div,dom);
  ComponentTest.create(component);
}
 

开发者ID:weexext,
项目名称:ucar-weex-core,
代码行数:11,
代码来源:WXListComponentTest.java

示例4: register

点赞 2

import com.taobao.weex.ui.component.WXDiv; //导入依赖的package包/类
private static void register() {
  try {
    registerComponent(WXBasicComponentType.TEXT, WXText.class, false);
    registerComponent(WXBasicComponentType.IMG, WXImage.class, false);
    registerComponent(WXBasicComponentType.DIV, WXDiv.class, false);
    registerComponent(WXBasicComponentType.IMAGE, WXImage.class, false);
    registerComponent(WXBasicComponentType.CONTAINER, WXDiv.class, false);
    registerComponent(WXBasicComponentType.SCROLLER, WXScroller.class, false);
    registerComponent(WXBasicComponentType.SLIDER, WXSlider.class, true);

    registerComponent(WXListComponent.class, false,WXBasicComponentType.LIST,WXBasicComponentType.VLIST);
    registerComponent(HorizontalListComponent.class,false,WXBasicComponentType.HLIST);
    registerComponent(WXBasicComponentType.CELL, WXCell.class, true);
    registerComponent(WXBasicComponentType.INDICATOR, WXIndicator.class, true);
    registerComponent(WXBasicComponentType.VIDEO, WXVideo.class, false);
    registerComponent(WXBasicComponentType.INPUT, WXInput.class, false);
    registerComponent(WXBasicComponentType.SWITCH, WXSwitch.class, false);
    registerComponent(WXBasicComponentType.A, WXA.class, false);
    registerComponent(WXBasicComponentType.EMBED, WXEmbed.class, true);
    registerComponent(WXBasicComponentType.WEB, WXWeb.class);
    registerComponent(WXBasicComponentType.REFRESH, WXRefresh.class);
    registerComponent(WXBasicComponentType.LOADING, WXLoading.class);
    registerComponent(WXBasicComponentType.LOADING_INDICATOR, WXLoadingIndicator.class);

    registerModule("dom", WXDomModule.class, true);
    registerModule("modal", WXModalUIModule.class, false);
    registerModule("instanceWrap", WXInstanceWrap.class, true);
    registerModule("animation", WXAnimationModule.class, true);
    registerModule("webview", WXWebViewModule.class, true);
    registerModule("navigator", WXNavigatorModule.class);
    registerModule("stream", WXStreamModule.class);

    registerDomObject(WXBasicComponentType.TEXT, WXTextDomObject.class);
    registerDomObject(WXBasicComponentType.INPUT, WXTextDomObject.class);
    registerDomObject(WXBasicComponentType.SWITCH, WXSwitchDomObject.class);
  } catch (WXException e) {
    WXLogUtils.e("[WXSDKEngine] register:" + WXLogUtils.getStackTrace(e));
  }
}
 

开发者ID:Laisly,
项目名称:weex,
代码行数:40,
代码来源:WXSDKEngine.java

示例5: holdComponent

点赞 2

import com.taobao.weex.ui.component.WXDiv; //导入依赖的package包/类
@Override
public void holdComponent(WXDiv component) {
  mWeakReference = new WeakReference<WXDiv>(component);
}
 

开发者ID:weexext,
项目名称:ucar-weex-core,
代码行数:5,
代码来源:WXFrameLayout.java

示例6: getComponent

点赞 2

import com.taobao.weex.ui.component.WXDiv; //导入依赖的package包/类
@Nullable
@Override
public WXDiv getComponent() {
  return null != mWeakReference ? mWeakReference.get() : null;
}
 

开发者ID:weexext,
项目名称:ucar-weex-core,
代码行数:6,
代码来源:WXFrameLayout.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)