use of com.taobao.weex.ui.component.WXComponentProp in project WeexErosFramework by bmfe.
the class BMCalendar method setMinDate.
@WXComponentProp(name = "minimumDate")
public void setMinDate(String minDate) {
if (TextUtils.isEmpty(minDate))
return;
this.mMinDate = minDate;
if (mBuilder != null) {
Calendar calendar = Calendar.getInstance();
calendar.setTime(getDate(mMinDate));
mBuilder.setMinimumDate(calendar);
if (!TextUtils.isEmpty(mMaxDate)) {
Calendar maxCalendar = Calendar.getInstance();
maxCalendar.setTime(getDate(mMaxDate));
mBuilder.setMaximumDate(maxCalendar);
mBuilder.commit();
}
}
}
use of com.taobao.weex.ui.component.WXComponentProp in project incubator-weex by apache.
the class RichText method setTelLink.
@WXComponentProp(name = "tel")
public void setTelLink(String tel) {
SpannableString spannable = new SpannableString(tel);
spannable.setSpan(new URLSpan("tel:" + tel), 0, tel.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
((TextView) getHostView()).setText(spannable);
}
use of com.taobao.weex.ui.component.WXComponentProp in project incubator-weex by apache.
the class BasicListComponent method setScrollable.
@WXComponentProp(name = Constants.Name.SCROLLABLE)
public void setScrollable(boolean scrollable) {
this.isScrollable = scrollable;
WXRecyclerView inner = getHostView().getInnerView();
if (inner != null) {
inner.setScrollable(scrollable);
}
}
use of com.taobao.weex.ui.component.WXComponentProp in project incubator-weex by apache.
the class WXListComponent method setScrollable.
@WXComponentProp(name = Constants.Name.SCROLLABLE)
public void setScrollable(boolean scrollable) {
WXRecyclerView inner = getHostView().getInnerView();
inner.setScrollable(scrollable);
}
use of com.taobao.weex.ui.component.WXComponentProp in project incubator-weex by apache.
the class WXListComponent method setColumnWidth.
@WXComponentProp(name = Constants.Name.COLUMN_WIDTH)
public void setColumnWidth(int columnCount) {
if (mRecyclerDom != null && mRecyclerDom.getColumnWidth() != mColumnWidth) {
markComponentUsable();
updateRecyclerAttr();
WXRecyclerView wxRecyclerView = getHostView().getInnerView();
wxRecyclerView.initView(getContext(), mLayoutType, mColumnCount, mColumnGap, getOrientation());
}
}
Aggregations