private static Control findControl(Type type, Control[] controls) {
if (controls == null || controls.length == 0) return null;
for (int i = 0; i < controls.length; i++) {
Control control = controls[i];
if (control.getType().equals(type)) return control;
if (control instanceof CompoundControl) {
CompoundControl compoundControl = (CompoundControl) control;
Control member = findControl(type, compoundControl.getMemberControls());
if (member != null) return member;
}
}
return null;
}
BasicPlayer.java 文件源码
java
阅读 26
收藏 0
点赞 0
评论 0
项目:BasicPlayer
作者:
评论列表
文章目录