initSelectedRowForComponent method

  1. @override
int initSelectedRowForComponent(
  1. int component
)
override

定义初始选中的行数

Implementation

@override
int initSelectedRowForComponent(int component) {
  if (0 == component) {
    return firstSelectedIndex;
  } else if (1 == component) {
    return secondSelectedIndex;
  } else {
    return thirdSelectedIndex;
  }
}