@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); } }
@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); } }
@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); } }
@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); } }
@Override public void onCollectExtraUpdates(UIViewOperationQueue uiViewOperationQueue) { if (mReactShadowNode != null && mReactShadowNode.hasUnseenUpdates()) { mReactShadowNode.onCollectExtraUpdates(uiViewOperationQueue); markUpdateSeen(); } }
@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); } }
@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); } }
@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); }
@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); }
@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); } }
@Override public void onCollectExtraUpdates(UIViewOperationQueue uiViewOperationQueue) { super.onCollectExtraUpdates(uiViewOperationQueue); uiViewOperationQueue.enqueueUpdateExtraData(getReactTag(), getReactTag()); }
@Override public void onCollectExtraUpdates(UIViewOperationQueue uiUpdater) { super.onCollectExtraUpdates(uiUpdater); drawOutput(); uiUpdater.enqueueUpdateExtraData(getReactTag(), this); }
@Override public void onCollectExtraUpdates(UIViewOperationQueue uiUpdater) { super.onCollectExtraUpdates(uiUpdater); uiUpdater.enqueueUpdateExtraData(getReactTag(), drawOutput()); }