Java Code Examples for com.taobao.weex.utils.WXUtils#isUndefined()
The following examples show how to use
com.taobao.weex.utils.WXUtils#isUndefined() .
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: WXShapeFeature.java From weex with Apache License 2.0 | 6 votes |
private void initCornerRadius() { float radius = 0; if (mDom.style != null) { radius = mDom.style.getBorderRadius(); } if (WXUtils.isUndefined(radius) || radius <= 0) { mCornerRadiusArray = new float[]{0, 0, 0, 0, 0, 0, 0, 0}; return; } mHasRadius = true; //TODO radius = WXViewUtils.getRealPxByWidth(radius); float tl = radius; float bl = radius; float tr = radius; float br = radius; mCornerRadiusArray = new float[]{tl, tl, tr, tr, br, br, bl, bl}; }
Example 2
Source File: WXStyle.java From weex with Apache License 2.0 | 5 votes |
public float getMarginRight() { float temp = WXUtils.getFloat(get(WXDomPropConstant.WX_MARGINRIGHT)); if (WXUtils.isUndefined(temp)) { temp = WXUtils.getFloat(get(WXDomPropConstant.WX_MARGIN)); } return temp; }
Example 3
Source File: WXStyle.java From weex-uikit with MIT License | 5 votes |
public float getBorderRadius() { float temp = WXUtils.getFloat(get(Constants.Name.BORDER_RADIUS)); if (WXUtils.isUndefined(temp)) { return Float.NaN; } return temp; }
Example 4
Source File: WXStyle.java From ucar-weex-core with Apache License 2.0 | 5 votes |
public float getPaddingBottom(int viewport) { float temp = WXUtils.getFloatByViewport(get(Constants.Name.PADDING_BOTTOM), viewport); if (WXUtils.isUndefined(temp)) { temp = WXUtils.getFloatByViewport(get(Constants.Name.PADDING), viewport); } return temp; }
Example 5
Source File: WXStyle.java From ucar-weex-core with Apache License 2.0 | 5 votes |
public float getPaddingRight(int viewport) { float temp = WXUtils.getFloatByViewport(get(Constants.Name.PADDING_RIGHT), viewport); if (WXUtils.isUndefined(temp)) { temp = WXUtils.getFloatByViewport(get(Constants.Name.PADDING), viewport); } return temp; }
Example 6
Source File: WXStyle.java From weex-uikit with MIT License | 5 votes |
public float getMarginRight() { float temp = WXUtils.getFloat(get(Constants.Name.MARGIN_RIGHT)); if (WXUtils.isUndefined(temp)) { temp = WXUtils.getFloat(get(Constants.Name.MARGIN)); } return temp; }
Example 7
Source File: WXStyle.java From weex-uikit with MIT License | 5 votes |
public float getPaddingBottom() { float temp = WXUtils.getFloat(get(Constants.Name.PADDING_BOTTOM)); if (WXUtils.isUndefined(temp)) { temp = WXUtils.getFloat(get(Constants.Name.PADDING)); } return temp; }
Example 8
Source File: WXStyle.java From ucar-weex-core with Apache License 2.0 | 5 votes |
public float getPaddingBottom() { float temp = WXUtils.getFloat(get(Constants.Name.PADDING_BOTTOM)); if (WXUtils.isUndefined(temp)) { temp = WXUtils.getFloat(get(Constants.Name.PADDING)); } return temp; }
Example 9
Source File: WXStyle.java From weex-uikit with MIT License | 5 votes |
public float getPaddingTop() { float temp = WXUtils.getFloat(get(Constants.Name.PADDING_TOP)); if (WXUtils.isUndefined(temp)) { temp = WXUtils.getFloat(get(Constants.Name.PADDING)); } return temp; }
Example 10
Source File: WXStyle.java From weex with Apache License 2.0 | 5 votes |
public float getMarginLeft() { float temp = WXUtils.getFloat(get(WXDomPropConstant.WX_MARGINLEFT)); if (WXUtils.isUndefined(temp)) { temp = WXUtils.getFloat(get(WXDomPropConstant.WX_MARGIN)); } return temp; }
Example 11
Source File: WXStyle.java From ucar-weex-core with Apache License 2.0 | 5 votes |
public float getPaddingTop() { float temp = WXUtils.getFloat(get(Constants.Name.PADDING_TOP)); if (WXUtils.isUndefined(temp)) { temp = WXUtils.getFloat(get(Constants.Name.PADDING)); } return temp; }
Example 12
Source File: WXStyle.java From ucar-weex-core with Apache License 2.0 | 5 votes |
public float getMarginRight(int viewport) { float temp = WXUtils.getFloatByViewport(get(Constants.Name.MARGIN_RIGHT), viewport); if (WXUtils.isUndefined(temp)) { temp = WXUtils.getFloatByViewport(get(Constants.Name.MARGIN), viewport); } return temp; }
Example 13
Source File: WXStyle.java From weex with Apache License 2.0 | 5 votes |
public float getMarginTop() { float temp = WXUtils.getFloat(get(WXDomPropConstant.WX_MARGINTOP)); if (WXUtils.isUndefined(temp)) { temp = WXUtils.getFloat(get(WXDomPropConstant.WX_MARGIN)); } return temp; }
Example 14
Source File: WXStyle.java From weex with Apache License 2.0 | 5 votes |
private float getBorderWidth(String key) { float temp = WXUtils.getFloat(get(key)); if (WXUtils.isUndefined(temp)) { return getBorderWidth(); } return temp; }
Example 15
Source File: WXStyle.java From weex with Apache License 2.0 | 5 votes |
public float getPaddingLeft() { float temp = WXUtils.getFloat(get(WXDomPropConstant.WX_PADDINGLEFT)); if (WXUtils.isUndefined(temp)) { temp = WXUtils.getFloat(get(WXDomPropConstant.WX_PADDING)); } return temp; }
Example 16
Source File: WXStyle.java From ucar-weex-core with Apache License 2.0 | 5 votes |
public float getMarginRight() { float temp = WXUtils.getFloat(get(Constants.Name.MARGIN_RIGHT)); if (WXUtils.isUndefined(temp)) { temp = WXUtils.getFloat(get(Constants.Name.MARGIN)); } return temp; }
Example 17
Source File: WXStyle.java From ucar-weex-core with Apache License 2.0 | 5 votes |
public float getMarginLeft() { float temp = WXUtils.getFloat(get(Constants.Name.MARGIN_LEFT)); if (WXUtils.isUndefined(temp)) { temp = WXUtils.getFloat(get(Constants.Name.MARGIN)); } return temp; }
Example 18
Source File: WXStyle.java From weex-uikit with MIT License | 5 votes |
public float getMarginLeft() { float temp = WXUtils.getFloat(get(Constants.Name.MARGIN_LEFT)); if (WXUtils.isUndefined(temp)) { temp = WXUtils.getFloat(get(Constants.Name.MARGIN)); } return temp; }
Example 19
Source File: WXStyle.java From weex with Apache License 2.0 | 5 votes |
public float getPaddingRight() { float temp = WXUtils.getFloat(get(WXDomPropConstant.WX_PADDINGRIGHT)); if (WXUtils.isUndefined(temp)) { temp = WXUtils.getFloat(get(WXDomPropConstant.WX_PADDING)); } return temp; }
Example 20
Source File: WXStyle.java From ucar-weex-core with Apache License 2.0 | 5 votes |
private float getBorderWidth(String key) { float temp = WXUtils.getFloat(get(key)); if (WXUtils.isUndefined(temp)) { return getBorderWidth(); } return temp; }