/** * 查找指定容器 * * @param comp * @return */ boolean selectComponent(LComponent comp) { if (!comp.isVisible() || !comp.isFocusable() || !comp.isEnabled()) { return false; } // 清除最后部分 this.deselectComponent(); // 设定选中状态 comp.setSelected(true); this.selectedComponent = comp; return true; }