Java 类com.facebook.react.uimanager.UIViewOperationQueue 实例源码

项目:RNLearn_Project1    文件:RCTTextInput.java   
@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);
  }
}
项目:RNLearn_Project1    文件:ReactTextInputShadowNode.java   
@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);
  }
}
项目:RNLearn_Project1    文件:ReactTextShadowNode.java   
@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);
  }
}
项目:RNLearn_Project1    文件:RCTTextInput.java   
@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);
  }
}
项目:RNLearn_Project1    文件:ReactTextInputShadowNode.java   
@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);
  }
}
项目:RNLearn_Project1    文件:ReactTextShadowNode.java   
@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);
  }
}
项目:Ironman    文件:ReactTextShadowNode.java   
@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);
  }
}
项目:RNLearn_Project1    文件:NativeViewWrapper.java   
@Override
public void onCollectExtraUpdates(UIViewOperationQueue uiViewOperationQueue) {
  if (mReactShadowNode != null && mReactShadowNode.hasUnseenUpdates()) {
    mReactShadowNode.onCollectExtraUpdates(uiViewOperationQueue);
    markUpdateSeen();
  }
}
项目:RNLearn_Project1    文件:NativeViewWrapper.java   
@Override
public void onCollectExtraUpdates(UIViewOperationQueue uiViewOperationQueue) {
  if (mReactShadowNode != null && mReactShadowNode.hasUnseenUpdates()) {
    mReactShadowNode.onCollectExtraUpdates(uiViewOperationQueue);
    markUpdateSeen();
  }
}
项目:ReactNativeSignatureExample    文件:ReactTextInputShadowNode.java   
@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);
  }
}
项目:ReactNativeSignatureExample    文件:ReactTextShadowNode.java   
@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);
  }
}
项目:react-native-web-image    文件:WebImageShadowNode.java   
@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);
}
项目:react-native-ibeacon-android    文件:ReactTextInputShadowNode.java   
@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);
  }
}
项目:react-native-ibeacon-android    文件:ReactTextShadowNode.java   
@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);
  }
}
项目:react-native-amap    文件:SizeReportingShadowNode.java   
@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);
}
项目:react-native-text-input    文件:ReactTextInputShadowNode.java   
@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);
  }
}
项目:react-native-box-loaders    文件:ReactTextInputShadowNode.java   
@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);
  }
}
项目:react-native-box-loaders    文件:ReactTextShadowNode.java   
@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);
  }
}
项目:Ironman    文件:ReactTextInputShadowNode.java   
@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);
  }
}
项目:react-native-twitterkit    文件:TweetShadowNode.java   
@Override
public void onCollectExtraUpdates(UIViewOperationQueue uiViewOperationQueue) {
  super.onCollectExtraUpdates(uiViewOperationQueue);

  uiViewOperationQueue.enqueueUpdateExtraData(getReactTag(), getReactTag());
}
项目:RNLearn_Project1    文件:FlatARTSurfaceViewShadowNode.java   
@Override
public void onCollectExtraUpdates(UIViewOperationQueue uiUpdater) {
  super.onCollectExtraUpdates(uiUpdater);
  drawOutput();
  uiUpdater.enqueueUpdateExtraData(getReactTag(), this);
}
项目:RNLearn_Project1    文件:ARTSurfaceViewShadowNode.java   
@Override
public void onCollectExtraUpdates(UIViewOperationQueue uiUpdater) {
  super.onCollectExtraUpdates(uiUpdater);
  drawOutput();
  uiUpdater.enqueueUpdateExtraData(getReactTag(), this);
}
项目:RNLearn_Project1    文件:FlatARTSurfaceViewShadowNode.java   
@Override
public void onCollectExtraUpdates(UIViewOperationQueue uiUpdater) {
  super.onCollectExtraUpdates(uiUpdater);
  drawOutput();
  uiUpdater.enqueueUpdateExtraData(getReactTag(), this);
}
项目:RNLearn_Project1    文件:ARTSurfaceViewShadowNode.java   
@Override
public void onCollectExtraUpdates(UIViewOperationQueue uiUpdater) {
  super.onCollectExtraUpdates(uiUpdater);
  drawOutput();
  uiUpdater.enqueueUpdateExtraData(getReactTag(), this);
}
项目:ReactNativeSignatureExample    文件:ARTSurfaceViewShadowNode.java   
@Override
public void onCollectExtraUpdates(UIViewOperationQueue uiUpdater) {
  super.onCollectExtraUpdates(uiUpdater);
  uiUpdater.enqueueUpdateExtraData(getReactTag(), drawOutput());
}
项目:react-native-ibeacon-android    文件:ARTSurfaceViewShadowNode.java   
@Override
public void onCollectExtraUpdates(UIViewOperationQueue uiUpdater) {
  super.onCollectExtraUpdates(uiUpdater);
  uiUpdater.enqueueUpdateExtraData(getReactTag(), drawOutput());
}
项目:react-native-box-loaders    文件:ARTSurfaceViewShadowNode.java   
@Override
public void onCollectExtraUpdates(UIViewOperationQueue uiUpdater) {
  super.onCollectExtraUpdates(uiUpdater);
  uiUpdater.enqueueUpdateExtraData(getReactTag(), drawOutput());
}
项目:Ironman    文件:ARTSurfaceViewShadowNode.java   
@Override
public void onCollectExtraUpdates(UIViewOperationQueue uiUpdater) {
  super.onCollectExtraUpdates(uiUpdater);
  drawOutput();
  uiUpdater.enqueueUpdateExtraData(getReactTag(), this);
}
项目:react-native-svg    文件:SvgViewShadowNode.java   
@Override
public void onCollectExtraUpdates(UIViewOperationQueue uiUpdater) {
    super.onCollectExtraUpdates(uiUpdater);
    uiUpdater.enqueueUpdateExtraData(getReactTag(), drawOutput());
}