本文整理汇总了Java中com.facebook.react.uimanager.UIViewOperationQueue类的典型用法代码示例。如果您正苦于以下问题:Java UIViewOperationQueue类的具体用法?Java UIViewOperationQueue怎么用?Java UIViewOperationQueue使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
UIViewOperationQueue类属于com.facebook.react.uimanager包,在下文中一共展示了UIViewOperationQueue类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: onCollectExtraUpdates
import com.facebook.react.uimanager.UIViewOperationQueue; //导入依赖的package包/类
@Override
public void onCollectExtraUpdates(UIViewOperationQueue uiViewOperationQueue) {
super.onCollectExtraUpdates(uiViewOperationQueue);
if (mJsEventCount != UNSET) {
ReactTextUpdate reactTextUpdate =
new ReactTextUpdate(
getText(),
mJsEventCount,
false,
getPadding(Spacing.START),
getPadding(Spacing.TOP),
getPadding(Spacing.END),
getPadding(Spacing.BOTTOM),
UNSET);
// TODO: the Float.NaN should be replaced with the real line height see D3592781
uiViewOperationQueue.enqueueUpdateExtraData(getReactTag(), reactTextUpdate);
}
}
开发者ID:qq565999484,项目名称:RNLearn_Project1,代码行数:19,代码来源:RCTTextInput.java
示例2: onCollectExtraUpdates
import com.facebook.react.uimanager.UIViewOperationQueue; //导入依赖的package包/类
@Override
public void onCollectExtraUpdates(UIViewOperationQueue uiViewOperationQueue) {
super.onCollectExtraUpdates(uiViewOperationQueue);
if (mJsEventCount != UNSET) {
Spannable preparedSpannableText = fromTextCSSNode(this);
ReactTextUpdate reactTextUpdate =
new ReactTextUpdate(
preparedSpannableText,
mJsEventCount,
mContainsImages,
getPadding(Spacing.LEFT),
getPadding(Spacing.TOP),
getPadding(Spacing.RIGHT),
getPadding(Spacing.BOTTOM),
mTextAlign,
mTextBreakStrategy
);
uiViewOperationQueue.enqueueUpdateExtraData(getReactTag(), reactTextUpdate);
}
}
开发者ID:qq565999484,项目名称:RNLearn_Project1,代码行数:22,代码来源:ReactTextInputShadowNode.java
示例3: onCollectExtraUpdates
import com.facebook.react.uimanager.UIViewOperationQueue; //导入依赖的package包/类
@Override
public void onCollectExtraUpdates(UIViewOperationQueue uiViewOperationQueue) {
if (isVirtual()) {
return;
}
super.onCollectExtraUpdates(uiViewOperationQueue);
if (mPreparedSpannableText != null) {
ReactTextUpdate reactTextUpdate =
new ReactTextUpdate(
mPreparedSpannableText,
UNSET,
mContainsImages,
getPadding(Spacing.START),
getPadding(Spacing.TOP),
getPadding(Spacing.END),
getPadding(Spacing.BOTTOM),
getTextAlign(),
mTextBreakStrategy
);
uiViewOperationQueue.enqueueUpdateExtraData(getReactTag(), reactTextUpdate);
}
}
开发者ID:qq565999484,项目名称:RNLearn_Project1,代码行数:23,代码来源:ReactTextShadowNode.java
示例4: onCollectExtraUpdates
import com.facebook.react.uimanager.UIViewOperationQueue; //导入依赖的package包/类
@Override
public void onCollectExtraUpdates(UIViewOperationQueue uiViewOperationQueue) {
if (mIsVirtual) {
return;
}
super.onCollectExtraUpdates(uiViewOperationQueue);
if (mPreparedSpannableText != null) {
ReactTextUpdate reactTextUpdate =
new ReactTextUpdate(
mPreparedSpannableText,
UNSET,
mContainsImages,
getPadding(Spacing.START),
getPadding(Spacing.TOP),
getPadding(Spacing.END),
getPadding(Spacing.BOTTOM),
getTextAlign()
);
uiViewOperationQueue.enqueueUpdateExtraData(getReactTag(), reactTextUpdate);
}
}
开发者ID:Right-Men,项目名称:Ironman,代码行数:22,代码来源:ReactTextShadowNode.java
示例5: onCollectExtraUpdates
import com.facebook.react.uimanager.UIViewOperationQueue; //导入依赖的package包/类
@Override
public void onCollectExtraUpdates(UIViewOperationQueue uiViewOperationQueue) {
if (mReactShadowNode != null && mReactShadowNode.hasUnseenUpdates()) {
mReactShadowNode.onCollectExtraUpdates(uiViewOperationQueue);
markUpdateSeen();
}
}
开发者ID:qq565999484,项目名称:RNLearn_Project1,代码行数:8,代码来源:NativeViewWrapper.java
示例6: onCollectExtraUpdates
import com.facebook.react.uimanager.UIViewOperationQueue; //导入依赖的package包/类
@Override
public void onCollectExtraUpdates(UIViewOperationQueue uiViewOperationQueue) {
super.onCollectExtraUpdates(uiViewOperationQueue);
if (mComputedPadding != null) {
uiViewOperationQueue.enqueueUpdateExtraData(getReactTag(), mComputedPadding);
mComputedPadding = null;
}
if (mJsEventCount != UNSET) {
Spannable preparedSpannableText = fromTextCSSNode(this);
ReactTextUpdate reactTextUpdate =
new ReactTextUpdate(preparedSpannableText, mJsEventCount, mContainsImages);
uiViewOperationQueue.enqueueUpdateExtraData(getReactTag(), reactTextUpdate);
}
}
开发者ID:john1jan,项目名称:ReactNativeSignatureExample,代码行数:16,代码来源:ReactTextInputShadowNode.java
示例7: onCollectExtraUpdates
import com.facebook.react.uimanager.UIViewOperationQueue; //导入依赖的package包/类
@Override
public void onCollectExtraUpdates(UIViewOperationQueue uiViewOperationQueue) {
if (mIsVirtual) {
return;
}
super.onCollectExtraUpdates(uiViewOperationQueue);
if (mPreparedSpannableText != null) {
ReactTextUpdate reactTextUpdate =
new ReactTextUpdate(mPreparedSpannableText, UNSET, mContainsImages);
uiViewOperationQueue.enqueueUpdateExtraData(getReactTag(), reactTextUpdate);
}
}
开发者ID:john1jan,项目名称:ReactNativeSignatureExample,代码行数:13,代码来源:ReactTextShadowNode.java
示例8: onCollectExtraUpdates
import com.facebook.react.uimanager.UIViewOperationQueue; //导入依赖的package包/类
@Override
public void onCollectExtraUpdates(UIViewOperationQueue uiViewOperationQueue) {
super.onCollectExtraUpdates(uiViewOperationQueue);
ShadowBoxMetrics bm = new ShadowBoxMetrics(
getEffectiveBorderWidth(Spacing.START),
getEffectiveBorderWidth(Spacing.TOP),
getEffectiveBorderWidth(Spacing.END),
getEffectiveBorderWidth(Spacing.BOTTOM),
getPadding(Spacing.LEFT),
getPadding(Spacing.TOP),
getPadding(Spacing.RIGHT),
getPadding(Spacing.BOTTOM)
);
uiViewOperationQueue.enqueueUpdateExtraData(getReactTag(), bm);
}
开发者ID:vovkasm,项目名称:react-native-web-image,代码行数:16,代码来源:WebImageShadowNode.java
示例9: onCollectExtraUpdates
import com.facebook.react.uimanager.UIViewOperationQueue; //导入依赖的package包/类
@Override
public void onCollectExtraUpdates(UIViewOperationQueue uiViewOperationQueue) {
super.onCollectExtraUpdates(uiViewOperationQueue);
Map<String, Float> data = new HashMap<>();
data.put("width", getLayoutWidth());
data.put("height", getLayoutHeight());
uiViewOperationQueue.enqueueUpdateExtraData(getReactTag(), data);
}
开发者ID:laoqiu,项目名称:react-native-amap,代码行数:11,代码来源:SizeReportingShadowNode.java
示例10: onCollectExtraUpdates
import com.facebook.react.uimanager.UIViewOperationQueue; //导入依赖的package包/类
@Override
public void onCollectExtraUpdates(UIViewOperationQueue uiViewOperationQueue) {
super.onCollectExtraUpdates(uiViewOperationQueue);
if (mComputedPadding != null) {
float[] updatedPadding = mComputedPadding;
if (getLayoutDirection() == CSSDirection.RTL) {
updatedPadding = new float[] {
getPadding(Spacing.END),
getPadding(Spacing.TOP),
getPadding(Spacing.START),
getPadding(Spacing.BOTTOM),
};
}
uiViewOperationQueue.enqueueUpdateExtraData(getReactTag(), updatedPadding);
mComputedPadding = null;
}
if (mJsEventCount != UNSET) {
Spannable preparedSpannableText = fromTextCSSNode(this);
ReactTextUpdate reactTextUpdate =
new ReactTextUpdate(
preparedSpannableText,
mJsEventCount,
mContainsImages,
getPadding(Spacing.START),
getPadding(Spacing.TOP),
getPadding(Spacing.END),
getPadding(Spacing.BOTTOM),
mTextAlign
);
uiViewOperationQueue.enqueueUpdateExtraData(getReactTag(), reactTextUpdate);
}
}
开发者ID:Right-Men,项目名称:Ironman,代码行数:34,代码来源:ReactTextInputShadowNode.java
示例11: onCollectExtraUpdates
import com.facebook.react.uimanager.UIViewOperationQueue; //导入依赖的package包/类
@Override
public void onCollectExtraUpdates(UIViewOperationQueue uiViewOperationQueue) {
super.onCollectExtraUpdates(uiViewOperationQueue);
uiViewOperationQueue.enqueueUpdateExtraData(getReactTag(), getReactTag());
}
开发者ID:netceteragroup,项目名称:react-native-twitterkit,代码行数:7,代码来源:TweetShadowNode.java
示例12: onCollectExtraUpdates
import com.facebook.react.uimanager.UIViewOperationQueue; //导入依赖的package包/类
@Override
public void onCollectExtraUpdates(UIViewOperationQueue uiUpdater) {
super.onCollectExtraUpdates(uiUpdater);
drawOutput();
uiUpdater.enqueueUpdateExtraData(getReactTag(), this);
}
开发者ID:qq565999484,项目名称:RNLearn_Project1,代码行数:7,代码来源:FlatARTSurfaceViewShadowNode.java
示例13: onCollectExtraUpdates
import com.facebook.react.uimanager.UIViewOperationQueue; //导入依赖的package包/类
@Override
public void onCollectExtraUpdates(UIViewOperationQueue uiUpdater) {
super.onCollectExtraUpdates(uiUpdater);
uiUpdater.enqueueUpdateExtraData(getReactTag(), drawOutput());
}
开发者ID:john1jan,项目名称:ReactNativeSignatureExample,代码行数:6,代码来源:ARTSurfaceViewShadowNode.java
示例14: onCollectExtraUpdates
import com.facebook.react.uimanager.UIViewOperationQueue; //导入依赖的package包/类
@Override
public void onCollectExtraUpdates(UIViewOperationQueue uiUpdater) {
super.onCollectExtraUpdates(uiUpdater);
uiUpdater.enqueueUpdateExtraData(getReactTag(), drawOutput());
}
开发者ID:react-native-community,项目名称:react-native-svg,代码行数:6,代码来源:SvgViewShadowNode.java
注:本文中的com.facebook.react.uimanager.UIViewOperationQueue类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论